diff --git a/CHANGELOG.md b/CHANGELOG.md index 70827130a..82e79d721 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ -## 2.0.0 (Unreleased) +## 2.1.0 (Unreleased) +## 2.0.0 (March 30, 2020) NOTES: @@ -28,6 +29,8 @@ FEATURES: * **New Data Source**: `nsxt_policy_lb_persistence_profile` * **New Data Source**: `nsxt_policy_vni_pool` * **New Data Source**: `nsxt_policy_realization_info` +* **New Data Source**: `nsxt_policy_segment_realization` +* **New Data Source**: `nsxt_firewall_section` * **New Resource**: `nsxt_policy_tier0_gateway` * **New Resource**: `nsxt_policy_tier1_gateway` @@ -54,9 +57,17 @@ FEATURES: * **New Resource**: `nsxt_policy_dhcp_relay` * **New Resource**: `nsxt_policy_dhcp_server` +IMPROVEMENTS: +* Migrate to Terraform Plugin SDK ([#210](https://github.com/terraform-providers/terraform-provider-nsxt/pull/210)) +* `resource/nsxt_vm_tags`: Avoid backend calls if no change required in corresponding tags ([#261](https://github.com/terraform-providers/terraform-provider-nsxt/pull/261)) + BUG FIXES: * Fix client authentication error that used to occur when client certificate is not self signed ([#207](https://github.com/terraform-providers/terraform-provider-nsxt/pull/207)) * Allow IPv6 in IP addresses and CIDR validations ([#204](https://github.com/terraform-providers/terraform-provider-nsxt/pull/204)) +* `resource/nsxt_vm_tags`: Fix tag removal ([#240](https://github.com/terraform-providers/terraform-provider-nsxt/pull/240)) +* `resource/nsxt_vm_tags`: Apply tags to all logical ports on given vm ([#235](https://github.com/terraform-providers/terraform-provider-nsxt/pull/235)) +* `resource/nsxt_logical_dhcp_server`: Mark gateway_ip as optional rather than required ([#245](https://github.com/terraform-providers/terraform-provider-nsxt/pull/245)) + ## 1.1.2 (November 18, 2019) diff --git a/README.md b/README.md index 7ccba3019..a482626cd 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,12 @@ Documentation on the NSX platform can be found at the [NSX-T Documentation page] # Using the Provider -The current version of this provider requires Terraform v0.10.2 or higher to -run. +The latest version of this provider requires Terraform v0.12 or higher to run. -The VMware supported version of the provider requires NSX version 2.2 onwards and Terraform 0.11.7. The recommended vSphere provider to be used in conjunction with the NSX-T Terraform Provider is 1.3.3 or above. +The VMware supported version of the provider requires NSX version 2.2 onwards and Terraform 0.12 onwards. +Version 2.0.0 of the provider offers NSX consumption via policy APIs, which is the recommended way. +Most policy resources are supported with NSX version 2.5 onwards, however some resources or attributes require NSX 3.0 onwards. Please refer to documentation for more details. +The recommended vSphere provider to be used in conjunction with the NSX-T Terraform Provider is 1.3.3 or above. Note that you need to run `terraform init` to fetch the provider before deploying. Read about the provider split and other changes to TF v0.10.0 in the @@ -67,8 +69,8 @@ You can list versions of providers installed in your environment by running “t ```hcl $ ./terraform version -Terraform v0.11.7 -+ provider.nsxt v1.0.0 +Terraform v0.12.7 ++ provider.nsxt v2.0.0 + provider.vsphere v1.5.0 ``` @@ -78,10 +80,12 @@ Terraform v0.11.7 pre-release bugfix or feature, you will want to use the officially released version of the provider (see [the section above](#using-the-provider)). +**NOTE:** Recommended way to compile the provider is using [Go Modules](https://blog.golang.org/using-go-modules), however vendored dependencies are still supported. + **NOTE:** Note that if the provider is manually copied to your running folder (rather than fetched with the “terraform init” based on provider block), Terraform is not aware of the version of the provider you’re running. It will appear as “unversioned”: ```hcl $ ./terraform version -Terraform v0.11.1 +Terraform v0.12.7 + provider.nsxt (unversioned) + provider.vsphere v1.5.0 ``` @@ -174,9 +178,12 @@ to run. The following versions of NSX are supported: - * NSX-T 2.2.* - * NSX-T 2.3.* + * NSX-T 3.0 + * NSX-T 2.5.* * NSX-T 2.4.* + * NSX-T 2.3.* + * NSX-T 2.2.* + Some specific resources may require later versions of NSX-T. diff --git a/go.mod b/go.mod index 4a1ee42bf..a32e0d440 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ require ( github.com/hashicorp/go-version v1.2.0 github.com/hashicorp/terraform-plugin-sdk v1.1.0 github.com/vmware/go-vmware-nsxt v0.0.0-20191219213550-f4221331f638 - github.com/vmware/vsphere-automation-sdk-go/lib v0.1.1 - github.com/vmware/vsphere-automation-sdk-go/runtime v0.1.1 - github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.2.0 + github.com/vmware/vsphere-automation-sdk-go/lib v0.2.0 + github.com/vmware/vsphere-automation-sdk-go/runtime v0.2.0 + github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.3.0 ) diff --git a/go.sum b/go.sum index b2d0b15fc..d30b50223 100644 --- a/go.sum +++ b/go.sum @@ -67,6 +67,7 @@ github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+ github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/gorilla/mux v1.7.3 h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -172,15 +173,27 @@ github.com/vmware/go-vmware-nsxt v0.0.0-20191219213550-f4221331f638 h1:IhIA83a2W github.com/vmware/go-vmware-nsxt v0.0.0-20191219213550-f4221331f638/go.mod h1:AzmozsuEImWQcg9Cfef9oMNoPQKcNaps6VkyJhzbSf0= github.com/vmware/vsphere-automation-sdk-go/lib v0.1.1 h1:PmDaeuToX1QKKe9VWRJztAp2/IyjbbGZp6fEiff4Dr8= github.com/vmware/vsphere-automation-sdk-go/lib v0.1.1/go.mod h1:BkjnHZykqeKKYDZEhyT4pxrEWprYqp4yC0xoCky6wjA= +github.com/vmware/vsphere-automation-sdk-go/lib v0.2.0 h1:noiASkafwxvCmmCtZK0f1pt06R8c+Fkt9TcZW7xpYy0= +github.com/vmware/vsphere-automation-sdk-go/lib v0.2.0/go.mod h1://FsAiCrr+T/Eq2Uxtq8UPVPbZWV7iLIvvXK17rsIxE= github.com/vmware/vsphere-automation-sdk-go/runtime v0.1.1 h1:gsbyhqLBiYZQRs0EBPNijKkJNSGcvs1IlRmRi790o84= github.com/vmware/vsphere-automation-sdk-go/runtime v0.1.1/go.mod h1:SRcvjNB5LycQEoeuwdwf9tSZ/glCmIBPfclZyk/+GLc= +github.com/vmware/vsphere-automation-sdk-go/runtime v0.2.0 h1:AM5AK9cyiJWFIfxrh1U/kuRFh+A2pymCEGiXqAkPzzw= +github.com/vmware/vsphere-automation-sdk-go/runtime v0.2.0/go.mod h1:M6pTKDrJrPlVG++lboLRf0bDYc3TJ2fsR+KOoWXfCns= github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.2.0 h1:pWAMR5S3jjJDF5DWeiIEB1c41F9+F/ga+EPmrTkFR+8= github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.2.0/go.mod h1:5zUcOhT4aCd6V3Xs6mqXVxVGHoKQ/zr1iwCvbSZtUfo= +github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.3.0 h1:Ekf0/umhKdr4N0oURDFlkhZHVm6w0eXzbsn6yc/vL+4= +github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.3.0/go.mod h1:k9tf91B5Ah7gkaM2s+Z6nATmn6gKmgt8AqJ8RUiKLfo= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.1.0 h1:uJwc9HiBOCpoKIObTQaLR+tsEXx1HBHnOsOOpcdhZgw= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= +gitlab.eng.vmware.com/golangsdk/vsphere-automation-sdk-go/lib v0.2.0 h1:+cZjFWuUvSjip24xfwvoZM7HfbDr+SaCO+Ivcy6QVO8= +gitlab.eng.vmware.com/golangsdk/vsphere-automation-sdk-go/lib v0.2.0/go.mod h1:5XGjWzhK3FzCvd8UF2XJehkTou62buyRaprG78iyuPo= +gitlab.eng.vmware.com/golangsdk/vsphere-automation-sdk-go/runtime v0.2.0 h1:PwLzRMlDmJ8W+/97TEueoqR31f266Z8CfhFjHXdPqlM= +gitlab.eng.vmware.com/golangsdk/vsphere-automation-sdk-go/runtime v0.2.0/go.mod h1:QMfGHVgLbJkmt1F1bBajXXX5y1GTRY03XC0tLwfuYHo= +gitlab.eng.vmware.com/golangsdk/vsphere-automation-sdk-go/services/nsxt v0.3.0 h1:9SI8iPVTtqS+Q076P5RE4G+QXV8gem2p9f9L8CFp8So= +gitlab.eng.vmware.com/golangsdk/vsphere-automation-sdk-go/services/nsxt v0.3.0/go.mod h1:04MIIof1zW95zy0e2mTFRKoUubFx8ztCJVPPrKd2cXQ= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0 h1:C9hSCOW830chIVkdja34wa6Ky+IzWllkUinR+BtRZd4= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= @@ -214,6 +227,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa h1:F+8P+gmewFQYRk6JoLQLwjBCTu3mcIURZfNkVweuRKA= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= @@ -236,6 +251,8 @@ golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= diff --git a/nsxt/data_source_nsxt_ip_pool.go b/nsxt/data_source_nsxt_ip_pool.go index 005cff8cd..b72053f57 100644 --- a/nsxt/data_source_nsxt_ip_pool.go +++ b/nsxt/data_source_nsxt_ip_pool.go @@ -75,7 +75,7 @@ func dataSourceNsxtIPPoolRead(d *schema.ResourceData, m interface{}) error { } } if !found { - return fmt.Errorf("IP pool '%s' was not found out of %d services", objName, len(objList.Results)) + return fmt.Errorf("IP pool '%s' was not found out of %d objects", objName, len(objList.Results)) } } else { return fmt.Errorf("Error obtaining IP pool ID or name during read") diff --git a/nsxt/data_source_nsxt_policy_edge_cluster.go b/nsxt/data_source_nsxt_policy_edge_cluster.go index a08126126..fecedf7b5 100644 --- a/nsxt/data_source_nsxt_policy_edge_cluster.go +++ b/nsxt/data_source_nsxt_policy_edge_cluster.go @@ -34,7 +34,7 @@ func dataSourceNsxtPolicyEdgeClusterRead(d *schema.ResourceData, m interface{}) var obj model.PolicyEdgeCluster if objID != "" { // Get by id - objGet, err := client.Get(defaultSite, policyEnforcementPoint, objID) + objGet, err := client.Get(defaultSite, getPolicyEnforcementPoint(m), objID) if err != nil { return handleDataSourceReadError(d, "Edge Cluster", objID, err) @@ -45,7 +45,7 @@ func dataSourceNsxtPolicyEdgeClusterRead(d *schema.ResourceData, m interface{}) } else { // Get by full name/prefix includeMarkForDeleteObjectsParam := false - objList, err := client.List(defaultSite, policyEnforcementPoint, nil, &includeMarkForDeleteObjectsParam, nil, nil, nil, nil) + objList, err := client.List(defaultSite, getPolicyEnforcementPoint(m), nil, &includeMarkForDeleteObjectsParam, nil, nil, nil, nil) if err != nil { return handleListError("Edge Cluster", err) } diff --git a/nsxt/data_source_nsxt_policy_edge_node.go b/nsxt/data_source_nsxt_policy_edge_node.go index a0348a7b1..09f3d1adb 100644 --- a/nsxt/data_source_nsxt_policy_edge_node.go +++ b/nsxt/data_source_nsxt_policy_edge_node.go @@ -40,14 +40,14 @@ func dataSourceNsxtPolicyEdgeNodeRead(d *schema.ResourceData, m interface{}) err edgeClusterPath := d.Get("edge_cluster_path").(string) edgeClusterID := getPolicyIDFromPath(edgeClusterPath) objID := d.Get("id").(string) - name, nameSet := d.GetOkExists("display_name") + name, nameSet := d.GetOk("display_name") objName := name.(string) - memberIndex, memberIndexSet := d.GetOkExists("member_index") + memberIndex, memberIndexSet := d.GetOk("member_index") objMemberIndex := int64(memberIndex.(int)) var obj model.PolicyEdgeNode if objID != "" { // Get by id - objGet, err := client.Get(defaultSite, policyEnforcementPoint, edgeClusterID, objID) + objGet, err := client.Get(defaultSite, getPolicyEnforcementPoint(m), edgeClusterID, objID) if err != nil { return handleDataSourceReadError(d, "Edge Node", objID, err) @@ -56,7 +56,7 @@ func dataSourceNsxtPolicyEdgeNodeRead(d *schema.ResourceData, m interface{}) err } else { // Get by full name/prefix includeMarkForDeleteObjectsParam := false - objList, err := client.List(defaultSite, policyEnforcementPoint, edgeClusterID, nil, &includeMarkForDeleteObjectsParam, nil, nil, nil, nil) + objList, err := client.List(defaultSite, getPolicyEnforcementPoint(m), edgeClusterID, nil, &includeMarkForDeleteObjectsParam, nil, nil, nil, nil) if err != nil { return handleListError("Edge Node", err) } diff --git a/nsxt/data_source_nsxt_policy_gateway_qos_profile_test.go b/nsxt/data_source_nsxt_policy_gateway_qos_profile_test.go index d42055b23..6cbc7cf65 100644 --- a/nsxt/data_source_nsxt_policy_gateway_qos_profile_test.go +++ b/nsxt/data_source_nsxt_policy_gateway_qos_profile_test.go @@ -60,7 +60,7 @@ func testAccDataSourceNsxtPolicyGatewayQosProfileCreate(name string) error { // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("GatewayQosProfile", id, err) } @@ -81,7 +81,7 @@ func testAccDataSourceNsxtPolicyGatewayQosProfileDeleteByName(name string) error } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return handleDeleteError("GatewayQosProfile", *objInList.Id, err) } diff --git a/nsxt/data_source_nsxt_policy_ip_block_test.go b/nsxt/data_source_nsxt_policy_ip_block_test.go index be4347a73..be8a324ce 100644 --- a/nsxt/data_source_nsxt_policy_ip_block_test.go +++ b/nsxt/data_source_nsxt_policy_ip_block_test.go @@ -56,7 +56,7 @@ func testAccDataSourceNsxtPolicyIPBlockCreate(name string) error { obj := model.IpAddressBlock{ Description: &description, DisplayName: &displayName, - Cidr: cidr, + Cidr: &cidr, } // Generate a random ID for the resource diff --git a/nsxt/data_source_nsxt_policy_ip_discovery_profile_test.go b/nsxt/data_source_nsxt_policy_ip_discovery_profile_test.go index 6df6670f7..6360bcf19 100644 --- a/nsxt/data_source_nsxt_policy_ip_discovery_profile_test.go +++ b/nsxt/data_source_nsxt_policy_ip_discovery_profile_test.go @@ -60,7 +60,7 @@ func testAccDataSourceNsxtPolicyIPDiscoveryProfileCreate(name string) error { // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("IPDiscoveryProfile", id, err) } @@ -81,7 +81,7 @@ func testAccDataSourceNsxtPolicyIPDiscoveryProfileDeleteByName(name string) erro } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return handleDeleteError("IPDiscoveryProfile", *objInList.Id, err) } diff --git a/nsxt/data_source_nsxt_policy_ipv6_dad_profile_test.go b/nsxt/data_source_nsxt_policy_ipv6_dad_profile_test.go index 7df83f671..fbbe50477 100644 --- a/nsxt/data_source_nsxt_policy_ipv6_dad_profile_test.go +++ b/nsxt/data_source_nsxt_policy_ipv6_dad_profile_test.go @@ -60,7 +60,7 @@ func testAccDataSourceNsxtPolicyIpv6DadProfileCreate(name string) error { // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("Ipv6DadProfile", id, err) } @@ -81,7 +81,7 @@ func testAccDataSourceNsxtPolicyIpv6DadProfileDeleteByName(name string) error { } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return handleDeleteError("Ipv6DadProfile", *objInList.Id, err) } diff --git a/nsxt/data_source_nsxt_policy_ipv6_ndra_profile_test.go b/nsxt/data_source_nsxt_policy_ipv6_ndra_profile_test.go index ed564c4fa..33816331e 100644 --- a/nsxt/data_source_nsxt_policy_ipv6_ndra_profile_test.go +++ b/nsxt/data_source_nsxt_policy_ipv6_ndra_profile_test.go @@ -52,16 +52,19 @@ func testAccDataSourceNsxtPolicyIpv6NdraProfileCreate(name string) error { displayName := name description := name + mode := model.Ipv6NdraProfile_RA_MODE_DISABLED + config := model.RAConfig{} obj := model.Ipv6NdraProfile{ Description: &description, DisplayName: &displayName, - RaMode: model.Ipv6NdraProfile_RA_MODE_DISABLED, + RaMode: &mode, + RaConfig: &config, } // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("Ipv6NdraProfile", id, err) } @@ -82,7 +85,7 @@ func testAccDataSourceNsxtPolicyIpv6NdraProfileDeleteByName(name string) error { } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return fmt.Errorf("Error during Ipv6NdraProfile deletion: %v", err) } diff --git a/nsxt/data_source_nsxt_policy_lb_app_profile.go b/nsxt/data_source_nsxt_policy_lb_app_profile.go index 5a62678c4..554e5cad2 100644 --- a/nsxt/data_source_nsxt_policy_lb_app_profile.go +++ b/nsxt/data_source_nsxt_policy_lb_app_profile.go @@ -66,7 +66,7 @@ func dataSourceNsxtPolicyLBAppProfileRead(d *schema.ResourceData, m interface{}) client := infra.NewDefaultLbAppProfilesClient(connector) objID := d.Get("id").(string) - objTypeValue, typeSet := d.GetOkExists("type") + objTypeValue, typeSet := d.GetOk("type") objType := objTypeValue.(string) objName := d.Get("display_name").(string) var result *model.LBAppProfile diff --git a/nsxt/data_source_nsxt_policy_lb_monitor.go b/nsxt/data_source_nsxt_policy_lb_monitor.go index 05be14a83..8e74c5fb4 100644 --- a/nsxt/data_source_nsxt_policy_lb_monitor.go +++ b/nsxt/data_source_nsxt_policy_lb_monitor.go @@ -69,7 +69,7 @@ func dataSourceNsxtPolicyLBMonitorRead(d *schema.ResourceData, m interface{}) er client := infra.NewDefaultLbMonitorProfilesClient(connector) objID := d.Get("id").(string) - objTypeValue, typeSet := d.GetOkExists("type") + objTypeValue, typeSet := d.GetOk("type") objType := objTypeValue.(string) objName := d.Get("display_name").(string) var result *model.LBMonitorProfile diff --git a/nsxt/data_source_nsxt_policy_lb_persistence_profile.go b/nsxt/data_source_nsxt_policy_lb_persistence_profile.go index 46f9767b9..4369a6f39 100644 --- a/nsxt/data_source_nsxt_policy_lb_persistence_profile.go +++ b/nsxt/data_source_nsxt_policy_lb_persistence_profile.go @@ -59,7 +59,7 @@ func dataSourceNsxtPolicyLbPersistenceProfileRead(d *schema.ResourceData, m inte objID := d.Get("id").(string) objName := d.Get("display_name").(string) - objTypeValue, typeSet := d.GetOkExists("type") + objTypeValue, typeSet := d.GetOk("type") objType := objTypeValue.(string) var obj model.PolicyLbPersistenceProfile diff --git a/nsxt/data_source_nsxt_policy_mac_discovery_profile_test.go b/nsxt/data_source_nsxt_policy_mac_discovery_profile_test.go index 9ede2449f..65056b431 100644 --- a/nsxt/data_source_nsxt_policy_mac_discovery_profile_test.go +++ b/nsxt/data_source_nsxt_policy_mac_discovery_profile_test.go @@ -56,13 +56,14 @@ func testAccDataSourceNsxtPolicyMacDiscoveryProfileCreate(name string) error { obj := model.MacDiscoveryProfile{ Description: &description, DisplayName: &displayName, + MacLearningEnabled: &boolFalse, UnknownUnicastFloodingEnabled: &boolFalse, } // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("MacDiscoveryProfile", id, err) } @@ -83,7 +84,7 @@ func testAccDataSourceNsxtPolicyMacDiscoveryProfileDeleteByName(name string) err } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return fmt.Errorf("Error during MacDiscoveryProfile deletion: %v", err) } diff --git a/nsxt/data_source_nsxt_policy_qos_profile_test.go b/nsxt/data_source_nsxt_policy_qos_profile_test.go index 90e6fbb1d..259d2a766 100644 --- a/nsxt/data_source_nsxt_policy_qos_profile_test.go +++ b/nsxt/data_source_nsxt_policy_qos_profile_test.go @@ -60,7 +60,7 @@ func testAccDataSourceNsxtPolicyQosProfileCreate(name string) error { // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("QosProfile", id, err) } @@ -81,7 +81,7 @@ func testAccDataSourceNsxtPolicyQosProfileDeleteByName(name string) error { } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return handleDeleteError("QosProfile", *objInList.Id, err) } diff --git a/nsxt/data_source_nsxt_policy_realization_info.go b/nsxt/data_source_nsxt_policy_realization_info.go index 676d1a236..1b04627c6 100644 --- a/nsxt/data_source_nsxt_policy_realization_info.go +++ b/nsxt/data_source_nsxt_policy_realization_info.go @@ -65,28 +65,32 @@ func dataSourceNsxtPolicyRealizationInfoRead(d *schema.ResourceData, m interface Target: targetStates, Refresh: func() (interface{}, string, error) { - realizationResult, realizationError := client.List(path) + realizationResult, realizationError := client.List(path, &policySite) + state := "UNKNOWN" if realizationError == nil { // Find the right entry for _, objInList := range realizationResult.Results { + if objInList.State != nil { + state = *objInList.State + } if entityType == "" { // Take the first one - d.Set("state", objInList.State) + d.Set("state", state) d.Set("entity_type", *objInList.EntityType) if objInList.RealizationSpecificIdentifier == nil { d.Set("realized_id", "") } else { d.Set("realized_id", *objInList.RealizationSpecificIdentifier) } - return realizationResult, objInList.State, nil - } else if *objInList.EntityType == entityType { - d.Set("state", objInList.State) + return realizationResult, state, nil + } else if (objInList.EntityType != nil) && (*objInList.EntityType == entityType) { + d.Set("state", state) if objInList.RealizationSpecificIdentifier == nil { d.Set("realized_id", "") } else { d.Set("realized_id", *objInList.RealizationSpecificIdentifier) } - return realizationResult, objInList.State, nil + return realizationResult, state, nil } } // Realization info not found yet diff --git a/nsxt/data_source_nsxt_policy_segment_realization.go b/nsxt/data_source_nsxt_policy_segment_realization.go index 9ee93efe6..41c460c6e 100644 --- a/nsxt/data_source_nsxt_policy_segment_realization.go +++ b/nsxt/data_source_nsxt_policy_segment_realization.go @@ -7,8 +7,10 @@ import ( "fmt" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra" "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments" "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" + "log" "time" ) @@ -29,6 +31,11 @@ func dataSourceNsxtPolicySegmentRealization() *schema.Resource { Description: "The state of the realized resource on hypervisors", Computed: true, }, + "network_name": { + Type: schema.TypeString, + Description: "Network name on the hypervisors", + Computed: true, + }, }, } } @@ -36,6 +43,7 @@ func dataSourceNsxtPolicySegmentRealization() *schema.Resource { func dataSourceNsxtPolicySegmentRealizationRead(d *schema.ResourceData, m interface{}) error { // Read the realization info by the path, and wait till it is valid connector := getPolicyConnector(m) + commonProviderConfig := getCommonProviderConfig(m) // Get the realization info of this resource path := d.Get("path").(string) @@ -48,7 +56,7 @@ func dataSourceNsxtPolicySegmentRealizationRead(d *schema.ResourceData, m interf // verifying segment realization on hypervisor segmentID := getPolicyIDFromPath(path) - enforcementPointPath := getPolicyEnforcementPointPath() + enforcementPointPath := getPolicyEnforcementPointPath(m) client := segments.NewDefaultStateClient(connector) pendingStates := []string{model.SegmentConfigurationState_STATE_PENDING, model.SegmentConfigurationState_STATE_IN_PROGRESS, @@ -58,7 +66,7 @@ func dataSourceNsxtPolicySegmentRealizationRead(d *schema.ResourceData, m interf model.SegmentConfigurationState_STATE_FAILED, model.SegmentConfigurationState_STATE_ERROR, model.SegmentConfigurationState_STATE_ORPHANED} - if toleratePartialSuccess { + if commonProviderConfig.ToleratePartialSuccess { targetStates = append(targetStates, model.SegmentConfigurationState_STATE_PARTIAL_SUCCESS) } stateConf := &resource.StateChangeConf{ @@ -70,6 +78,8 @@ func dataSourceNsxtPolicySegmentRealizationRead(d *schema.ResourceData, m interf return state, model.SegmentConfigurationState_STATE_ERROR, logAPIError("Error while waiting for realization of segment", err) } + log.Printf("[DEBUG] Current realization state for segment %s is %s", segmentID, *state.State) + d.Set("state", state.State) return state, *state.State, nil }, @@ -82,5 +92,20 @@ func dataSourceNsxtPolicySegmentRealizationRead(d *schema.ResourceData, m interf return fmt.Errorf("Failed to get realization information for %s: %v", path, err) } + // In some cases success state is returned a moment before VC actually sees the network + // Adding a short sleep here prevents vsphere provider from erroring out + time.Sleep(1 * time.Second) + + // We need to fetch network name to use in vpshere provider. However, state API does not + // return it in details yet. For now, we'll use segment display name, since its always + // translates to network name + segClient := infra.NewDefaultSegmentsClient(connector) + obj, err := segClient.Get(segmentID) + if err != nil { + return handleReadError(d, "Segment", segmentID, err) + } + + d.Set("network_name", obj.DisplayName) + return nil } diff --git a/nsxt/data_source_nsxt_policy_segment_realization_test.go b/nsxt/data_source_nsxt_policy_segment_realization_test.go index 141697f04..903985c24 100644 --- a/nsxt/data_source_nsxt_policy_segment_realization_test.go +++ b/nsxt/data_source_nsxt_policy_segment_realization_test.go @@ -20,6 +20,7 @@ func testAccDataSourceNsxtPolicySegmentRealization(t *testing.T, vlan bool) { Config: testAccNsxtPolicySegmentRealizationTemplate(vlan), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(testResourceName, "state", "success"), + resource.TestCheckResourceAttr(testResourceName, "network_name", "terra-test"), resource.TestCheckResourceAttrSet(testResourceName, "path"), ), }, diff --git a/nsxt/data_source_nsxt_policy_segment_security_profile_test.go b/nsxt/data_source_nsxt_policy_segment_security_profile_test.go index 024842bf4..d71d18802 100644 --- a/nsxt/data_source_nsxt_policy_segment_security_profile_test.go +++ b/nsxt/data_source_nsxt_policy_segment_security_profile_test.go @@ -60,7 +60,7 @@ func testAccDataSourceNsxtPolicySegmentSecurityProfileCreate(name string) error // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("SegmentSecurityProfile", id, err) } @@ -81,7 +81,7 @@ func testAccDataSourceNsxtPolicySegmentSecurityProfileDeleteByName(name string) } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return handleDeleteError("SegmentSecurityProfile", *objInList.Id, err) } diff --git a/nsxt/data_source_nsxt_policy_spoofguard_profile_test.go b/nsxt/data_source_nsxt_policy_spoofguard_profile_test.go index 399eac1a0..7bedd7973 100644 --- a/nsxt/data_source_nsxt_policy_spoofguard_profile_test.go +++ b/nsxt/data_source_nsxt_policy_spoofguard_profile_test.go @@ -60,7 +60,7 @@ func testAccDataSourceNsxtPolicySpoofGuardProfileCreate(name string) error { // Generate a random ID for the resource id := newUUID() - err = client.Patch(id, obj, nil) + err = client.Patch(id, obj) if err != nil { return handleCreateError("SpoofGuardProfile", id, err) } @@ -81,7 +81,7 @@ func testAccDataSourceNsxtPolicySpoofGuardProfileDeleteByName(name string) error } for _, objInList := range objList.Results { if *objInList.DisplayName == name { - err := client.Delete(*objInList.Id, nil) + err := client.Delete(*objInList.Id) if err != nil { return handleDeleteError("poofGuardProfile", *objInList.Id, err) } diff --git a/nsxt/data_source_nsxt_policy_transport_zone.go b/nsxt/data_source_nsxt_policy_transport_zone.go index 1aa8f9c61..7ec449562 100644 --- a/nsxt/data_source_nsxt_policy_transport_zone.go +++ b/nsxt/data_source_nsxt_policy_transport_zone.go @@ -58,7 +58,7 @@ func dataSourceNsxtPolicyTransportZoneRead(d *schema.ResourceData, m interface{} var obj model.PolicyTransportZone if objID != "" { // Get by id - objGet, err := client.Get(defaultSite, policyEnforcementPoint, objID) + objGet, err := client.Get(defaultSite, getPolicyEnforcementPoint(m), objID) if err != nil { return handleDataSourceReadError(d, "TransportZone", objID, err) @@ -69,7 +69,7 @@ func dataSourceNsxtPolicyTransportZoneRead(d *schema.ResourceData, m interface{} } else { // Get by full name/prefix includeMarkForDeleteObjectsParam := false - objList, err := client.List(defaultSite, policyEnforcementPoint, nil, &includeMarkForDeleteObjectsParam, nil, nil, &includeMarkForDeleteObjectsParam, nil) + objList, err := client.List(defaultSite, getPolicyEnforcementPoint(m), nil, &includeMarkForDeleteObjectsParam, nil, nil, &includeMarkForDeleteObjectsParam, nil) if err != nil { return handleListError("TransportZone", err) } diff --git a/nsxt/data_source_nsxt_policy_vm.go b/nsxt/data_source_nsxt_policy_vm.go index 980fade03..402f491a1 100644 --- a/nsxt/data_source_nsxt_policy_vm.go +++ b/nsxt/data_source_nsxt_policy_vm.go @@ -49,7 +49,7 @@ func dataSourceNsxtPolicyVMIDRead(d *schema.ResourceData, m interface{}) error { // TODO: test with KVM based VM objID := getNsxtPolicyVMIDFromSchema(d) if objID != "" { - vmObj, err := findNsxtPolicyVMByID(connector, objID) + vmObj, err := findNsxtPolicyVMByID(connector, objID, m) if err != nil { return fmt.Errorf("Error while reading Virtual Machine %s: %v", objID, err) } @@ -57,7 +57,7 @@ func dataSourceNsxtPolicyVMIDRead(d *schema.ResourceData, m interface{}) error { } else { displayName := d.Get("display_name").(string) - perfectMatch, prefixMatch, err := findNsxtPolicyVMByNamePrefix(connector, displayName) + perfectMatch, prefixMatch, err := findNsxtPolicyVMByNamePrefix(connector, displayName, m) if err != nil { return err } @@ -77,10 +77,13 @@ func dataSourceNsxtPolicyVMIDRead(d *schema.ResourceData, m interface{}) error { } computeIDMap := collectSeparatedStringListToMap(vmModel.ComputeIds, ":") - d.SetId(vmModel.ExternalId) + if vmModel.ExternalId == nil { + return fmt.Errorf("Unable to read external ID for Virtual Machine with name %s", *vmModel.DisplayName) + } + d.SetId(*vmModel.ExternalId) d.Set("display_name", vmModel.DisplayName) d.Set("description", vmModel.Description) - d.Set("external_id", vmModel.ExternalId) + d.Set("external_id", *vmModel.ExternalId) d.Set("bios_id", computeIDMap[nsxtPolicyBiosUUIDKey]) d.Set("instance_id", computeIDMap[nsxtPolicyInstanceUUIDKey]) return nil diff --git a/nsxt/data_source_nsxt_policy_vni_pool.go b/nsxt/data_source_nsxt_policy_vni_pool.go index 270307f66..afd503975 100644 --- a/nsxt/data_source_nsxt_policy_vni_pool.go +++ b/nsxt/data_source_nsxt_policy_vni_pool.go @@ -91,7 +91,7 @@ func dataSourceNsxtPolicyVniPoolRead(d *schema.ResourceData, m interface{}) erro d.Set("display_name", obj.DisplayName) d.Set("description", obj.Description) d.Set("path", obj.Path) - d.Set("end", int(obj.End)) - d.Set("start", int(obj.Start)) + d.Set("end", obj.End) + d.Set("start", obj.Start) return nil } diff --git a/nsxt/data_source_nsxt_policy_vni_pool_test.go b/nsxt/data_source_nsxt_policy_vni_pool_test.go index e5327bc8f..83620a9ef 100644 --- a/nsxt/data_source_nsxt_policy_vni_pool_test.go +++ b/nsxt/data_source_nsxt_policy_vni_pool_test.go @@ -54,11 +54,13 @@ func testAccDataSourceNsxtPolicyVniPoolConfigCreate(name string) error { displayName := name description := name + start := int64(75002) + end := int64(95001) obj := model.VniPoolConfig{ Description: &description, DisplayName: &displayName, - Start: 75002, - End: 95001, + Start: &start, + End: &end, } // Generate a random ID for the resource diff --git a/nsxt/policy_common.go b/nsxt/policy_common.go index b84dfdf7f..f1868b3a9 100644 --- a/nsxt/policy_common.go +++ b/nsxt/policy_common.go @@ -236,6 +236,11 @@ func getSecurityPolicyAndGatewayRulesSchema(scopeRequired bool) *schema.Schema { Default: false, }, "tag": getTagsSchema(), + "log_label": { + Type: schema.TypeString, + Description: "Additional information (string) which will be propagated to the rule syslog", + Optional: true, + }, "action": { Type: schema.TypeString, Description: "Action", @@ -325,6 +330,7 @@ func setPolicyRulesInSchema(d *schema.ResourceData, rules []model.Rule) error { elem["description"] = rule.Description elem["notes"] = rule.Notes elem["logged"] = rule.Logged + elem["log_label"] = rule.Tag elem["action"] = rule.Action elem["destinations_excluded"] = rule.DestinationsExcluded elem["sources_excluded"] = rule.SourcesExcluded @@ -339,6 +345,15 @@ func setPolicyRulesInSchema(d *schema.ResourceData, rules []model.Rule) error { setPathListInMap(elem, "scope", rule.Scope) elem["sequence_number"] = rule.SequenceNumber + var tagList []map[string]string + for _, tag := range rule.Tags { + tags := make(map[string]string) + tags["scope"] = *tag.Scope + tags["tag"] = *tag.Tag + tagList = append(tagList, tags) + } + elem["tag"] = tagList + rulesList = append(rulesList, elem) } @@ -355,6 +370,7 @@ func getPolicyRulesFromSchema(d *schema.ResourceData) []model.Rule { description := data["description"].(string) action := data["action"].(string) logged := data["logged"].(bool) + tag := data["log_label"].(string) disabled := data["disabled"].(bool) sourcesExcluded := data["sources_excluded"].(bool) destinationsExcluded := data["destinations_excluded"].(bool) @@ -363,6 +379,21 @@ func getPolicyRulesFromSchema(d *schema.ResourceData) []model.Rule { notes := data["notes"].(string) sequenceNumber := int64(seq) + var tagStructs []model.Tag + if data["tag"] != nil { + tags := data["tag"].(*schema.Set).List() + for _, tag := range tags { + data := tag.(map[string]interface{}) + tagScope := data["scope"].(string) + tagTag := data["tag"].(string) + elem := model.Tag{ + Scope: &tagScope, + Tag: &tagTag} + + tagStructs = append(tagStructs, elem) + } + } + // Use a different random Id each time, otherwise Update requires revision // to be set for existing rules, and NOT be set for new rules id := newUUID() @@ -374,6 +405,8 @@ func getPolicyRulesFromSchema(d *schema.ResourceData) []model.Rule { Description: &description, Action: &action, Logged: &logged, + Tag: &tag, + Tags: tagStructs, Disabled: &disabled, SourcesExcluded: &sourcesExcluded, DestinationsExcluded: &destinationsExcluded, diff --git a/nsxt/policy_utils.go b/nsxt/policy_utils.go index c3d035077..c51a4bfe2 100644 --- a/nsxt/policy_utils.go +++ b/nsxt/policy_utils.go @@ -192,11 +192,13 @@ func nsxtPolicyWaitForRealizationStateConf(connector *client.RestConnector, d *s Target: targetStates, Refresh: func() (interface{}, string, error) { - realizationResult, realizationError := client.List(realizedEntityPath) + realizationResult, realizationError := client.List(realizedEntityPath, &policySite) if realizationError == nil { // Find the right entry for _, objInList := range realizationResult.Results { - return objInList, objInList.State, nil + if objInList.State != nil { + return objInList, *objInList.State, nil + } } // Realization info not found yet return nil, "UNKNOWN", nil @@ -211,6 +213,6 @@ func nsxtPolicyWaitForRealizationStateConf(connector *client.RestConnector, d *s return stateConf } -func getPolicyEnforcementPointPath() string { - return "/infra/sites/default/enforcement-points/" + policyEnforcementPoint +func getPolicyEnforcementPointPath(m interface{}) string { + return "/infra/sites/default/enforcement-points/" + getPolicyEnforcementPoint(m) } diff --git a/nsxt/provider.go b/nsxt/provider.go index 1be79b536..bcf16cef4 100644 --- a/nsxt/provider.go +++ b/nsxt/provider.go @@ -20,10 +20,16 @@ import ( ) var defaultRetryOnStatusCodes = []int{429, 503} -var toleratePartialSuccess = false -var policyEnforcementPoint = "default" +var policySite = "default" + +// Provider configuration that is shared for policy and MP +type commonProviderConfig struct { + RemoteAuth bool + ToleratePartialSuccess bool +} type nsxtClients struct { + CommonConfig commonProviderConfig // NSX Manager client - based on go-vmware-nsxt SDK NsxtClient *nsxt.APIClient // Data for NSX Policy client - based on vsphere-automation-sdk-go SDK @@ -33,9 +39,11 @@ type nsxtClients struct { // TODO: when concurrency support is introduced policy client, // change this code to allocate single connector for all provider // operations. - PolicySecurityContext *core.SecurityContextImpl - PolicyHTTPClient *http.Client - Host string + PolicySecurityContext *core.SecurityContextImpl + PolicyHTTPClient *http.Client + Host string + PolicyEnforcementPoint string + PolicySite string } // Provider for VMWare NSX-T. Returns terraform.ResourceProvider @@ -90,7 +98,7 @@ func Provider() terraform.ResourceProvider { Type: schema.TypeInt, Optional: true, Description: "Maximum number of HTTP client retries", - DefaultFunc: schema.EnvDefaultFunc("NSXT_MAX_RETRIES", 50), + DefaultFunc: schema.EnvDefaultFunc("NSXT_MAX_RETRIES", 8), }, "retry_min_delay": { Type: schema.TypeInt, @@ -268,31 +276,19 @@ func Provider() terraform.ResourceProvider { } } -func providerConnectivityCheck(nsxClient *nsxt.APIClient) error { - // Connectivity check - get a random object to check connectivity and credentials - // TODO(asarfaty): Use a list command which returns the full body, when the go vendor has one. - _, httpResponse, err := nsxClient.ServicesApi.ReadLoadBalancerPool(nsxClient.Context, "Dummy") - if err != nil { - if httpResponse == nil || (httpResponse.StatusCode == 401 || httpResponse.StatusCode == 403) { - return fmt.Errorf("NSXT provider connectivity check failed: %s", err) - } - } - return nil -} - -func configureNsxtClient(d *schema.ResourceData) (*nsxt.APIClient, error) { +func configureNsxtClient(d *schema.ResourceData, clients *nsxtClients) error { clientAuthCertFile := d.Get("client_auth_cert_file").(string) clientAuthKeyFile := d.Get("client_auth_key_file").(string) vmcToken := d.Get("vmc_token").(string) if len(vmcToken) > 0 { - return nil, nil + return nil } needCreds := true if len(clientAuthCertFile) > 0 { if len(clientAuthKeyFile) == 0 { - return nil, fmt.Errorf("Please provide key file for client certificate") + return fmt.Errorf("Please provide key file for client certificate") } needCreds = false } @@ -300,25 +296,21 @@ func configureNsxtClient(d *schema.ResourceData) (*nsxt.APIClient, error) { insecure := d.Get("allow_unverified_ssl").(bool) username := d.Get("username").(string) password := d.Get("password").(string) - remoteAuth := d.Get("remote_auth").(bool) - - // Global variable used in resources with realization checks - toleratePartialSuccess = d.Get("tolerate_partial_success").(bool) if needCreds { if username == "" { - return nil, fmt.Errorf("username must be provided") + return fmt.Errorf("username must be provided") } if password == "" { - return nil, fmt.Errorf("password must be provided") + return fmt.Errorf("password must be provided") } } host := d.Get("host").(string) if host == "" { - return nil, fmt.Errorf("host must be provided") + return fmt.Errorf("host must be provided") } caFile := d.Get("ca_file").(string) @@ -353,7 +345,7 @@ func configureNsxtClient(d *schema.ResourceData) (*nsxt.APIClient, error) { UserAgent: "terraform-provider-nsxt/1.0", UserName: username, Password: password, - RemoteAuth: remoteAuth, + RemoteAuth: clients.CommonConfig.RemoteAuth, ClientAuthCertFile: clientAuthCertFile, ClientAuthKeyFile: clientAuthKeyFile, CAFile: caFile, @@ -363,17 +355,12 @@ func configureNsxtClient(d *schema.ResourceData) (*nsxt.APIClient, error) { nsxClient, err := nsxt.NewAPIClient(&cfg) if err != nil { - return nil, err - } - // Check provider connectivity - err = providerConnectivityCheck(nsxClient) - if err != nil { - return nil, err + return err } - initNSXVersion(nsxClient) + clients.NsxtClient = nsxClient - return nsxClient, nil + return initNSXVersion(nsxClient) } type jwtToken struct { @@ -454,7 +441,7 @@ func configurePolicyConnectorData(d *schema.ResourceData, clients *nsxtClients) clientAuthCertFile := d.Get("client_auth_cert_file").(string) clientAuthKeyFile := d.Get("client_auth_key_file").(string) caFile := d.Get("ca_file").(string) - policyEnforcementPoint = d.Get("enforcement_point").(string) + policyEnforcementPoint := d.Get("enforcement_point").(string) if hostIP == "" { return fmt.Errorf("host must be provided") @@ -463,7 +450,7 @@ func configurePolicyConnectorData(d *schema.ResourceData, clients *nsxtClients) host := fmt.Sprintf("https://%s", hostIP) securityCtx := core.NewSecurityContextImpl() securityContextNeeded := true - if len(clientAuthCertFile) > 0 { + if len(clientAuthCertFile) > 0 && !clients.CommonConfig.RemoteAuth { securityContextNeeded = false } @@ -507,20 +494,49 @@ func configurePolicyConnectorData(d *schema.ResourceData, clients *nsxtClients) httpClient := http.Client{Transport: tr} clients.PolicyHTTPClient = &httpClient - clients.PolicySecurityContext = securityCtx + if securityContextNeeded { + clients.PolicySecurityContext = securityCtx + } clients.Host = host + clients.PolicyEnforcementPoint = policyEnforcementPoint + clients.PolicySite = policySite return nil } -func providerConfigure(d *schema.ResourceData) (interface{}, error) { - nsxtClient, err := configureNsxtClient(d) - if err != nil { - return nil, err +type remoteBasicAuthHeaderProcessor struct { +} + +func newRemoteBasicAuthHeaderProcessor() *remoteBasicAuthHeaderProcessor { + return &remoteBasicAuthHeaderProcessor{} +} + +func (processor remoteBasicAuthHeaderProcessor) Process(req *http.Request) error { + oldAuthHeader := req.Header.Get("Authorization") + newAuthHeader := strings.Replace(oldAuthHeader, "Basic", "Remote", 1) + req.Header.Set("Authorization", newAuthHeader) + return nil +} + +func initCommonConfig(d *schema.ResourceData) commonProviderConfig { + remoteAuth := d.Get("remote_auth").(bool) + toleratePartialSuccess := d.Get("tolerate_partial_success").(bool) + + return commonProviderConfig{ + RemoteAuth: remoteAuth, + ToleratePartialSuccess: toleratePartialSuccess, } +} +func providerConfigure(d *schema.ResourceData) (interface{}, error) { + commonConfig := initCommonConfig(d) clients := nsxtClients{ - NsxtClient: nsxtClient, + CommonConfig: commonConfig, + } + + err := configureNsxtClient(d, &clients) + if err != nil { + return nil, err } err = configurePolicyConnectorData(d, &clients) @@ -534,6 +550,24 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) { func getPolicyConnector(clients interface{}) *client.RestConnector { c := clients.(nsxtClients) connector := client.NewRestConnector(c.Host, *c.PolicyHTTPClient) - connector.SetSecurityContext(c.PolicySecurityContext) + if c.PolicySecurityContext != nil { + connector.SetSecurityContext(c.PolicySecurityContext) + } + if c.CommonConfig.RemoteAuth { + connector.AddRequestProcessor(newRemoteBasicAuthHeaderProcessor()) + } + return connector } + +func getPolicyEnforcementPoint(clients interface{}) string { + return clients.(nsxtClients).PolicyEnforcementPoint +} + +func getPolicySite(clients interface{}) string { + return clients.(nsxtClients).PolicySite +} + +func getCommonProviderConfig(clients interface{}) commonProviderConfig { + return clients.(nsxtClients).CommonConfig +} diff --git a/nsxt/resource_nsxt_ip_pool_allocation_ip_address.go b/nsxt/resource_nsxt_ip_pool_allocation_ip_address.go index d56082a51..0ac9ec406 100644 --- a/nsxt/resource_nsxt_ip_pool_allocation_ip_address.go +++ b/nsxt/resource_nsxt_ip_pool_allocation_ip_address.go @@ -9,6 +9,7 @@ import ( "github.com/vmware/go-vmware-nsxt/manager" "log" "net/http" + "strings" ) func resourceNsxtIPPoolAllocationIPAddress() *schema.Resource { @@ -17,7 +18,7 @@ func resourceNsxtIPPoolAllocationIPAddress() *schema.Resource { Read: resourceNsxtIPPoolAllocationIPAddressRead, Delete: resourceNsxtIPPoolAllocationIPAddressDelete, Importer: &schema.ResourceImporter{ - State: schema.ImportStatePassthrough, + State: resourceNsxtIPPoolAllocationIPAddressImport, }, Schema: map[string]*schema.Schema{ @@ -132,3 +133,14 @@ func resourceNsxtIPPoolAllocationIPAddressDelete(d *schema.ResourceData, m inter return nil } + +func resourceNsxtIPPoolAllocationIPAddressImport(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) { + importID := d.Id() + s := strings.Split(importID, "/") + if len(s) != 2 { + return nil, fmt.Errorf("Please provide / as an input") + } + d.SetId(s[1]) + d.Set("ip_pool_id", s[0]) + return []*schema.ResourceData{d}, nil +} diff --git a/nsxt/resource_nsxt_ip_pool_allocation_ip_address_test.go b/nsxt/resource_nsxt_ip_pool_allocation_ip_address_test.go index 074720285..0a96975ac 100644 --- a/nsxt/resource_nsxt_ip_pool_allocation_ip_address_test.go +++ b/nsxt/resource_nsxt_ip_pool_allocation_ip_address_test.go @@ -17,51 +17,68 @@ const ( waitSeconds = 150 ) -func TestAccResourceNsxtIPPoolAllocationIPAddress_basic(t *testing.T) { - poolName := getIPPoolName() - if poolName == "" { - t.Skipf("No NSXT_TEST_IP_POOL set - skipping test") - } - - poolResourceName := "data.nsxt_ip_pool.acceptance_test" - resourceName := "nsxt_ip_pool_allocation_ip_address.test" +var testAccIPAllocationName = "nsxt_ip_pool_allocation_ip_address.test" +var testAccIPPoolName = "data.nsxt_ip_pool.acceptance_test" +func TestAccResourceNsxtIPPoolAllocationIPAddress_basic(t *testing.T) { resource.Test(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, + PreCheck: func() { testAccPreCheck(t); testAccEnvDefined(t, "NSXT_TEST_IP_POOL") }, Providers: testAccProviders, CheckDestroy: func(state *terraform.State) error { - return testAccNSXIPPoolAllocationIPAddressCheckDestroy(state, poolResourceName, resourceName) + return testAccNSXIPPoolAllocationIPAddressCheckDestroy(state) }, Steps: []resource.TestStep{ { - Config: testAccNSXIPPoolAllocationIPAddressCreateTemplate(poolName), + Config: testAccNSXIPPoolAllocationIPAddressCreateTemplate(), Check: resource.ComposeTestCheckFunc( - testAccNSXIPPoolAllocationIPAddressExists(poolResourceName, resourceName), - resource.TestCheckResourceAttrSet(resourceName, "ip_pool_id"), - resource.TestCheckResourceAttrSet(resourceName, "allocation_id"), + testAccNSXIPPoolAllocationIPAddressExists(), + resource.TestCheckResourceAttrSet(testAccIPAllocationName, "ip_pool_id"), + resource.TestCheckResourceAttrSet(testAccIPAllocationName, "allocation_id"), ), }, }, }) } -func testAccNSXIPPoolAllocationIPAddressExists(poolResourceName string, resourceName string) resource.TestCheckFunc { +func TestAccResourceNsxtIPPoolAllocationIPAddress_import(t *testing.T) { + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t); testAccEnvDefined(t, "NSXT_TEST_IP_POOL") }, + Providers: testAccProviders, + CheckDestroy: func(state *terraform.State) error { + return testAccNSXIPPoolAllocationIPAddressCheckDestroy(state) + }, + Steps: []resource.TestStep{ + { + Config: testAccNSXIPPoolAllocationIPAddressCreateTemplate(), + }, + { + ResourceName: testAccIPAllocationName, + ImportState: true, + ImportStateVerify: true, + ImportStateIdFunc: testAccNSXIPPoolAllocationIPAddressImporterGetID, + }, + }, + }) +} + +func testAccNSXIPPoolAllocationIPAddressExists() resource.TestCheckFunc { return func(state *terraform.State) error { - exists, err := checkAllocationIPAddressExists(state, poolResourceName, resourceName) + exists, err := checkAllocationIPAddressExists(state) if err != nil { return err } if !*exists { - return fmt.Errorf("Allocation %s in IP Pool %s is not existing", resourceName, poolResourceName) + return fmt.Errorf("Allocation %s in IP Pool %s does not exist", testAccIPAllocationName, testAccIPPoolName) } return nil } } -func getIPPoolIDByResourceName(state *terraform.State, poolResourceName string) (string, error) { - rsPool, ok := state.RootModule().Resources[poolResourceName] +func getIPPoolIDByResourceName(state *terraform.State) (string, error) { + rsPool, ok := state.RootModule().Resources[testAccIPPoolName] if !ok { - return "", fmt.Errorf("IP Pool resource %s not found in resources", getIPPoolName()) + return "", fmt.Errorf("IP Pool resource %s not found in resources", testAccIPPoolName) } poolID := rsPool.Primary.ID @@ -71,15 +88,16 @@ func getIPPoolIDByResourceName(state *terraform.State, poolResourceName string) return poolID, nil } -func checkAllocationIPAddressExists(state *terraform.State, poolResourceName string, resourceName string) (*bool, error) { - poolID, err := getIPPoolIDByResourceName(state, poolResourceName) +func checkAllocationIPAddressExists(state *terraform.State) (*bool, error) { + exists := false + poolID, err := getIPPoolIDByResourceName(state) if err != nil { - return nil, err + return &exists, nil } - rs, ok := state.RootModule().Resources[resourceName] + rs, ok := state.RootModule().Resources[testAccIPAllocationName] if !ok { - return nil, fmt.Errorf("IP Pool allocation_ip_address resource %s not found in resources", resourceName) + return nil, fmt.Errorf("IP Pool allocation_ip_address resource %s not found in resources", testAccIPAllocationName) } nsxClient := testAccProvider.Meta().(nsxtClients).NsxtClient @@ -95,7 +113,6 @@ func checkAllocationIPAddressExists(state *terraform.State, poolResourceName str return nil, fmt.Errorf("Error while checking if allocations in IP Pool %s exists. HTTP return code was %d", poolID, responseCode.StatusCode) } - exists := false for _, allocationIPAddress := range listResult.Results { if allocationIPAddress.AllocationId == rs.Primary.ID { exists = true @@ -106,13 +123,13 @@ func checkAllocationIPAddressExists(state *terraform.State, poolResourceName str return &exists, nil } -func testAccNSXIPPoolAllocationIPAddressCheckDestroy(state *terraform.State, poolResourceName, resourceName string) error { +func testAccNSXIPPoolAllocationIPAddressCheckDestroy(state *terraform.State) error { // PoolManagementApi.ListIpPoolAllocations() call does not return updated list within two minutes. Need to wait... fmt.Printf("testAccNSXIPPoolAllocationIPAddressCheckDestroy: waiting up to %d seconds\n", waitSeconds) timeout := time.Now().Add(waitSeconds * time.Second) for time.Now().Before(timeout) { - exists, err := checkAllocationIPAddressExists(state, poolResourceName, resourceName) + exists, err := checkAllocationIPAddressExists(state) if err != nil { return err } @@ -124,7 +141,7 @@ func testAccNSXIPPoolAllocationIPAddressCheckDestroy(state *terraform.State, poo return fmt.Errorf("Timeout on check destroy IP address allocation") } -func testAccNSXIPPoolAllocationIPAddressCreateTemplate(poolName string) string { +func testAccNSXIPPoolAllocationIPAddressCreateTemplate() string { return fmt.Sprintf(` data "nsxt_ip_pool" "acceptance_test" { display_name = "%s" @@ -132,5 +149,21 @@ data "nsxt_ip_pool" "acceptance_test" { resource "nsxt_ip_pool_allocation_ip_address" "test" { ip_pool_id = "${data.nsxt_ip_pool.acceptance_test.id}" -}`, poolName) +}`, getIPPoolName()) +} + +func testAccNSXIPPoolAllocationIPAddressImporterGetID(s *terraform.State) (string, error) { + rs, ok := s.RootModule().Resources[testAccIPAllocationName] + if !ok { + return "", fmt.Errorf("NSX IP allocation resource %s not found in resources", testAccIPAllocationName) + } + resourceID := rs.Primary.ID + if resourceID == "" { + return "", fmt.Errorf("NSX IP allocation resource ID not set in resources ") + } + poolID := rs.Primary.Attributes["ip_pool_id"] + if poolID == "" { + return "", fmt.Errorf("NSX IP Pool ID not set in resources ") + } + return fmt.Sprintf("%s/%s", poolID, resourceID), nil } diff --git a/nsxt/resource_nsxt_logical_switch.go b/nsxt/resource_nsxt_logical_switch.go index 7f888cacf..e6f5913be 100644 --- a/nsxt/resource_nsxt_logical_switch.go +++ b/nsxt/resource_nsxt_logical_switch.go @@ -146,7 +146,7 @@ func resourceNsxtLogicalSwitchCreate(d *schema.ResourceData, m interface{}) erro return resourceNsxtLogicalSwitchRead(d, m) } -func resourceNsxtLogicalSwitchVerifyRealization(d *schema.ResourceData, nsxClient *api.APIClient, logicalSwitch *manager.LogicalSwitch) error { +func resourceNsxtLogicalSwitchVerifyRealization(d *schema.ResourceData, nsxClient *api.APIClient, logicalSwitch *manager.LogicalSwitch, toleratePartialSuccess bool) error { // verifying switch realization on hypervisor pendingStates := []string{"in_progress", "pending"} targetStates := []string{"success"} @@ -216,7 +216,8 @@ func resourceNsxtLogicalSwitchRead(d *schema.ResourceData, m interface{}) error return fmt.Errorf("Error during LogicalSwitch read: %v", err) } - err = resourceNsxtLogicalSwitchVerifyRealization(d, nsxClient, &logicalSwitch) + toleratePartialSuccess := getCommonProviderConfig(m.(nsxtClients)).ToleratePartialSuccess + err = resourceNsxtLogicalSwitchVerifyRealization(d, nsxClient, &logicalSwitch, toleratePartialSuccess) if err != nil { return err diff --git a/nsxt/resource_nsxt_policy_bgp_neighbor.go b/nsxt/resource_nsxt_policy_bgp_neighbor.go index 4f4b68395..1043ab7ff 100644 --- a/nsxt/resource_nsxt_policy_bgp_neighbor.go +++ b/nsxt/resource_nsxt_policy_bgp_neighbor.go @@ -140,6 +140,7 @@ func resourceNsxtPolicyBgpNeighbor() *schema.Resource { Type: schema.TypeList, Description: "Enable address families and route filtering in each direction", Optional: true, + Computed: true, MaxItems: 2, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -279,9 +280,9 @@ func resourceNsxtPolicyBgpNeighborResourceDataToStruct(d *schema.ResourceData, i HoldDownTime: &holdDownTime, KeepAliveTime: &keepAliveTime, MaximumHopLimit: &maximumHopLimit, - NeighborAddress: neighborAddress, + NeighborAddress: &neighborAddress, Password: &password, - RemoteAsNum: remoteAsNum, + RemoteAsNum: &remoteAsNum, RouteFiltering: rFilters, SourceAddresses: sourceAddresses, Id: &id, @@ -319,7 +320,7 @@ func resourceNsxtPolicyBgpNeighborCreate(d *schema.ResourceData, m interface{}) // Create the resource using PATCH log.Printf("[INFO] Creating BgpNeighbor with ID %s", id) - err = client.Patch(t0ID, serviceID, id, obj, nil) + err = client.Patch(t0ID, serviceID, id, obj) if err != nil { return handleCreateError("BgpNeighbor", id, err) } @@ -431,7 +432,7 @@ func resourceNsxtPolicyBgpNeighborUpdate(d *schema.ResourceData, m interface{}) } // Update the resource using PATCH - err = client.Patch(t0ID, serviceID, id, obj, nil) + err = client.Patch(t0ID, serviceID, id, obj) if err != nil { return handleUpdateError("BgpNeighbor", id, err) } @@ -457,7 +458,7 @@ func resourceNsxtPolicyBgpNeighborDelete(d *schema.ResourceData, m interface{}) return fmt.Errorf("Invalid bgp_path %s", bgpPath) } - err := client.Delete(t0ID, serviceID, id, nil) + err := client.Delete(t0ID, serviceID, id) if err != nil { return handleDeleteError("BgpNeighbor", id, err) } diff --git a/nsxt/resource_nsxt_policy_bgp_neighbor_test.go b/nsxt/resource_nsxt_policy_bgp_neighbor_test.go index b3da911dd..e309fff02 100644 --- a/nsxt/resource_nsxt_policy_bgp_neighbor_test.go +++ b/nsxt/resource_nsxt_policy_bgp_neighbor_test.go @@ -39,6 +39,8 @@ var accTestPolicyBgpNeighborConfigUpdateAttributes = map[string]string{ func TestAccResourceNsxtPolicyBgpNeighbor_basic(t *testing.T) { testResourceName := "nsxt_policy_bgp_neighbor.test" + subnet := "1.1.12.2/24" + sourceAddress := "1.1.12.2" resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -48,7 +50,7 @@ func TestAccResourceNsxtPolicyBgpNeighbor_basic(t *testing.T) { }, Steps: []resource.TestStep{ { - Config: testAccNsxtPolicyBgpNeighborTemplate(true), + Config: testAccNsxtPolicyBgpNeighborTemplate(true, subnet), Check: resource.ComposeTestCheckFunc( testAccNsxtPolicyBgpNeighborExists(testResourceName), resource.TestCheckResourceAttr(testResourceName, "display_name", accTestPolicyBgpNeighborConfigCreateAttributes["display_name"]), @@ -60,7 +62,8 @@ func TestAccResourceNsxtPolicyBgpNeighbor_basic(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "maximum_hop_limit", accTestPolicyBgpNeighborConfigCreateAttributes["maximum_hop_limit"]), resource.TestCheckResourceAttr(testResourceName, "neighbor_address", accTestPolicyBgpNeighborConfigCreateAttributes["neighbor_address"]), resource.TestCheckResourceAttr(testResourceName, "remote_as_num", accTestPolicyBgpNeighborConfigCreateAttributes["remote_as_num"]), - resource.TestCheckResourceAttr(testResourceName, "source_addresses.#", "0"), + resource.TestCheckResourceAttr(testResourceName, "source_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "source_addresses.0", sourceAddress), resource.TestCheckResourceAttr(testResourceName, "bfd_config.#", "0"), resource.TestCheckResourceAttrSet(testResourceName, "password"), @@ -71,12 +74,11 @@ func TestAccResourceNsxtPolicyBgpNeighbor_basic(t *testing.T) { ), }, { - Config: testAccNsxtPolicyBgpNeighborTemplate(false), + Config: testAccNsxtPolicyBgpNeighborTemplate(false, subnet), Check: resource.ComposeTestCheckFunc( testAccNsxtPolicyBgpNeighborExists(testResourceName), resource.TestCheckResourceAttr(testResourceName, "display_name", accTestPolicyBgpNeighborConfigUpdateAttributes["display_name"]), - // TODO: file bug for description not sticking on update - //resource.TestCheckResourceAttr(testResourceName, "description", accTestPolicyBgpNeighborConfigUpdateAttributes["description"]), + resource.TestCheckResourceAttr(testResourceName, "description", accTestPolicyBgpNeighborConfigUpdateAttributes["description"]), resource.TestCheckResourceAttr(testResourceName, "allow_as_in", accTestPolicyBgpNeighborConfigUpdateAttributes["allow_as_in"]), resource.TestCheckResourceAttr(testResourceName, "graceful_restart_mode", accTestPolicyBgpNeighborConfigUpdateAttributes["graceful_restart_mode"]), resource.TestCheckResourceAttr(testResourceName, "hold_down_time", accTestPolicyBgpNeighborConfigUpdateAttributes["hold_down_time"]), @@ -84,10 +86,10 @@ func TestAccResourceNsxtPolicyBgpNeighbor_basic(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "maximum_hop_limit", accTestPolicyBgpNeighborConfigUpdateAttributes["maximum_hop_limit"]), resource.TestCheckResourceAttr(testResourceName, "neighbor_address", accTestPolicyBgpNeighborConfigUpdateAttributes["neighbor_address"]), resource.TestCheckResourceAttr(testResourceName, "remote_as_num", accTestPolicyBgpNeighborConfigUpdateAttributes["remote_as_num"]), - resource.TestCheckResourceAttr(testResourceName, "source_addresses.#", "0"), + resource.TestCheckResourceAttr(testResourceName, "source_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "source_addresses.0", sourceAddress), resource.TestCheckResourceAttr(testResourceName, "bfd_config.#", "0"), resource.TestCheckResourceAttrSet(testResourceName, "password"), - resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), @@ -291,7 +293,7 @@ func testAccNsxtPolicyBgpNeighborCheckDestroy(state *terraform.State, displayNam return nil } -func testAccNsxtPolicyBgpNeighborTemplate(createFlow bool) string { +func testAccNsxtPolicyBgpNeighborTemplate(createFlow bool, subnet string) string { var attrMap map[string]string if createFlow { attrMap = accTestPolicyBgpNeighborConfigCreateAttributes @@ -303,6 +305,19 @@ data "nsxt_policy_edge_cluster" "EC" { display_name = "%s" } +data "nsxt_policy_transport_zone" "test" { + display_name = "%s" +} + +resource "nsxt_policy_vlan_segment" "test" { + transport_zone_path = data.nsxt_policy_transport_zone.test.path + display_name = "Acceptance Test" + vlan_ids = [11] + subnet { + cidr = "10.2.2.2/24" + } +} + resource "nsxt_policy_tier0_gateway" "test" { display_name = "terraformt0gw" description = "Acceptance Test" @@ -317,6 +332,16 @@ resource "nsxt_policy_tier0_gateway" "test" { } } +resource "nsxt_policy_tier0_gateway_interface" "test" { + display_name = "terraformt0gwintf" + type = "EXTERNAL" + description = "Acceptance Test" + gateway_path = nsxt_policy_tier0_gateway.test.path + segment_path = nsxt_policy_vlan_segment.test.path + subnets = ["%s"] +} + + data "nsxt_policy_realization_info" "bgp_realization_info" { path = nsxt_policy_tier0_gateway.test.bgp_config.0.path } @@ -333,6 +358,7 @@ resource "nsxt_policy_bgp_neighbor" "test" { neighbor_address = "%s" remote_as_num = "%s" password = "%s" + source_addresses = nsxt_policy_tier0_gateway_interface.test.ip_addresses tag { scope = "scope1" @@ -342,7 +368,7 @@ resource "nsxt_policy_bgp_neighbor" "test" { data "nsxt_policy_realization_info" "realization_info" { path = nsxt_policy_bgp_neighbor.test.path -}`, getEdgeClusterName(), attrMap["display_name"], attrMap["description"], attrMap["allow_as_in"], attrMap["graceful_restart_mode"], attrMap["hold_down_time"], attrMap["keep_alive_time"], attrMap["maximum_hop_limit"], attrMap["neighbor_address"], attrMap["remote_as_num"], attrMap["password"]) +}`, getEdgeClusterName(), getVlanTransportZoneName(), subnet, attrMap["display_name"], attrMap["description"], attrMap["allow_as_in"], attrMap["graceful_restart_mode"], attrMap["hold_down_time"], attrMap["keep_alive_time"], attrMap["maximum_hop_limit"], attrMap["neighbor_address"], attrMap["remote_as_num"], attrMap["password"]) } func testAccNsxtPolicyBgpNeighborMinimalistic() string { diff --git a/nsxt/resource_nsxt_policy_dhcp_server.go b/nsxt/resource_nsxt_policy_dhcp_server.go index 1983b4a3b..8bd110c6a 100644 --- a/nsxt/resource_nsxt_policy_dhcp_server.go +++ b/nsxt/resource_nsxt_policy_dhcp_server.go @@ -36,7 +36,7 @@ func resourceNsxtPolicyDhcpServer() *schema.Resource { Description: "IP Address lease time in seconds", Optional: true, Default: 86400, - ValidateFunc: validation.IntBetween(60, 4294967295), + ValidateFunc: validation.IntAtLeast(60), }, "preferred_edge_paths": { Type: schema.TypeList, diff --git a/nsxt/resource_nsxt_policy_gateway_policy.go b/nsxt/resource_nsxt_policy_gateway_policy.go index 40ad26353..3c7300e0a 100644 --- a/nsxt/resource_nsxt_policy_gateway_policy.go +++ b/nsxt/resource_nsxt_policy_gateway_policy.go @@ -112,17 +112,17 @@ func resourceNsxtPolicyGatewayPolicyRead(d *schema.ResourceData, m interface{}) return handleReadError(d, "Gateway Policy", id, err) } - d.Set("display_name", *obj.DisplayName) + d.Set("display_name", obj.DisplayName) d.Set("description", obj.Description) setPolicyTagsInSchema(d, obj.Tags) d.Set("nsx_id", id) - d.Set("path", *obj.Path) + d.Set("path", obj.Path) d.Set("domain", getDomainFromResourcePath(*obj.Path)) - d.Set("category", *obj.Category) + d.Set("category", obj.Category) d.Set("comments", obj.Comments) - d.Set("locked", *obj.Locked) - d.Set("sequence_number", *obj.SequenceNumber) - d.Set("stateful", *obj.Stateful) + d.Set("locked", obj.Locked) + d.Set("sequence_number", obj.SequenceNumber) + d.Set("stateful", obj.Stateful) if obj.TcpStrict != nil { // tcp_strict is dependant on stateful and maybe nil d.Set("tcp_strict", *obj.TcpStrict) diff --git a/nsxt/resource_nsxt_policy_gateway_policy_test.go b/nsxt/resource_nsxt_policy_gateway_policy_test.go index 2943efecd..6e29e1ec9 100644 --- a/nsxt/resource_nsxt_policy_gateway_policy_test.go +++ b/nsxt/resource_nsxt_policy_gateway_policy_test.go @@ -22,6 +22,8 @@ func TestAccResourceNsxtPolicyGatewayPolicy_basic(t *testing.T) { proto1 := "IPV4" proto2 := "IPV4_IPV6" defaultAction := "ALLOW" + tag1 := "abc" + tag2 := "def" resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -64,7 +66,7 @@ func TestAccResourceNsxtPolicyGatewayPolicy_basic(t *testing.T) { ), }, { - Config: testAccNsxtPolicyGatewayPolicyWithRule(updatedName, direction1, proto1), + Config: testAccNsxtPolicyGatewayPolicyWithRule(updatedName, direction1, proto1, tag1), Check: resource.ComposeTestCheckFunc( testAccNsxtPolicyGatewayPolicyExists(testResourceName, defaultDomain), resource.TestCheckResourceAttr(testResourceName, "display_name", updatedName), @@ -81,10 +83,12 @@ func TestAccResourceNsxtPolicyGatewayPolicy_basic(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "rule.0.direction", direction1), resource.TestCheckResourceAttr(testResourceName, "rule.0.ip_version", proto1), resource.TestCheckResourceAttr(testResourceName, "rule.0.action", defaultAction), + resource.TestCheckResourceAttr(testResourceName, "rule.0.log_label", tag1), + resource.TestCheckResourceAttr(testResourceName, "rule.0.tag.#", "1"), ), }, { - Config: testAccNsxtPolicyGatewayPolicyWithRule(updatedName, direction2, proto2), + Config: testAccNsxtPolicyGatewayPolicyWithRule(updatedName, direction2, proto2, tag2), Check: resource.ComposeTestCheckFunc( testAccNsxtPolicyGatewayPolicyExists(testResourceName, defaultDomain), resource.TestCheckResourceAttr(testResourceName, "display_name", updatedName), @@ -101,6 +105,8 @@ func TestAccResourceNsxtPolicyGatewayPolicy_basic(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "rule.0.direction", direction2), resource.TestCheckResourceAttr(testResourceName, "rule.0.ip_version", proto2), resource.TestCheckResourceAttr(testResourceName, "rule.0.action", defaultAction), + resource.TestCheckResourceAttr(testResourceName, "rule.0.log_label", tag2), + resource.TestCheckResourceAttr(testResourceName, "rule.0.tag.#", "1"), ), }, }, @@ -309,7 +315,7 @@ resource "nsxt_policy_gateway_policy" "test" { }`, name, comments) } -func testAccNsxtPolicyGatewayPolicyWithRule(name string, direction string, protocol string) string { +func testAccNsxtPolicyGatewayPolicyWithRule(name string, direction string, protocol string, ruleTag string) string { return fmt.Sprintf(` resource "nsxt_policy_tier1_gateway" "gwt1test" { display_name = "tf-t1-gw" @@ -333,10 +339,16 @@ resource "nsxt_policy_gateway_policy" "test" { rule { display_name = "%s" direction = "%s" - ip_version = "%s" + ip_version = "%s" scope = [nsxt_policy_tier1_gateway.gwt1test.path] + log_label = "%s" + + tag { + scope = "color" + tag = "blue" + } } -}`, name, name, direction, protocol) +}`, name, name, direction, protocol, ruleTag) } //TODO: add profiles when available diff --git a/nsxt/resource_nsxt_policy_group.go b/nsxt/resource_nsxt_policy_group.go index cb01a236e..cc551fa5f 100644 --- a/nsxt/resource_nsxt_policy_group.go +++ b/nsxt/resource_nsxt_policy_group.go @@ -78,7 +78,7 @@ func getIPAddressExpressionSchema() *schema.Resource { return &schema.Resource{ Schema: map[string]*schema.Schema{ "ip_addresses": { - Type: schema.TypeList, + Type: schema.TypeSet, Required: true, Description: "List of; single IP addresses, IP address ranges or Subnets. Cannot mix IPv4 and IPv6 in a single list", Elem: &schema.Schema{ @@ -94,7 +94,7 @@ func getPathExpressionSchema() *schema.Resource { return &schema.Resource{ Schema: map[string]*schema.Schema{ "member_paths": { - Type: schema.TypeList, + Type: schema.TypeSet, Required: true, Description: "List of policy paths of direct group members", Elem: getElemPolicyPathSchema(), @@ -168,6 +168,7 @@ func getCriteriaSetSchema() *schema.Resource { Optional: true, Description: "A list of object paths for members in the group", Elem: getPathExpressionSchema(), + MaxItems: 1, }, }, } @@ -277,11 +278,15 @@ func validateGroupConjunctions(conjunctions []interface{}, criteriaMeta []criter func buildGroupConditionData(condition interface{}) (*data.StructValue, error) { conditionMap := condition.(map[string]interface{}) + key := conditionMap["key"].(string) + memberType := conditionMap["member_type"].(string) + operator := conditionMap["operator"].(string) + value := conditionMap["value"].(string) conditionModel := model.Condition{ - Key: conditionMap["key"].(string), - MemberType: conditionMap["member_type"].(string), - Operator: conditionMap["operator"].(string), - Value: conditionMap["value"].(string), + Key: &key, + MemberType: &memberType, + Operator: &operator, + Value: &value, ResourceType: model.Condition__TYPE_IDENTIFIER, } converter := bindings.NewTypeConverter() @@ -295,7 +300,7 @@ func buildGroupConditionData(condition interface{}) (*data.StructValue, error) { func buildGroupConjunctionData(conjunction string) (*data.StructValue, error) { conjunctionStruct := model.ConjunctionOperator{ - ConjunctionOperator: conjunction, + ConjunctionOperator: &conjunction, ResourceType: model.ConjunctionOperator__TYPE_IDENTIFIER, } converter := bindings.NewTypeConverter() @@ -310,7 +315,7 @@ func buildGroupConjunctionData(conjunction string) (*data.StructValue, error) { func buildGroupIPAddressData(ipaddr interface{}) (*data.StructValue, error) { ipaddrMap := ipaddr.(map[string]interface{}) var ipList []string - for _, ip := range ipaddrMap["ip_addresses"].([]interface{}) { + for _, ip := range ipaddrMap["ip_addresses"].(*schema.Set).List() { ipList = append(ipList, ip.(string)) } ipaddrStruct := model.IPAddressExpression{ @@ -329,7 +334,7 @@ func buildGroupIPAddressData(ipaddr interface{}) (*data.StructValue, error) { func buildGroupMemberPathData(paths interface{}) (*data.StructValue, error) { pathMap := paths.(map[string]interface{}) var pathList []string - for _, path := range pathMap["member_paths"].([]interface{}) { + for _, path := range pathMap["member_paths"].(*schema.Set).List() { pathList = append(pathList, path.(string)) } ipaddrStruct := model.PathExpression{ @@ -446,9 +451,9 @@ func groupConditionDataToMap(expData *data.StructValue) (map[string]interface{}, return condMap, nil } -func fromGroupExpressionData(expressions []*data.StructValue) ([]interface{}, []interface{}, error) { - var parsedConjunctions []interface{} - var parsedCriteria []interface{} +func fromGroupExpressionData(expressions []*data.StructValue) ([]map[string]interface{}, []map[string]interface{}, error) { + var parsedConjunctions []map[string]interface{} + var parsedCriteria []map[string]interface{} converter := bindings.NewTypeConverter() converter.SetMode(bindings.REST) @@ -460,45 +465,56 @@ func fromGroupExpressionData(expressions []*data.StructValue) ([]interface{}, [] expStruct := expData.(model.Expression) if expStruct.ResourceType == model.Expression_RESOURCE_TYPE_CONJUNCTIONOPERATOR { + log.Printf("[DEBUG] Parsing conjunction operator") conjData, errors := converter.ConvertToGolang(expression, model.ConjunctionOperatorBindingType()) if len(errors) > 0 { return nil, nil, errors[0] } conjStruct := conjData.(model.ConjunctionOperator) - var conjMap = make(map[string]string) + var conjMap = make(map[string]interface{}) conjMap["operator"] = conjStruct.ConjunctionOperator parsedConjunctions = append(parsedConjunctions, conjMap) } else if expStruct.ResourceType == model.IPAddressExpression__TYPE_IDENTIFIER { + log.Printf("[DEBUG] Parsing ipaddress expression") ipData, errors := converter.ConvertToGolang(expression, model.IPAddressExpressionBindingType()) if len(errors) > 0 { return nil, nil, errors[0] } ipStruct := ipData.(model.IPAddressExpression) - var addrMap = make(map[string][]string) + var addrList []map[string]interface{} + var addrMap = make(map[string]interface{}) addrMap["ip_addresses"] = ipStruct.IpAddresses var ipMap = make(map[string]interface{}) - ipMap["ipaddress_expression"] = addrMap + addrList = append(addrList, addrMap) + ipMap["ipaddress_expression"] = addrList parsedCriteria = append(parsedCriteria, ipMap) } else if expStruct.ResourceType == model.PathExpression__TYPE_IDENTIFIER { + log.Printf("[DEBUG] Parsing path expression") pathData, errors := converter.ConvertToGolang(expression, model.PathExpressionBindingType()) if len(errors) > 0 { return nil, nil, errors[0] } paths := pathData.(model.PathExpression) - var pathMap = make(map[string][]string) + var pathList []map[string]interface{} + var pathMap = make(map[string]interface{}) pathMap["member_paths"] = paths.Paths var exprMap = make(map[string]interface{}) - exprMap["path_expression"] = pathMap - parsedCriteria = append(parsedCriteria, pathMap) + pathList = append(pathList, pathMap) + exprMap["path_expression"] = pathList + parsedCriteria = append(parsedCriteria, exprMap) } else if expStruct.ResourceType == model.Condition__TYPE_IDENTIFIER { + log.Printf("[DEBUG] Parsing condition") condMap, err := groupConditionDataToMap(expression) if err != nil { return nil, nil, err } - var criteriaMap = make(map[string]interface{}) - criteriaMap["condition"] = condMap + var condList []map[string]interface{} + condList = append(condList, condMap) + criteriaMap := make(map[string]interface{}) + criteriaMap["condition"] = condList parsedCriteria = append(parsedCriteria, criteriaMap) } else if expStruct.ResourceType == model.NestedExpression__TYPE_IDENTIFIER { + log.Printf("[DEBUG] Parsing nested expression") nestedData, errors := converter.ConvertToGolang(expression, model.NestedExpressionBindingType()) if len(errors) > 0 { return nil, nil, errors[0] @@ -614,6 +630,7 @@ func resourceNsxtPolicyGroupRead(d *schema.ResourceData, m interface{}) error { } criteria, conditions, err := fromGroupExpressionData(obj.Expression) + log.Printf("[INFO] Found %d criteria, %d conjunctions for group %s", len(criteria), len(conditions), id) if err != nil { return err } diff --git a/nsxt/resource_nsxt_policy_ip_block.go b/nsxt/resource_nsxt_policy_ip_block.go index 9ac2e1608..174e3bcbf 100644 --- a/nsxt/resource_nsxt_policy_ip_block.go +++ b/nsxt/resource_nsxt_policy_ip_block.go @@ -97,7 +97,7 @@ func resourceNsxtPolicyIPBlockCreate(d *schema.ResourceData, m interface{}) erro obj := model.IpAddressBlock{ DisplayName: &displayName, Description: &description, - Cidr: cidr, + Cidr: &cidr, Tags: tags, } @@ -133,7 +133,7 @@ func resourceNsxtPolicyIPBlockUpdate(d *schema.ResourceData, m interface{}) erro Id: &id, DisplayName: &displayName, Description: &description, - Cidr: cidr, + Cidr: &cidr, Tags: tags, Revision: &revision, } diff --git a/nsxt/resource_nsxt_policy_ip_pool_block_subnet.go b/nsxt/resource_nsxt_policy_ip_pool_block_subnet.go index 2f6e615e9..c9f59d95d 100644 --- a/nsxt/resource_nsxt_policy_ip_pool_block_subnet.go +++ b/nsxt/resource_nsxt_policy_ip_pool_block_subnet.go @@ -64,16 +64,17 @@ func resourceNsxtPolicyIPPoolBlockSubnetSchemaToStructValue(d *schema.ResourceDa blockPath := d.Get("block_path").(string) autoAssignGateway := d.Get("auto_assign_gateway").(bool) size := d.Get("size").(int) + size64 := int64(size) tags := getPolicyTagsFromSchema(d) obj := model.IpAddressPoolBlockSubnet{ DisplayName: &displayName, Description: &description, Tags: tags, - Size: int64(size), + Size: &size64, AutoAssignGateway: &autoAssignGateway, ResourceType: "IpAddressPoolBlockSubnet", - IpBlockPath: blockPath, + IpBlockPath: &blockPath, Id: &id, } @@ -122,7 +123,7 @@ func resourceNsxtPolicyIPPoolBlockSubnetRead(d *schema.ResourceData, m interface d.Set("path", blockSubnet.Path) d.Set("revision", blockSubnet.Revision) d.Set("auto_assign_gateway", blockSubnet.AutoAssignGateway) - d.Set("size", int(blockSubnet.Size)) + d.Set("size", blockSubnet.Size) d.Set("pool_path", poolPath) d.Set("block_path", blockSubnet.IpBlockPath) @@ -228,7 +229,7 @@ func resourceNsxtPolicyIPPoolBlockSubnetVerifyDelete(d *schema.ResourceData, con Target: targetStates, Refresh: func() (interface{}, string, error) { - _, realizationError := client.List(path) + _, realizationError := client.List(path, &policySite) if realizationError != nil { if isNotFoundError(realizationError) { return 0, "DELETED", nil diff --git a/nsxt/resource_nsxt_policy_ip_pool_static_subnet.go b/nsxt/resource_nsxt_policy_ip_pool_static_subnet.go index a2faf90e5..aec03498c 100644 --- a/nsxt/resource_nsxt_policy_ip_pool_static_subnet.go +++ b/nsxt/resource_nsxt_policy_ip_pool_static_subnet.go @@ -81,7 +81,7 @@ func resourceNsxtPolicyIPPoolStaticSubnetSchemaToStructValue(d *schema.ResourceD Description: &description, Tags: tags, ResourceType: "IpAddressPoolStaticSubnet", - Cidr: cidr, + Cidr: &cidr, Id: &id, } @@ -99,9 +99,11 @@ func resourceNsxtPolicyIPPoolStaticSubnetSchemaToStructValue(d *schema.ResourceD var poolRanges []model.IpPoolRange for _, allocRange := range d.Get("allocation_range").([]interface{}) { allocMap := allocRange.(map[string]interface{}) + start := allocMap["start"].(string) + end := allocMap["end"].(string) ipRange := model.IpPoolRange{ - Start: allocMap["start"].(string), - End: allocMap["end"].(string), + Start: &start, + End: &end, } poolRanges = append(poolRanges, ipRange) } diff --git a/nsxt/resource_nsxt_policy_lb_pool.go b/nsxt/resource_nsxt_policy_lb_pool.go index 88c63a802..66a56c202 100644 --- a/nsxt/resource_nsxt_policy_lb_pool.go +++ b/nsxt/resource_nsxt_policy_lb_pool.go @@ -156,11 +156,12 @@ func getPolicyPoolMembersFromSchema(d *schema.ResourceData) []model.LBPoolMember port := data["port"].(string) weight := int64(data["weight"].(int)) maxConnections := int64(data["max_concurrent_connections"].(int)) + address := data["ip_address"].(string) elem := model.LBPoolMember{ AdminState: &adminState, BackupMember: &backupMember, DisplayName: &displayName, - IpAddress: data["ip_address"].(string), + IpAddress: &address, Weight: &weight, } @@ -224,7 +225,7 @@ func getPolicyPoolMemberGroupFromSchema(d *schema.ResourceData) *model.LBPoolMem } elem := model.LBPoolMemberGroup{ - GroupPath: groupPath, + GroupPath: &groupPath, IpRevisionFilter: &ipRevisionFilter, } @@ -318,7 +319,7 @@ func getPolicyPoolSnatFromSchema(d *schema.ResourceData) (*data.StructValue, err } prefix64 := int64(prefix) element := model.LBSnatIpElement{ - IpAddress: tokens[0], + IpAddress: &tokens[0], PrefixLength: &prefix64, } @@ -326,7 +327,7 @@ func getPolicyPoolSnatFromSchema(d *schema.ResourceData) (*data.StructValue, err } else { // single IP or range element := model.LBSnatIpElement{ - IpAddress: addressStr, + IpAddress: &addressStr, } addressList = append(addressList, element) } @@ -386,10 +387,10 @@ func setPolicyPoolSnatInSchema(d *schema.ResourceData, snat *data.StructValue) e var addressList []string for _, address := range ipPoolSnat.IpAddresses { if address.PrefixLength != nil { - cidr := fmt.Sprintf("%s/%d", address.IpAddress, *address.PrefixLength) + cidr := fmt.Sprintf("%s/%d", *address.IpAddress, *address.PrefixLength) addressList = append(addressList, cidr) } else { - addressList = append(addressList, address.IpAddress) + addressList = append(addressList, *address.IpAddress) } } elem["ip_pool_addresses"] = addressList diff --git a/nsxt/resource_nsxt_policy_lb_service.go b/nsxt/resource_nsxt_policy_lb_service.go index d12fec2f2..444e6fdb1 100644 --- a/nsxt/resource_nsxt_policy_lb_service.go +++ b/nsxt/resource_nsxt_policy_lb_service.go @@ -111,6 +111,9 @@ func resourceNsxtPolicyLBServiceCreate(d *schema.ResourceData, m interface{}) er enabled := d.Get("enabled").(bool) errorLogLevel := d.Get("error_log_level").(string) size := d.Get("size").(string) + if size == "XLARGE" && nsxVersionLower("3.0.0") { + return fmt.Errorf("XLARGE size is not supported before NSX version 3.0.0") + } obj := model.LBService{ DisplayName: &displayName, @@ -189,6 +192,9 @@ func resourceNsxtPolicyLBServiceUpdate(d *schema.ResourceData, m interface{}) er enabled := d.Get("enabled").(bool) errorLogLevel := d.Get("error_log_level").(string) size := d.Get("size").(string) + if size == "XLARGE" && nsxVersionLower("3.0.0") { + return fmt.Errorf("XLARGE size is not supported before NSX version 3.0.0") + } obj := model.LBService{ DisplayName: &displayName, diff --git a/nsxt/resource_nsxt_policy_lb_virtual_server.go b/nsxt/resource_nsxt_policy_lb_virtual_server.go index a40de894c..e7aecfd45 100644 --- a/nsxt/resource_nsxt_policy_lb_virtual_server.go +++ b/nsxt/resource_nsxt_policy_lb_virtual_server.go @@ -244,7 +244,7 @@ func getPolicyClientSSLBindingFromSchema(d *schema.ResourceData) *model.LBClient ClientAuth: &clientAuth, ClientAuthCaPaths: caList, ClientAuthCrlPaths: crlList, - DefaultCertificatePath: certPath, + DefaultCertificatePath: &certPath, SslProfilePath: &profilePath, } @@ -339,9 +339,9 @@ func getPolicyAccessListControlFromSchema(d *schema.ResourceData) *model.LBAcces enabled := data["enabled"].(bool) groupPath := data["group_path"].(string) result := model.LBAccessListControl{ - Action: action, + Action: &action, Enabled: &enabled, - GroupPath: groupPath, + GroupPath: &groupPath, } return &result @@ -427,11 +427,11 @@ func resourceNsxtPolicyLBVirtualServerCreate(d *schema.ResourceData, m interface Description: &description, Tags: tags, AccessLogEnabled: &accessLogEnabled, - ApplicationProfilePath: applicationProfilePath, + ApplicationProfilePath: &applicationProfilePath, ClientSslProfileBinding: clientSSLProfileBinding, DefaultPoolMemberPorts: defaultPoolMemberPorts, Enabled: &enabled, - IpAddress: ipAddress, + IpAddress: &ipAddress, LbPersistenceProfilePath: &lbPersistenceProfilePath, LbServicePath: &lbServicePath, PoolPath: &poolPath, @@ -545,11 +545,11 @@ func resourceNsxtPolicyLBVirtualServerUpdate(d *schema.ResourceData, m interface Description: &description, Tags: tags, AccessLogEnabled: &accessLogEnabled, - ApplicationProfilePath: applicationProfilePath, + ApplicationProfilePath: &applicationProfilePath, ClientSslProfileBinding: clientSSLProfileBinding, DefaultPoolMemberPorts: defaultPoolMemberPorts, Enabled: &enabled, - IpAddress: ipAddress, + IpAddress: &ipAddress, LbPersistenceProfilePath: &lbPersistenceProfilePath, LbServicePath: &lbServicePath, PoolPath: &poolPath, diff --git a/nsxt/resource_nsxt_policy_nat_rule.go b/nsxt/resource_nsxt_policy_nat_rule.go index 1c7c2d266..a261c8037 100644 --- a/nsxt/resource_nsxt_policy_nat_rule.go +++ b/nsxt/resource_nsxt_policy_nat_rule.go @@ -98,7 +98,7 @@ func resourceNsxtPolicyNATRule() *schema.Resource { "source_networks": { Type: schema.TypeList, Description: "The source network(s) for the NAT Rule", - Required: true, + Optional: true, Elem: &schema.Schema{ Type: schema.TypeString, ValidateFunc: validateCidrOrIPOrRange(), @@ -197,14 +197,20 @@ func resourceNsxtPolicyNATRuleRead(d *schema.ResourceData, m interface{}) error d.Set("path", obj.Path) d.Set("revision", obj.Revision) d.Set("action", obj.Action) - d.Set("destination_networks", commaSeparatedStringToStringList(*obj.DestinationNetwork)) + if obj.DestinationNetwork != nil { + d.Set("destination_networks", commaSeparatedStringToStringList(*obj.DestinationNetwork)) + } d.Set("enabled", obj.Enabled) d.Set("firewall_match", obj.FirewallMatch) d.Set("logging", obj.Logging) d.Set("rule_priority", obj.SequenceNumber) d.Set("service", obj.Service) - d.Set("source_networks", commaSeparatedStringToStringList(*obj.SourceNetwork)) - d.Set("translated_networks", commaSeparatedStringToStringList(*obj.TranslatedNetwork)) + if obj.SourceNetwork != nil { + d.Set("source_networks", commaSeparatedStringToStringList(*obj.SourceNetwork)) + } + if obj.TranslatedNetwork != nil { + d.Set("translated_networks", commaSeparatedStringToStringList(*obj.TranslatedNetwork)) + } d.Set("translated_ports", obj.TranslatedPorts) d.Set("scope", obj.Scope) @@ -251,7 +257,7 @@ func resourceNsxtPolicyNATRuleCreate(d *schema.ResourceData, m interface{}) erro DisplayName: &displayName, Description: &description, Tags: tags, - Action: action, + Action: &action, DestinationNetwork: &dNets, Enabled: &enabled, Logging: &logging, @@ -312,7 +318,7 @@ func resourceNsxtPolicyNATRuleUpdate(d *schema.ResourceData, m interface{}) erro DisplayName: &displayName, Description: &description, Tags: tags, - Action: action, + Action: &action, DestinationNetwork: &dNets, Enabled: &enabled, Logging: &logging, diff --git a/nsxt/resource_nsxt_policy_security_policy.go b/nsxt/resource_nsxt_policy_security_policy.go index b08f34a46..b0f839e05 100644 --- a/nsxt/resource_nsxt_policy_security_policy.go +++ b/nsxt/resource_nsxt_policy_security_policy.go @@ -118,15 +118,15 @@ func resourceNsxtPolicySecurityPolicyRead(d *schema.ResourceData, m interface{}) d.Set("domain", getDomainFromResourcePath(*obj.Path)) d.Set("category", obj.Category) d.Set("comments", obj.Comments) - d.Set("locked", *obj.Locked) + d.Set("locked", obj.Locked) if len(obj.Scope) == 1 && obj.Scope[0] == "ANY" { d.Set("scope", nil) } else { d.Set("scope", obj.Scope) } d.Set("sequence_number", obj.SequenceNumber) - d.Set("stateful", *obj.Stateful) - d.Set("tcp_strict", *obj.TcpStrict) + d.Set("stateful", obj.Stateful) + d.Set("tcp_strict", obj.TcpStrict) d.Set("revision", obj.Revision) setPolicyRulesInSchema(d, obj.Rules) diff --git a/nsxt/resource_nsxt_policy_security_policy_test.go b/nsxt/resource_nsxt_policy_security_policy_test.go index 5b30016d1..f47fab4b1 100644 --- a/nsxt/resource_nsxt_policy_security_policy_test.go +++ b/nsxt/resource_nsxt_policy_security_policy_test.go @@ -22,6 +22,8 @@ func TestAccResourceNsxtPolicySecurityPolicy_basic(t *testing.T) { proto1 := "IPV4" proto2 := "IPV4_IPV6" defaultAction := "ALLOW" + tag1 := "abc" + tag2 := "def" resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -66,7 +68,7 @@ func TestAccResourceNsxtPolicySecurityPolicy_basic(t *testing.T) { ), }, { - Config: testAccNsxtPolicySecurityPolicyWithRule(updatedName, direction1, proto1), + Config: testAccNsxtPolicySecurityPolicyWithRule(updatedName, direction1, proto1, tag1), Check: resource.ComposeTestCheckFunc( testAccNsxtPolicySecurityPolicyExists(testResourceName, defaultDomain), resource.TestCheckResourceAttr(testResourceName, "display_name", updatedName), @@ -84,10 +86,12 @@ func TestAccResourceNsxtPolicySecurityPolicy_basic(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "rule.0.direction", direction1), resource.TestCheckResourceAttr(testResourceName, "rule.0.ip_version", proto1), resource.TestCheckResourceAttr(testResourceName, "rule.0.action", defaultAction), + resource.TestCheckResourceAttr(testResourceName, "rule.0.log_label", tag1), + resource.TestCheckResourceAttr(testResourceName, "rule.0.tag.#", "1"), ), }, { - Config: testAccNsxtPolicySecurityPolicyWithRule(updatedName, direction2, proto2), + Config: testAccNsxtPolicySecurityPolicyWithRule(updatedName, direction2, proto2, tag2), Check: resource.ComposeTestCheckFunc( testAccNsxtPolicySecurityPolicyExists(testResourceName, defaultDomain), resource.TestCheckResourceAttr(testResourceName, "display_name", updatedName), @@ -105,6 +109,8 @@ func TestAccResourceNsxtPolicySecurityPolicy_basic(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "rule.0.direction", direction2), resource.TestCheckResourceAttr(testResourceName, "rule.0.ip_version", proto2), resource.TestCheckResourceAttr(testResourceName, "rule.0.action", defaultAction), + resource.TestCheckResourceAttr(testResourceName, "rule.0.log_label", tag2), + resource.TestCheckResourceAttr(testResourceName, "rule.0.tag.#", "1"), ), }, }, @@ -281,7 +287,7 @@ resource "nsxt_policy_security_policy" "test" { }`, name, comments) } -func testAccNsxtPolicySecurityPolicyWithRule(name string, direction string, protocol string) string { +func testAccNsxtPolicySecurityPolicyWithRule(name string, direction string, protocol string, ruleTag string) string { return fmt.Sprintf(` resource "nsxt_policy_security_policy" "test" { display_name = "%s" @@ -301,8 +307,14 @@ resource "nsxt_policy_security_policy" "test" { display_name = "%s" direction = "%s" ip_version = "%s" + log_label = "%s" + + tag { + scope = "color" + tag = "blue" + } } -}`, name, name, direction, protocol) +}`, name, name, direction, protocol, ruleTag) } func testAccNsxtPolicySecurityPolicyDeps() string { diff --git a/nsxt/resource_nsxt_policy_service.go b/nsxt/resource_nsxt_policy_service.go index 40de9a344..5e4060685 100644 --- a/nsxt/resource_nsxt_policy_service.go +++ b/nsxt/resource_nsxt_policy_service.go @@ -226,7 +226,7 @@ func resourceNsxtPolicyServiceGetEntriesFromSchema(d *schema.ResourceData) ([]*d Description: &description, IcmpType: typePtr, IcmpCode: codePtr, - Protocol: protocol, + Protocol: &protocol, ResourceType: model.ServiceEntry_RESOURCE_TYPE_ICMPTYPESERVICEENTRY, } dataValue, errs := converter.ConvertToVapi(serviceEntry, model.ICMPTypeServiceEntryBindingType()) @@ -257,7 +257,7 @@ func resourceNsxtPolicyServiceGetEntriesFromSchema(d *schema.ResourceData) ([]*d Description: &description, DestinationPorts: destinationPorts, SourcePorts: sourcePorts, - L4Protocol: l4Protocol, + L4Protocol: &l4Protocol, ResourceType: model.ServiceEntry_RESOURCE_TYPE_L4PORTSETSERVICEENTRY, } dataValue, errs := converter.ConvertToVapi(serviceEntry, model.L4PortSetServiceEntryBindingType()) @@ -309,7 +309,7 @@ func resourceNsxtPolicyServiceGetEntriesFromSchema(d *schema.ResourceData) ([]*d Id: &id, DisplayName: &displayName, Description: &description, - EtherType: etherType, + EtherType: ðerType, ResourceType: model.ServiceEntry_RESOURCE_TYPE_ETHERTYPESERVICEENTRY, } dataValue, errs := converter.ConvertToVapi(serviceEntry, model.EtherTypeServiceEntryBindingType()) @@ -336,7 +336,7 @@ func resourceNsxtPolicyServiceGetEntriesFromSchema(d *schema.ResourceData) ([]*d Id: &id, DisplayName: &displayName, Description: &description, - ProtocolNumber: protocolNumber, + ProtocolNumber: &protocolNumber, ResourceType: model.ServiceEntry_RESOURCE_TYPE_IPPROTOCOLSERVICEENTRY, } dataValue, errs := converter.ConvertToVapi(serviceEntry, model.IPProtocolServiceEntryBindingType()) @@ -366,7 +366,7 @@ func resourceNsxtPolicyServiceGetEntriesFromSchema(d *schema.ResourceData) ([]*d Id: &id, DisplayName: &displayName, Description: &description, - Alg: alg, + Alg: &alg, DestinationPorts: destinationPorts, SourcePorts: sourcePorts, ResourceType: model.ServiceEntry_RESOURCE_TYPE_ALGTYPESERVICEENTRY, @@ -476,8 +476,18 @@ func resourceNsxtPolicyServiceRead(d *schema.ResourceData, m interface{}) error for _, entry := range obj.ServiceEntries { elem := make(map[string]interface{}) - icmpEntry, errs := converter.ConvertToGolang(entry, model.ICMPTypeServiceEntryBindingType()) - if errs == nil { + base, errs := converter.ConvertToGolang(entry, model.ServiceEntryBindingType()) + resourceType := base.(model.ServiceEntry).ResourceType + if errs != nil { + return errs[0] + } + + if resourceType == model.ServiceEntry_RESOURCE_TYPE_ICMPTYPESERVICEENTRY { + icmpEntry, errs := converter.ConvertToGolang(entry, model.ICMPTypeServiceEntryBindingType()) + if errs != nil { + return errs[0] + } + serviceEntry := icmpEntry.(model.ICMPTypeServiceEntry) elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) elem["description"] = serviceEntry.Description @@ -493,57 +503,66 @@ func resourceNsxtPolicyServiceRead(d *schema.ResourceData, m interface{}) error } elem["protocol"] = serviceEntry.Protocol icmpEntriesList = append(icmpEntriesList, elem) - } else { - l4Entry, l4Errs := converter.ConvertToGolang(entry, model.L4PortSetServiceEntryBindingType()) - if l4Errs == nil { - serviceEntry := l4Entry.(model.L4PortSetServiceEntry) - elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) - elem["description"] = serviceEntry.Description - elem["destination_ports"] = serviceEntry.DestinationPorts - elem["source_ports"] = serviceEntry.SourcePorts - elem["protocol"] = serviceEntry.L4Protocol - l4EntriesList = append(l4EntriesList, elem) - } else { - etherEntry, etherErrs := converter.ConvertToGolang(entry, model.EtherTypeServiceEntryBindingType()) - if etherErrs == nil { - serviceEntry := etherEntry.(model.EtherTypeServiceEntry) - elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) - elem["description"] = serviceEntry.Description - elem["ether_type"] = serviceEntry.EtherType - etherEntriesList = append(etherEntriesList, elem) - } else { - ipProtEntry, ipProtErrs := converter.ConvertToGolang(entry, model.IPProtocolServiceEntryBindingType()) - if ipProtErrs == nil { - serviceEntry := ipProtEntry.(model.IPProtocolServiceEntry) - elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) - elem["description"] = serviceEntry.Description - elem["protocol"] = serviceEntry.ProtocolNumber - ipProtEntriesList = append(ipProtEntriesList, elem) - } else { - algEntry, algErrs := converter.ConvertToGolang(entry, model.ALGTypeServiceEntryBindingType()) - if algErrs == nil { - serviceEntry := algEntry.(model.ALGTypeServiceEntry) - elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) - elem["description"] = serviceEntry.Description - elem["algorithm"] = serviceEntry.Alg - elem["destination_port"] = serviceEntry.DestinationPorts[0] - elem["source_ports"] = serviceEntry.SourcePorts - algEntriesList = append(algEntriesList, elem) - } else { - igmpEntry, igmpErrs := converter.ConvertToGolang(entry, model.IGMPTypeServiceEntryBindingType()) - if igmpErrs == nil { - serviceEntry := igmpEntry.(model.IGMPTypeServiceEntry) - elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) - elem["description"] = serviceEntry.Description - igmpEntriesList = append(igmpEntriesList, elem) - } else { - // Unknown service entry type - return igmpErrs[0] - } - } - } - } + } else if resourceType == model.ServiceEntry_RESOURCE_TYPE_L4PORTSETSERVICEENTRY { + l4Entry, errs := converter.ConvertToGolang(entry, model.L4PortSetServiceEntryBindingType()) + if errs != nil { + return errs[0] } + + serviceEntry := l4Entry.(model.L4PortSetServiceEntry) + elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) + elem["description"] = serviceEntry.Description + elem["destination_ports"] = serviceEntry.DestinationPorts + elem["source_ports"] = serviceEntry.SourcePorts + elem["protocol"] = serviceEntry.L4Protocol + l4EntriesList = append(l4EntriesList, elem) + } else if resourceType == model.ServiceEntry_RESOURCE_TYPE_ETHERTYPESERVICEENTRY { + etherEntry, errs := converter.ConvertToGolang(entry, model.EtherTypeServiceEntryBindingType()) + if errs != nil { + return errs[0] + } + + serviceEntry := etherEntry.(model.EtherTypeServiceEntry) + elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) + elem["description"] = serviceEntry.Description + elem["ether_type"] = serviceEntry.EtherType + etherEntriesList = append(etherEntriesList, elem) + } else if resourceType == model.ServiceEntry_RESOURCE_TYPE_IPPROTOCOLSERVICEENTRY { + ipProtEntry, errs := converter.ConvertToGolang(entry, model.IPProtocolServiceEntryBindingType()) + if errs != nil { + return errs[0] + } + + serviceEntry := ipProtEntry.(model.IPProtocolServiceEntry) + elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) + elem["description"] = serviceEntry.Description + elem["protocol"] = serviceEntry.ProtocolNumber + ipProtEntriesList = append(ipProtEntriesList, elem) + } else if resourceType == model.ServiceEntry_RESOURCE_TYPE_ALGTYPESERVICEENTRY { + algEntry, errs := converter.ConvertToGolang(entry, model.ALGTypeServiceEntryBindingType()) + if errs != nil { + return errs[0] + } + + serviceEntry := algEntry.(model.ALGTypeServiceEntry) + elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) + elem["description"] = serviceEntry.Description + elem["algorithm"] = serviceEntry.Alg + elem["destination_port"] = serviceEntry.DestinationPorts[0] + elem["source_ports"] = serviceEntry.SourcePorts + algEntriesList = append(algEntriesList, elem) + } else if resourceType == model.ServiceEntry_RESOURCE_TYPE_IGMPTYPESERVICEENTRY { + igmpEntry, errs := converter.ConvertToGolang(entry, model.IGMPTypeServiceEntryBindingType()) + if errs != nil { + return errs[0] + } + + serviceEntry := igmpEntry.(model.IGMPTypeServiceEntry) + elem["display_name"] = filterServiceEntryDisplayName(*serviceEntry.DisplayName, *serviceEntry.Id) + elem["description"] = serviceEntry.Description + igmpEntriesList = append(igmpEntriesList, elem) + } else { + return fmt.Errorf("Unrecognized Service Entry Type %s", resourceType) } } @@ -624,7 +643,7 @@ func resourceNsxtPolicyServiceDelete(d *schema.ResourceData, m interface{}) erro client := infra.NewDefaultServicesClient(connector) err := client.Delete(id) if err != nil { - err = handleDeleteError("Service", id, err) + return handleDeleteError("Service", id, err) } return nil diff --git a/nsxt/resource_nsxt_policy_static_route.go b/nsxt/resource_nsxt_policy_static_route.go index f225e9d90..61886d530 100644 --- a/nsxt/resource_nsxt_policy_static_route.go +++ b/nsxt/resource_nsxt_policy_static_route.go @@ -148,7 +148,7 @@ func resourceNsxtPolicyStaticRouteCreate(d *schema.ResourceData, m interface{}) DisplayName: &displayName, Description: &description, Tags: tags, - Network: network, + Network: &network, } if len(nextHopsStructs) > 0 { @@ -254,7 +254,7 @@ func resourceNsxtPolicyStaticRouteUpdate(d *schema.ResourceData, m interface{}) DisplayName: &displayName, Description: &description, Tags: tags, - Network: network, + Network: &network, } if len(nextHopsStructs) > 0 { diff --git a/nsxt/resource_nsxt_policy_tier0_gateway.go b/nsxt/resource_nsxt_policy_tier0_gateway.go index ed284acd2..af04adc6d 100644 --- a/nsxt/resource_nsxt_policy_tier0_gateway.go +++ b/nsxt/resource_nsxt_policy_tier0_gateway.go @@ -156,7 +156,7 @@ func getPolicyBGPConfigSchema() *schema.Schema { Type: schema.TypeBool, Description: "Flag to enable BGP multipath relax option", Optional: true, - Default: false, + Default: true, }, "route_aggregation": { Type: schema.TypeList, @@ -408,9 +408,26 @@ func getPolicyVRFConfigFromSchema(d *schema.ResourceData) *model.Tier0VrfConfig vni := int64(vrfConfig["evpn_transit_vni"].(int)) gwPath := vrfConfig["gateway_path"].(string) routeDist := vrfConfig["route_distinguisher"].(string) + + var tagStructs []model.Tag + if vrfConfig["tag"] != nil { + vrfTags := vrfConfig["tag"].(*schema.Set).List() + for _, tag := range vrfTags { + data := tag.(map[string]interface{}) + tagScope := data["scope"].(string) + tagTag := data["tag"].(string) + elem := model.Tag{ + Scope: &tagScope, + Tag: &tagTag} + tagStructs = append(tagStructs, elem) + } + } + config := model.Tier0VrfConfig{ - Tier0Path: gwPath, + Tier0Path: &gwPath, + Tags: tagStructs, } + if len(routeDist) > 0 { config.RouteDistinguisher = &routeDist } @@ -464,6 +481,15 @@ func setPolicyVRFConfigInSchema(d *schema.ResourceData, config *model.Tier0VrfCo elem["route_target"] = routeTargets } + var tagList []map[string]string + for _, tag := range config.Tags { + tagElem := make(map[string]string) + tagElem["scope"] = *tag.Scope + tagElem["tag"] = *tag.Tag + tagList = append(tagList, tagElem) + } + elem["tag"] = tagList + vrfConfigs = append(vrfConfigs, elem) return d.Set("vrf_config", vrfConfigs) @@ -498,8 +524,8 @@ func resourceNsxtPolicyTier0GatewayBGPConfigSchemaToStruct(cfg interface{}, isVr staleTimer := int64(cfgMap["graceful_restart_stale_route_timer"].(int)) var tagStructs []model.Tag - if cfgMap["tags"] != nil { - cfgTags := cfgMap["tags"].([]interface{}) + if cfgMap["tag"] != nil { + cfgTags := cfgMap["tag"].(*schema.Set).List() for _, tag := range cfgTags { data := tag.(map[string]interface{}) tagScope := data["scope"].(string) @@ -520,7 +546,7 @@ func resourceNsxtPolicyTier0GatewayBGPConfigSchemaToStruct(cfg interface{}, isVr prefix := data["prefix"].(string) summary := data["summary_only"].(bool) elem := model.RouteAggregationEntry{ - Prefix: prefix, + Prefix: &prefix, SummaryOnly: &summary, } @@ -545,6 +571,7 @@ func resourceNsxtPolicyTier0GatewayBGPConfigSchemaToStruct(cfg interface{}, isVr Enabled: &enabled, RouteAggregations: aggregationStructs, ResourceType: &bgpcType, + Tags: tagStructs, Id: &id, Revision: &revision, } @@ -627,7 +654,7 @@ func resourceNsxtPolicyTier0GatewayResourceToInfraStruct(d *schema.ResourceData, routingConfigStruct := resourceNsxtPolicyTier0GatewayBGPConfigSchemaToStruct(bgpConfig[0], vrfConfig != nil, id) childConfig := model.ChildBgpRoutingConfig{ ResourceType: "ChildBgpRoutingConfig", - BgpRoutingConfig: routingConfigStruct, + BgpRoutingConfig: &routingConfigStruct, } dataValue, errors := converter.ConvertToVapi(childConfig, model.ChildBgpRoutingConfigBindingType()) if errors != nil { @@ -677,7 +704,7 @@ func resourceNsxtPolicyTier0GatewayResourceToInfraStruct(d *schema.ResourceData, childService := model.ChildLocaleServices{ ResourceType: "ChildLocaleServices", - LocaleServices: *serviceStruct, + LocaleServices: serviceStruct, } dataValue, errors := converter.ConvertToVapi(childService, model.ChildLocaleServicesBindingType()) if errors != nil { @@ -688,7 +715,7 @@ func resourceNsxtPolicyTier0GatewayResourceToInfraStruct(d *schema.ResourceData, t0Struct.Children = gwChildren childTier0 := model.ChildTier0{ - Tier0: t0Struct, + Tier0: &t0Struct, ResourceType: "ChildTier0", } dataValue, errors := converter.ConvertToVapi(childTier0, model.ChildTier0BindingType()) @@ -837,7 +864,7 @@ func resourceNsxtPolicyTier0GatewayDelete(d *schema.ResourceData, m interface{}) childT0 := model.ChildTier0{ MarkedForDelete: &boolTrue, - Tier0: t0obj, + Tier0: &t0obj, ResourceType: "ChildTier0", } dataValue, errors := converter.ConvertToVapi(childT0, model.ChildTier0BindingType()) diff --git a/nsxt/resource_nsxt_policy_tier0_gateway_interface.go b/nsxt/resource_nsxt_policy_tier0_gateway_interface.go index 369d583f7..7680265c9 100644 --- a/nsxt/resource_nsxt_policy_tier0_gateway_interface.go +++ b/nsxt/resource_nsxt_policy_tier0_gateway_interface.go @@ -69,6 +69,14 @@ func resourceNsxtPolicyTier0GatewayInterface() *schema.Resource { Computed: true, }, "urpf_mode": getGatewayInterfaceUrpfModeSchema(), + "ip_addresses": { + Type: schema.TypeList, + Description: "Ip addresses", + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, }, } } @@ -167,7 +175,7 @@ func resourceNsxtPolicyTier0GatewayInterfaceCreate(d *schema.ResourceData, m int // Create the resource using PATCH log.Printf("[INFO] Creating Tier0 interface with ID %s", id) - err = client.Patch(tier0ID, localeServiceID, id, obj, nil) + err = client.Patch(tier0ID, localeServiceID, id, obj) if err != nil { return handleCreateError("Tier0 Interface", id, err) } @@ -224,11 +232,14 @@ func resourceNsxtPolicyTier0GatewayInterfaceRead(d *schema.ResourceData, m inter if obj.Subnets != nil { var subnetList []string + var ipList []string for _, subnet := range obj.Subnets { - cidr := fmt.Sprintf("%s/%d", subnet.IpAddresses[0], subnet.PrefixLen) + cidr := fmt.Sprintf("%s/%d", subnet.IpAddresses[0], *subnet.PrefixLen) subnetList = append(subnetList, cidr) + ipList = append(ipList, subnet.IpAddresses[0]) } d.Set("subnets", subnetList) + d.Set("ip_addresses", ipList) } if obj.UrpfMode != nil { @@ -249,8 +260,8 @@ func resourceNsxtPolicyTier0GatewayInterfaceUpdate(d *schema.ResourceData, m int tier0Path := d.Get("gateway_path").(string) localeServiceID := d.Get("locale_service_id").(string) tier0ID := getPolicyIDFromPath(tier0Path) - if id == "" || tier0ID == "" { - return fmt.Errorf("Error obtaining Tier0 id") + if id == "" || tier0ID == "" || localeServiceID == "" { + return fmt.Errorf("Error obtaining Tier0 id or Locale Service id") } displayName := d.Get("display_name").(string) @@ -290,7 +301,7 @@ func resourceNsxtPolicyTier0GatewayInterfaceUpdate(d *schema.ResourceData, m int gatewayInterfaceVersionDepenantSet(d, &obj) - _, err := client.Update(tier0ID, localeServiceID, id, obj, nil) + _, err := client.Update(tier0ID, localeServiceID, id, obj) if err != nil { return handleUpdateError("Tier0 Interface", id, err) } @@ -305,11 +316,12 @@ func resourceNsxtPolicyTier0GatewayInterfaceDelete(d *schema.ResourceData, m int id := d.Id() tier0Path := d.Get("gateway_path").(string) tier0ID := getPolicyIDFromPath(tier0Path) - if id == "" || tier0ID == "" { - return fmt.Errorf("Error obtaining Tier0 Interface id") + localeServiceID := d.Get("locale_service_id").(string) + if id == "" || tier0ID == "" || localeServiceID == "" { + return fmt.Errorf("Error obtaining Tier0 id or Locale Service id") } - err := client.Delete(tier0ID, defaultPolicyLocaleServiceID, id, nil) + err := client.Delete(tier0ID, localeServiceID, id) if err != nil { return handleDeleteError("Tier0 Interface", id, err) } diff --git a/nsxt/resource_nsxt_policy_tier0_gateway_interface_test.go b/nsxt/resource_nsxt_policy_tier0_gateway_interface_test.go index 07d38c647..2a787b5fe 100644 --- a/nsxt/resource_nsxt_policy_tier0_gateway_interface_test.go +++ b/nsxt/resource_nsxt_policy_tier0_gateway_interface_test.go @@ -21,6 +21,8 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_service(t *testing.T) { updatedMtu := "1800" subnet := "1.1.12.2/24" updatedSubnet := "1.2.12.2/24" + ipAddress := "1.1.12.2" + updatedIPAddress := "1.2.12.2" testResourceName := "nsxt_policy_tier0_gateway_interface.test" resource.Test(t, resource.TestCase{ @@ -40,11 +42,14 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_service(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "type", "SERVICE"), resource.TestCheckResourceAttr(testResourceName, "subnets.#", "1"), resource.TestCheckResourceAttr(testResourceName, "subnets.0", subnet), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.0", ipAddress), resource.TestCheckResourceAttr(testResourceName, "tag.#", "1"), resource.TestCheckResourceAttrSet(testResourceName, "segment_path"), resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -58,11 +63,14 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_service(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "type", "SERVICE"), resource.TestCheckResourceAttr(testResourceName, "subnets.#", "1"), resource.TestCheckResourceAttr(testResourceName, "subnets.0", updatedSubnet), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.0", updatedIPAddress), resource.TestCheckResourceAttr(testResourceName, "tag.#", "1"), resource.TestCheckResourceAttrSet(testResourceName, "segment_path"), resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -74,11 +82,14 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_service(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "mtu", "0"), resource.TestCheckResourceAttr(testResourceName, "subnets.#", "1"), resource.TestCheckResourceAttr(testResourceName, "subnets.0", subnet), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.0", ipAddress), resource.TestCheckResourceAttr(testResourceName, "tag.#", "0"), resource.TestCheckResourceAttrSet(testResourceName, "segment_path"), resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -93,6 +104,8 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_external(t *testing.T) { updatedMtu := "1800" subnet := "1.1.12.2/24" updatedSubnet := "1.2.12.2/24" + ipAddress := "1.1.12.2" + updatedIPAddress := "1.2.12.2" testResourceName := "nsxt_policy_tier0_gateway_interface.test" resource.Test(t, resource.TestCase{ @@ -112,6 +125,8 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_external(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "type", "EXTERNAL"), resource.TestCheckResourceAttr(testResourceName, "subnets.#", "1"), resource.TestCheckResourceAttr(testResourceName, "subnets.0", subnet), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.0", ipAddress), resource.TestCheckResourceAttr(testResourceName, "enable_pim", "true"), resource.TestCheckResourceAttr(testResourceName, "urpf_mode", "STRICT"), resource.TestCheckResourceAttr(testResourceName, "tag.#", "1"), @@ -120,6 +135,7 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_external(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "edge_node_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -133,6 +149,8 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_external(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "type", "EXTERNAL"), resource.TestCheckResourceAttr(testResourceName, "subnets.#", "1"), resource.TestCheckResourceAttr(testResourceName, "subnets.0", updatedSubnet), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.0", updatedIPAddress), resource.TestCheckResourceAttr(testResourceName, "enable_pim", "true"), resource.TestCheckResourceAttr(testResourceName, "urpf_mode", "STRICT"), resource.TestCheckResourceAttr(testResourceName, "tag.#", "1"), @@ -141,6 +159,7 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_external(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "edge_node_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -155,6 +174,8 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_withID(t *testing.T) { // Update to 2 addresses ipv6Subnet := "4003::12/64" updatedSubnet := fmt.Sprintf("%s\",\"%s", subnet, ipv6Subnet) + ipAddress := "1.1.12.2" + ipv6Address := "4003::12" testResourceName := "nsxt_policy_tier0_gateway_interface.test" resource.Test(t, resource.TestCase{ @@ -173,12 +194,15 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_withID(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "description", "Acceptance Test"), resource.TestCheckResourceAttr(testResourceName, "subnets.#", "1"), resource.TestCheckResourceAttr(testResourceName, "subnets.0", subnet), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.#", "1"), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.0", ipAddress), resource.TestCheckResourceAttr(testResourceName, "ipv6_ndra_profile_path", "/infra/ipv6-ndra-profiles/default"), resource.TestCheckResourceAttr(testResourceName, "tag.#", "0"), resource.TestCheckResourceAttrSet(testResourceName, "segment_path"), resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -192,11 +216,15 @@ func TestAccResourceNsxtPolicyTier0GatewayInterface_withID(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "subnets.#", "2"), resource.TestCheckResourceAttr(testResourceName, "subnets.0", subnet), resource.TestCheckResourceAttr(testResourceName, "subnets.1", ipv6Subnet), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.#", "2"), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.0", ipAddress), + resource.TestCheckResourceAttr(testResourceName, "ip_addresses.1", ipv6Address), resource.TestCheckResourceAttr(testResourceName, "ipv6_ndra_profile_path", "/infra/ipv6-ndra-profiles/default"), resource.TestCheckResourceAttrSet(testResourceName, "segment_path"), resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, diff --git a/nsxt/resource_nsxt_policy_tier0_gateway_test.go b/nsxt/resource_nsxt_policy_tier0_gateway_test.go index c469bc3c8..13197e2cb 100644 --- a/nsxt/resource_nsxt_policy_tier0_gateway_test.go +++ b/nsxt/resource_nsxt_policy_tier0_gateway_test.go @@ -198,7 +198,7 @@ func TestAccResourceNsxtPolicyTier0Gateway_withEdgeCluster(t *testing.T) { resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.enabled", "true"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.inter_sr_ibgp", "true"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.local_as_num", "65000"), - resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.multipath_relax", "false"), + resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.multipath_relax", "true"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.route_aggregation.#", "0"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.graceful_restart_mode", "HELPER_ONLY"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.graceful_restart_timer", "180"), @@ -214,7 +214,7 @@ func TestAccResourceNsxtPolicyTier0Gateway_withEdgeCluster(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "edge_cluster_path"), resource.TestCheckResourceAttr(realizationResourceName, "state", "REALIZED"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.#", "1"), - resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.tag.#", "0"), + resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.tag.#", "1"), resource.TestCheckResourceAttrSet(testResourceName, "bgp_config.0.revision"), resource.TestCheckResourceAttrSet(testResourceName, "bgp_config.0.path"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.ecmp", "true"), @@ -279,7 +279,7 @@ func TestAccResourceNsxtPolicyTier0Gateway_createWithBGP(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "edge_cluster_path"), resource.TestCheckResourceAttr(realizationResourceName, "state", "REALIZED"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.#", "1"), - resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.tag.#", "0"), + resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.tag.#", "1"), resource.TestCheckResourceAttrSet(testResourceName, "bgp_config.0.revision"), resource.TestCheckResourceAttrSet(testResourceName, "bgp_config.0.path"), resource.TestCheckResourceAttr(testResourceName, "bgp_config.0.ecmp", "true"), @@ -462,6 +462,11 @@ resource "nsxt_policy_tier0_gateway" "test" { route_aggregation { prefix = "13.12.12.0/24" } + + tag { + scope = "bgp-scope" + tag = "bgp-tag" + } } tag { @@ -628,6 +633,7 @@ data "nsxt_policy_realization_info" "realization_info" { }`, name) } +// TODO: add vrf_config tags when bug 2557096 is resolved func testAccNsxtPolicyTier0WithVRFTemplate(name string, targets bool) string { var routeTargets string @@ -642,7 +648,7 @@ func testAccNsxtPolicyTier0WithVRFTemplate(name string, targets bool) string { } return testAccNsxtPolicyGatewayInterfaceDeps("11, 12") + fmt.Sprintf(` resource "nsxt_policy_tier0_gateway" "parent" { - nsx_id = "vrf_parent" + nsx_id = "vrf-parent" display_name = "parent" edge_cluster_path = data.nsxt_policy_edge_cluster.EC.path } @@ -692,7 +698,7 @@ data "nsxt_policy_edge_node" "EN" { } resource "nsxt_policy_tier0_gateway" "parent" { - nsx_id = "vrf_parent" + nsx_id = "vrf-parent" display_name = "parent" edge_cluster_path = data.nsxt_policy_edge_cluster.EC.path } diff --git a/nsxt/resource_nsxt_policy_tier1_gateway.go b/nsxt/resource_nsxt_policy_tier1_gateway.go index 5cfcce947..aba8e4663 100644 --- a/nsxt/resource_nsxt_policy_tier1_gateway.go +++ b/nsxt/resource_nsxt_policy_tier1_gateway.go @@ -321,9 +321,11 @@ func getAdvRulesFromSchema(d *schema.ResourceData) []model.RouteAdvertisementRul for _, rule := range rules { data := rule.(map[string]interface{}) prefix := data["prefix_operator"].(string) + name := data["name"].(string) + action := data["action"].(string) elem := model.RouteAdvertisementRule{ - Name: data["name"].(string), - Action: data["action"].(string), + Name: &name, + Action: &action, Subnets: interface2StringList(data["subnets"].(*schema.Set).List()), RouteAdvertisementTypes: interface2StringList(data["route_advertisement_types"].(*schema.Set).List()), PrefixOperator: &prefix, diff --git a/nsxt/resource_nsxt_policy_tier1_gateway_interface.go b/nsxt/resource_nsxt_policy_tier1_gateway_interface.go index 008e10955..f4c3b59c7 100644 --- a/nsxt/resource_nsxt_policy_tier1_gateway_interface.go +++ b/nsxt/resource_nsxt_policy_tier1_gateway_interface.go @@ -37,6 +37,11 @@ func resourceNsxtPolicyTier1GatewayInterface() *schema.Resource { "mtu": getMtuSchema(), "ipv6_ndra_profile_path": getIPv6NDRAPathSchema(), "urpf_mode": getGatewayInterfaceUrpfModeSchema(), + "locale_service_id": { + Type: schema.TypeString, + Description: "Locale Service ID for this interface", + Computed: true, + }, }, } } @@ -49,9 +54,10 @@ func getGatewayInterfaceSubnetList(d *schema.ResourceData) []model.InterfaceSubn var ipAddresses []string ipAddresses = append(ipAddresses, result[0]) prefix, _ := strconv.Atoi(result[1]) + prefix64 := int64(prefix) interfaceSubnet := model.InterfaceSubnet{ IpAddresses: ipAddresses, - PrefixLen: int64(prefix), + PrefixLen: &prefix64, } interfaceSubnetList = append(interfaceSubnetList, interfaceSubnet) } @@ -102,7 +108,7 @@ func resourceNsxtPolicyTier1GatewayInterfaceCreate(d *schema.ResourceData, m int Description: &description, Tags: tags, Subnets: interfaceSubnetList, - SegmentPath: segmentPath, + SegmentPath: &segmentPath, Ipv6ProfilePaths: ipv6ProfilePaths, } @@ -117,13 +123,14 @@ func resourceNsxtPolicyTier1GatewayInterfaceCreate(d *schema.ResourceData, m int // Create the resource using PATCH log.Printf("[INFO] Creating tier1 interface with ID %s", id) - err = client.Patch(tier1ID, localeServiceID, id, obj, nil) + err = client.Patch(tier1ID, localeServiceID, id, obj) if err != nil { return handleCreateError("Tier1 Interface", id, err) } d.SetId(id) d.Set("nsx_id", id) + d.Set("locale_service_id", localeServiceID) return resourceNsxtPolicyTier1GatewayInterfaceRead(d, m) } @@ -159,7 +166,7 @@ func resourceNsxtPolicyTier1GatewayInterfaceRead(d *schema.ResourceData, m inter if obj.Subnets != nil { var subnetList []string for _, subnet := range obj.Subnets { - cidr := fmt.Sprintf("%s/%d", subnet.IpAddresses[0], subnet.PrefixLen) + cidr := fmt.Sprintf("%s/%d", subnet.IpAddresses[0], *subnet.PrefixLen) subnetList = append(subnetList, cidr) } d.Set("subnets", subnetList) @@ -181,9 +188,10 @@ func resourceNsxtPolicyTier1GatewayInterfaceUpdate(d *schema.ResourceData, m int id := d.Id() tier1Path := d.Get("gateway_path").(string) + localeServiceID := d.Get("locale_service_id").(string) tier1ID := getPolicyIDFromPath(tier1Path) - if id == "" || tier1ID == "" { - return fmt.Errorf("Error obtaining Tier1 id") + if id == "" || tier1ID == "" || localeServiceID == "" { + return fmt.Errorf("Error obtaining Tier1 id or Locale Service id") } displayName := d.Get("display_name").(string) @@ -202,7 +210,7 @@ func resourceNsxtPolicyTier1GatewayInterfaceUpdate(d *schema.ResourceData, m int Description: &description, Tags: tags, Subnets: interfaceSubnetList, - SegmentPath: segmentPath, + SegmentPath: &segmentPath, Ipv6ProfilePaths: ipv6ProfilePaths, Revision: &revision, } @@ -216,7 +224,7 @@ func resourceNsxtPolicyTier1GatewayInterfaceUpdate(d *schema.ResourceData, m int obj.UrpfMode = &urpfMode } - _, err := client.Update(tier1ID, defaultPolicyLocaleServiceID, id, obj, nil) + _, err := client.Update(tier1ID, localeServiceID, id, obj) if err != nil { return handleUpdateError("Tier1 Interface", id, err) } @@ -231,11 +239,12 @@ func resourceNsxtPolicyTier1GatewayInterfaceDelete(d *schema.ResourceData, m int id := d.Id() tier1Path := d.Get("gateway_path").(string) tier1ID := getPolicyIDFromPath(tier1Path) - if id == "" || tier1ID == "" { - return fmt.Errorf("Error obtaining Tier1 Interface id") + localeServiceID := d.Get("locale_service_id").(string) + if id == "" || tier1ID == "" || localeServiceID == "" { + return fmt.Errorf("Error obtaining Tier1 id or Locale Service id") } - err := client.Delete(tier1ID, defaultPolicyLocaleServiceID, id, nil) + err := client.Delete(tier1ID, localeServiceID, id) if err != nil { return handleDeleteError("Tier1 Interface", id, err) } diff --git a/nsxt/resource_nsxt_policy_tier1_gateway_interface_test.go b/nsxt/resource_nsxt_policy_tier1_gateway_interface_test.go index 17c2a3731..848322d2e 100644 --- a/nsxt/resource_nsxt_policy_tier1_gateway_interface_test.go +++ b/nsxt/resource_nsxt_policy_tier1_gateway_interface_test.go @@ -44,6 +44,7 @@ func TestAccResourceNsxtPolicyTier1GatewayInterface_basic(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -61,6 +62,7 @@ func TestAccResourceNsxtPolicyTier1GatewayInterface_basic(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -77,6 +79,7 @@ func TestAccResourceNsxtPolicyTier1GatewayInterface_basic(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -116,6 +119,7 @@ func TestAccResourceNsxtPolicyTier1GatewayInterface_withID(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, @@ -135,6 +139,7 @@ func TestAccResourceNsxtPolicyTier1GatewayInterface_withID(t *testing.T) { resource.TestCheckResourceAttrSet(testResourceName, "gateway_path"), resource.TestCheckResourceAttrSet(testResourceName, "path"), resource.TestCheckResourceAttrSet(testResourceName, "nsx_id"), + resource.TestCheckResourceAttrSet(testResourceName, "locale_service_id"), resource.TestCheckResourceAttrSet(testResourceName, "revision"), ), }, diff --git a/nsxt/resource_nsxt_policy_vm_tags.go b/nsxt/resource_nsxt_policy_vm_tags.go index 7d0c8d584..a4772e605 100644 --- a/nsxt/resource_nsxt_policy_vm_tags.go +++ b/nsxt/resource_nsxt_policy_vm_tags.go @@ -40,7 +40,7 @@ func resourceNsxtPolicyVMTags() *schema.Resource { } } -func listAllPolicyVirtualMachines(connector *client.RestConnector) ([]model.VirtualMachine, error) { +func listAllPolicyVirtualMachines(connector *client.RestConnector, m interface{}) ([]model.VirtualMachine, error) { client := realized_state.NewDefaultVirtualMachinesClient(connector) var results []model.VirtualMachine boolFalse := false @@ -49,7 +49,7 @@ func listAllPolicyVirtualMachines(connector *client.RestConnector) ([]model.Virt for { // NOTE: the search API does not return resource_type of VirtualMachine - enforcementPointPath := getPolicyEnforcementPointPath() + enforcementPointPath := getPolicyEnforcementPointPath(m) vms, err := client.List(cursor, &enforcementPointPath, &boolFalse, nil, nil, &boolFalse, nil) if err != nil { return results, err @@ -66,10 +66,10 @@ func listAllPolicyVirtualMachines(connector *client.RestConnector) ([]model.Virt } } -func findNsxtPolicyVMByNamePrefix(connector *client.RestConnector, namePrefix string) ([]model.VirtualMachine, []model.VirtualMachine, error) { +func findNsxtPolicyVMByNamePrefix(connector *client.RestConnector, namePrefix string, m interface{}) ([]model.VirtualMachine, []model.VirtualMachine, error) { var perfectMatch, prefixMatch []model.VirtualMachine - allVMs, err := listAllPolicyVirtualMachines(connector) + allVMs, err := listAllPolicyVirtualMachines(connector, m) if err != nil { log.Printf("[INFO] Error reading Virtual Machines when looking for name: %s", namePrefix) return perfectMatch, prefixMatch, err @@ -85,17 +85,17 @@ func findNsxtPolicyVMByNamePrefix(connector *client.RestConnector, namePrefix st return perfectMatch, prefixMatch, nil } -func findNsxtPolicyVMByID(connector *client.RestConnector, vmID string) (model.VirtualMachine, error) { +func findNsxtPolicyVMByID(connector *client.RestConnector, vmID string, m interface{}) (model.VirtualMachine, error) { var virtualMachineStruct model.VirtualMachine - allVMs, err := listAllPolicyVirtualMachines(connector) + allVMs, err := listAllPolicyVirtualMachines(connector, m) if err != nil { log.Printf("[INFO] Error reading Virtual Machines when looking for ID: %s", vmID) return virtualMachineStruct, err } for _, vmResult := range allVMs { - if vmResult.ExternalId == vmID { + if (vmResult.ExternalId != nil) && *vmResult.ExternalId == vmID { return vmResult, nil } computeIDMap := collectSeparatedStringListToMap(vmResult.ComputeIds, ":") @@ -108,14 +108,14 @@ func findNsxtPolicyVMByID(connector *client.RestConnector, vmID string) (model.V return virtualMachineStruct, fmt.Errorf("Could not find Virtual Machine with ID: %s", vmID) } -func updateNsxtPolicyVMTags(connector *client.RestConnector, externalID string, tags []model.Tag) error { +func updateNsxtPolicyVMTags(connector *client.RestConnector, externalID string, tags []model.Tag, m interface{}) error { client := updateClient.NewDefaultVirtualMachinesClient(connector) tagUpdate := model.VirtualMachineTagsUpdate{ Tags: tags, - VirtualMachineId: externalID, + VirtualMachineId: &externalID, } - return client.Updatetags(policyEnforcementPoint, tagUpdate) + return client.Updatetags(getPolicyEnforcementPoint(m), tagUpdate) } func resourceNsxtPolicyVMTagsRead(d *schema.ResourceData, m interface{}) error { @@ -126,7 +126,7 @@ func resourceNsxtPolicyVMTagsRead(d *schema.ResourceData, m interface{}) error { return fmt.Errorf("Error obtaining Virtual Machine ID") } - vm, err := findNsxtPolicyVMByID(connector, vmID) + vm, err := findNsxtPolicyVMByID(connector, vmID, m) if err != nil { return fmt.Errorf("Error during Virtual Machine retrieval: %v", err) } @@ -145,7 +145,7 @@ func resourceNsxtPolicyVMTagsCreate(d *schema.ResourceData, m interface{}) error connector := getPolicyConnector(m) instanceID := d.Get("instance_id").(string) - vm, err := findNsxtPolicyVMByID(connector, instanceID) + vm, err := findNsxtPolicyVMByID(connector, instanceID, m) if err != nil { return fmt.Errorf("Error finding Virtual Machine: %v", err) } @@ -154,12 +154,12 @@ func resourceNsxtPolicyVMTagsCreate(d *schema.ResourceData, m interface{}) error if tags == nil { tags = make([]model.Tag, 0) } - err = updateNsxtPolicyVMTags(connector, vm.ExternalId, tags) + err = updateNsxtPolicyVMTags(connector, *vm.ExternalId, tags, m) if err != nil { - return handleCreateError("Virtual Machine Tag", vm.ExternalId, err) + return handleCreateError("Virtual Machine Tag", *vm.ExternalId, err) } - d.SetId(vm.ExternalId) + d.SetId(*vm.ExternalId) return resourceNsxtPolicyVMTagsRead(d, m) } @@ -172,16 +172,16 @@ func resourceNsxtPolicyVMTagsDelete(d *schema.ResourceData, m interface{}) error connector := getPolicyConnector(m) instanceID := d.Get("instance_id").(string) - vm, err := findNsxtPolicyVMByID(connector, instanceID) + vm, err := findNsxtPolicyVMByID(connector, instanceID, m) if err != nil { return fmt.Errorf("Error finding Virtual Machine: %v", err) } tags := make([]model.Tag, 0) - err = updateNsxtPolicyVMTags(connector, vm.ExternalId, tags) + err = updateNsxtPolicyVMTags(connector, *vm.ExternalId, tags, m) if err != nil { - return handleDeleteError("Virtual Machine Tag", vm.ExternalId, err) + return handleDeleteError("Virtual Machine Tag", *vm.ExternalId, err) } return err diff --git a/nsxt/resource_nsxt_policy_vm_tags_test.go b/nsxt/resource_nsxt_policy_vm_tags_test.go index 01f3b2c2c..59df3873e 100644 --- a/nsxt/resource_nsxt_policy_vm_tags_test.go +++ b/nsxt/resource_nsxt_policy_vm_tags_test.go @@ -85,7 +85,7 @@ func testAccNSXPolicyVMTagsCheckExists(resourceName string) resource.TestCheckFu return fmt.Errorf("NSX Policy VM Tags resource ID not set in resources ") } - _, err := findNsxtPolicyVMByID(connector, resourceID) + _, err := findNsxtPolicyVMByID(connector, resourceID, testAccProvider.Meta()) if err != nil { return fmt.Errorf("Failed to find VM %s", resourceID) } @@ -103,7 +103,7 @@ func testAccNSXPolicyVMTagsCheckDestroy(state *terraform.State) error { } resourceID := rs.Primary.Attributes["id"] - vm, err := findNsxtPolicyVMByID(connector, resourceID) + vm, err := findNsxtPolicyVMByID(connector, resourceID, testAccProvider.Meta()) if err != nil { return fmt.Errorf("Failed to find VM %s", resourceID) } diff --git a/nsxt/resource_nsxt_vlan_logical_switch.go b/nsxt/resource_nsxt_vlan_logical_switch.go index 636229a9b..2b3020153 100644 --- a/nsxt/resource_nsxt_vlan_logical_switch.go +++ b/nsxt/resource_nsxt_vlan_logical_switch.go @@ -104,7 +104,8 @@ func resourceNsxtVlanLogicalSwitchCreate(d *schema.ResourceData, m interface{}) return fmt.Errorf("Unexpected status returned during LogicalSwitch create: %v", resp.StatusCode) } - err = resourceNsxtLogicalSwitchVerifyRealization(d, nsxClient, &logicalSwitch) + toleratePartialSuccess := getCommonProviderConfig(m.(nsxtClients)).ToleratePartialSuccess + err = resourceNsxtLogicalSwitchVerifyRealization(d, nsxClient, &logicalSwitch, toleratePartialSuccess) if err != nil { return err diff --git a/nsxt/segment_common.go b/nsxt/segment_common.go index 0f0a2a3ac..e7035e081 100644 --- a/nsxt/segment_common.go +++ b/nsxt/segment_common.go @@ -2,14 +2,17 @@ package nsxt import ( "fmt" + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" "github.com/vmware/vsphere-automation-sdk-go/runtime/data" "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra" + "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments" "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" "log" + "time" ) var connectivityValues = []string{ @@ -192,6 +195,11 @@ func getPolicySegmentAdvancedConfigurationSchema() *schema.Resource { Optional: true, Default: false, }, + "uplink_teaming_policy": { + Type: schema.TypeString, + Description: "The name of the switching uplink teaming policy for the bridge endpoint", + Optional: true, + }, }, } } @@ -230,11 +238,10 @@ func getPolicyCommonSegmentSchema() map[string]*schema.Schema { MaxItems: 1, }, "overlay_id": { - Type: schema.TypeInt, - Description: "Overlay connectivity ID for this Segment", - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(0, 2147483647), + Type: schema.TypeInt, + Description: "Overlay connectivity ID for this Segment", + Optional: true, + Computed: true, }, "subnet": { Type: schema.TypeList, @@ -266,9 +273,11 @@ func getPolicyDhcpOptions121(opts []interface{}) model.DhcpOption121 { var routes []model.ClasslessStaticRoute for _, opt121 := range opts { data := opt121.(map[string]interface{}) + network := data["network"].(string) + nextHop := data["next_hop"].(string) elem := model.ClasslessStaticRoute{ - Network: data["network"].(string), - NextHop: data["next_hop"].(string), + Network: &network, + NextHop: &nextHop, } routes = append(routes, elem) } @@ -295,8 +304,9 @@ func getPolicyDhcpGenericOptions(opts []interface{}) []model.GenericDhcpOption { var options []model.GenericDhcpOption for _, opt := range opts { data := opt.(map[string]interface{}) + code := int64(data["code"].(int)) elem := model.GenericDhcpOption{ - Code: int64(data["code"].(int)), + Code: &code, Values: interface2StringList(data["values"].([]interface{})), } options = append(options, elem) @@ -526,7 +536,7 @@ func policySegmentResourceToStruct(d *schema.ResourceData, isVlan bool) (model.S } else { // overlay specific fields connectivityPath := d.Get("connectivity_path").(string) - overlayID, exists := d.GetOkExists("overlay_id") + overlayID, exists := d.GetOk("overlay_id") if exists { overlayID64 := int64(overlayID.(int)) obj.OverlayId = &overlayID64 @@ -577,10 +587,20 @@ func policySegmentResourceToStruct(d *schema.ResourceData, isVlan bool) (model.S } advConfigStruct := model.SegmentAdvancedConfig{ AddressPoolPaths: poolPaths, - Connectivity: &connectivity, Hybrid: &hybrid, LocalEgress: &egress, } + + if connectivity != "" { + advConfigStruct.Connectivity = &connectivity + } + + if nsxVersionHigherOrEqual("3.0.0") { + teamingPolicy := advConfigMap["uplink_teaming_policy"].(string) + if teamingPolicy != "" { + advConfigStruct.UplinkTeamingPolicyName = &teamingPolicy + } + } obj.AdvancedConfig = &advConfigStruct } @@ -659,14 +679,23 @@ func nsxtPolicySegmentRead(d *schema.ResourceData, m interface{}, isVlan bool) e advConfig["connectivity"] = obj.AdvancedConfig.Connectivity advConfig["hybrid"] = obj.AdvancedConfig.Hybrid advConfig["local_egress"] = obj.AdvancedConfig.LocalEgress - d.Set("advanced_config", advConfig) + if obj.AdvancedConfig.UplinkTeamingPolicyName != nil { + advConfig["uplink_teaming_policy"] = *obj.AdvancedConfig.UplinkTeamingPolicyName + } + // This is a list with 1 element + var advConfigList []map[string]interface{} + advConfigList = append(advConfigList, advConfig) + d.Set("advanced_config", advConfigList) } if obj.L2Extension != nil { l2Ext := make(map[string]interface{}) l2Ext["l2vpn_paths"] = obj.L2Extension.L2vpnPaths l2Ext["tunnel_id"] = obj.L2Extension.TunnelId - d.Set("l2_extension", l2Ext) + // This is a list with 1 element + var l2ExtList []map[string]interface{} + l2ExtList = append(l2ExtList, l2Ext) + d.Set("l2_extension", l2ExtList) } var subnetSegments []interface{} @@ -740,8 +769,40 @@ func nsxtPolicySegmentDelete(d *schema.ResourceData, m interface{}) error { connector := getPolicyConnector(m) client := infra.NewDefaultSegmentsClient(connector) + portsClient := segments.NewDefaultPortsClient(connector) + + // During buld destroy, VMs might be destroyed before segments, but + // VIF release is not yet propagated to NSX. NSX will reply with + // InvalidRequest on attempted delete if ports are present on the + // segment. The code below waits till possible ports are deleted. + pendingStates := []string{"pending"} + targetStates := []string{"ok", "error"} + stateConf := &resource.StateChangeConf{ + Pending: pendingStates, + Target: targetStates, + Refresh: func() (interface{}, string, error) { + ports, err := portsClient.List(id, nil, nil, nil, nil, nil, nil) + if err != nil { + return ports, "error", logAPIError("Error listing segment ports", err) + } + + log.Printf("[DEBUG] Current number of ports on segment %s is %d", id, len(ports.Results)) + + if len(ports.Results) > 0 { + return ports, "pending", nil + } + return ports, "ok", nil - err := client.Delete(id) + }, + Timeout: d.Timeout(schema.TimeoutDelete), + MinTimeout: 1 * time.Second, + Delay: 1 * time.Second, + } + _, err := stateConf.WaitForState() + if err != nil { + return fmt.Errorf("Failed to get port information for segment %s: %v", id, err) + } + err = client.Delete(id) if err != nil { return handleDeleteError("Segment", id, err) } diff --git a/nsxt/utils.go b/nsxt/utils.go index de9ad4838..a5e7c96d1 100644 --- a/nsxt/utils.go +++ b/nsxt/utils.go @@ -507,19 +507,21 @@ func makeResourceReference(resourceType string, resourceID string) *common.Resou } } -func getNSXVersion(nsxClient *api.APIClient) string { +func getNSXVersion(nsxClient *api.APIClient) (string, error) { nodeProperties, resp, err := nsxClient.NsxComponentAdministrationApi.ReadNodeProperties(nsxClient.Context) - if resp.StatusCode == http.StatusNotFound || err != nil { - log.Printf("[DEBUG] Failed to retrieve NSX version") - return "1.0.0" + if err != nil || resp.StatusCode == http.StatusNotFound { + return "", fmt.Errorf("Failed to retrieve NSX version (%s). Please check connectivity and authentication settings of the provider", err) + } log.Printf("[DEBUG] NSX version is %s", nodeProperties.NodeVersion) - return nodeProperties.NodeVersion + return nodeProperties.NodeVersion, nil } -func initNSXVersion(nsxClient *api.APIClient) { - nsxVersion = getNSXVersion(nsxClient) +func initNSXVersion(nsxClient *api.APIClient) error { + var err error + nsxVersion, err = getNSXVersion(nsxClient) + return err } func nsxVersionLower(ver string) bool { diff --git a/nsxt/validators.go b/nsxt/validators.go index 7e8b94f73..31494340b 100644 --- a/nsxt/validators.go +++ b/nsxt/validators.go @@ -406,7 +406,7 @@ func validateVLANId(i interface{}, k string) (s []string, es []error) { return } } - if vlan < 1 || vlan > 4095 { + if vlan < 0 || vlan > 4095 { es = append(es, fmt.Errorf("invalid VLAN ID %d", vlan)) return } diff --git a/vendor/github.com/gorilla/mux/AUTHORS b/vendor/github.com/gorilla/mux/AUTHORS deleted file mode 100644 index b722392ee..000000000 --- a/vendor/github.com/gorilla/mux/AUTHORS +++ /dev/null @@ -1,8 +0,0 @@ -# This is the official list of gorilla/mux authors for copyright purposes. -# -# Please keep the list sorted. - -Google LLC (https://opensource.google.com/) -Kamil Kisielk -Matt Silverlock -Rodrigo Moraes (https://github.com/moraes) diff --git a/vendor/github.com/gorilla/mux/LICENSE b/vendor/github.com/gorilla/mux/LICENSE deleted file mode 100644 index 6903df638..000000000 --- a/vendor/github.com/gorilla/mux/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2012-2018 The Gorilla Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/gorilla/mux/README.md b/vendor/github.com/gorilla/mux/README.md deleted file mode 100644 index 92e422eed..000000000 --- a/vendor/github.com/gorilla/mux/README.md +++ /dev/null @@ -1,718 +0,0 @@ -# gorilla/mux - -[![GoDoc](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux) -[![Build Status](https://travis-ci.org/gorilla/mux.svg?branch=master)](https://travis-ci.org/gorilla/mux) -[![CircleCI](https://circleci.com/gh/gorilla/mux.svg?style=svg)](https://circleci.com/gh/gorilla/mux) -[![Sourcegraph](https://sourcegraph.com/github.com/gorilla/mux/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/mux?badge) - -![Gorilla Logo](http://www.gorillatoolkit.org/static/images/gorilla-icon-64.png) - -https://www.gorillatoolkit.org/pkg/mux - -Package `gorilla/mux` implements a request router and dispatcher for matching incoming requests to -their respective handler. - -The name mux stands for "HTTP request multiplexer". Like the standard `http.ServeMux`, `mux.Router` matches incoming requests against a list of registered routes and calls a handler for the route that matches the URL or other conditions. The main features are: - -* It implements the `http.Handler` interface so it is compatible with the standard `http.ServeMux`. -* Requests can be matched based on URL host, path, path prefix, schemes, header and query values, HTTP methods or using custom matchers. -* URL hosts, paths and query values can have variables with an optional regular expression. -* Registered URLs can be built, or "reversed", which helps maintaining references to resources. -* Routes can be used as subrouters: nested routes are only tested if the parent route matches. This is useful to define groups of routes that share common conditions like a host, a path prefix or other repeated attributes. As a bonus, this optimizes request matching. - ---- - -* [Install](#install) -* [Examples](#examples) -* [Matching Routes](#matching-routes) -* [Static Files](#static-files) -* [Registered URLs](#registered-urls) -* [Walking Routes](#walking-routes) -* [Graceful Shutdown](#graceful-shutdown) -* [Middleware](#middleware) -* [Handling CORS Requests](#handling-cors-requests) -* [Testing Handlers](#testing-handlers) -* [Full Example](#full-example) - ---- - -## Install - -With a [correctly configured](https://golang.org/doc/install#testing) Go toolchain: - -```sh -go get -u github.com/gorilla/mux -``` - -## Examples - -Let's start registering a couple of URL paths and handlers: - -```go -func main() { - r := mux.NewRouter() - r.HandleFunc("/", HomeHandler) - r.HandleFunc("/products", ProductsHandler) - r.HandleFunc("/articles", ArticlesHandler) - http.Handle("/", r) -} -``` - -Here we register three routes mapping URL paths to handlers. This is equivalent to how `http.HandleFunc()` works: if an incoming request URL matches one of the paths, the corresponding handler is called passing (`http.ResponseWriter`, `*http.Request`) as parameters. - -Paths can have variables. They are defined using the format `{name}` or `{name:pattern}`. If a regular expression pattern is not defined, the matched variable will be anything until the next slash. For example: - -```go -r := mux.NewRouter() -r.HandleFunc("/products/{key}", ProductHandler) -r.HandleFunc("/articles/{category}/", ArticlesCategoryHandler) -r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler) -``` - -The names are used to create a map of route variables which can be retrieved calling `mux.Vars()`: - -```go -func ArticlesCategoryHandler(w http.ResponseWriter, r *http.Request) { - vars := mux.Vars(r) - w.WriteHeader(http.StatusOK) - fmt.Fprintf(w, "Category: %v\n", vars["category"]) -} -``` - -And this is all you need to know about the basic usage. More advanced options are explained below. - -### Matching Routes - -Routes can also be restricted to a domain or subdomain. Just define a host pattern to be matched. They can also have variables: - -```go -r := mux.NewRouter() -// Only matches if domain is "www.example.com". -r.Host("www.example.com") -// Matches a dynamic subdomain. -r.Host("{subdomain:[a-z]+}.example.com") -``` - -There are several other matchers that can be added. To match path prefixes: - -```go -r.PathPrefix("/products/") -``` - -...or HTTP methods: - -```go -r.Methods("GET", "POST") -``` - -...or URL schemes: - -```go -r.Schemes("https") -``` - -...or header values: - -```go -r.Headers("X-Requested-With", "XMLHttpRequest") -``` - -...or query values: - -```go -r.Queries("key", "value") -``` - -...or to use a custom matcher function: - -```go -r.MatcherFunc(func(r *http.Request, rm *RouteMatch) bool { - return r.ProtoMajor == 0 -}) -``` - -...and finally, it is possible to combine several matchers in a single route: - -```go -r.HandleFunc("/products", ProductsHandler). - Host("www.example.com"). - Methods("GET"). - Schemes("http") -``` - -Routes are tested in the order they were added to the router. If two routes match, the first one wins: - -```go -r := mux.NewRouter() -r.HandleFunc("/specific", specificHandler) -r.PathPrefix("/").Handler(catchAllHandler) -``` - -Setting the same matching conditions again and again can be boring, so we have a way to group several routes that share the same requirements. We call it "subrouting". - -For example, let's say we have several URLs that should only match when the host is `www.example.com`. Create a route for that host and get a "subrouter" from it: - -```go -r := mux.NewRouter() -s := r.Host("www.example.com").Subrouter() -``` - -Then register routes in the subrouter: - -```go -s.HandleFunc("/products/", ProductsHandler) -s.HandleFunc("/products/{key}", ProductHandler) -s.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler) -``` - -The three URL paths we registered above will only be tested if the domain is `www.example.com`, because the subrouter is tested first. This is not only convenient, but also optimizes request matching. You can create subrouters combining any attribute matchers accepted by a route. - -Subrouters can be used to create domain or path "namespaces": you define subrouters in a central place and then parts of the app can register its paths relatively to a given subrouter. - -There's one more thing about subroutes. When a subrouter has a path prefix, the inner routes use it as base for their paths: - -```go -r := mux.NewRouter() -s := r.PathPrefix("/products").Subrouter() -// "/products/" -s.HandleFunc("/", ProductsHandler) -// "/products/{key}/" -s.HandleFunc("/{key}/", ProductHandler) -// "/products/{key}/details" -s.HandleFunc("/{key}/details", ProductDetailsHandler) -``` - - -### Static Files - -Note that the path provided to `PathPrefix()` represents a "wildcard": calling -`PathPrefix("/static/").Handler(...)` means that the handler will be passed any -request that matches "/static/\*". This makes it easy to serve static files with mux: - -```go -func main() { - var dir string - - flag.StringVar(&dir, "dir", ".", "the directory to serve files from. Defaults to the current dir") - flag.Parse() - r := mux.NewRouter() - - // This will serve files under http://localhost:8000/static/ - r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir(dir)))) - - srv := &http.Server{ - Handler: r, - Addr: "127.0.0.1:8000", - // Good practice: enforce timeouts for servers you create! - WriteTimeout: 15 * time.Second, - ReadTimeout: 15 * time.Second, - } - - log.Fatal(srv.ListenAndServe()) -} -``` - -### Registered URLs - -Now let's see how to build registered URLs. - -Routes can be named. All routes that define a name can have their URLs built, or "reversed". We define a name calling `Name()` on a route. For example: - -```go -r := mux.NewRouter() -r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler). - Name("article") -``` - -To build a URL, get the route and call the `URL()` method, passing a sequence of key/value pairs for the route variables. For the previous route, we would do: - -```go -url, err := r.Get("article").URL("category", "technology", "id", "42") -``` - -...and the result will be a `url.URL` with the following path: - -``` -"/articles/technology/42" -``` - -This also works for host and query value variables: - -```go -r := mux.NewRouter() -r.Host("{subdomain}.example.com"). - Path("/articles/{category}/{id:[0-9]+}"). - Queries("filter", "{filter}"). - HandlerFunc(ArticleHandler). - Name("article") - -// url.String() will be "http://news.example.com/articles/technology/42?filter=gorilla" -url, err := r.Get("article").URL("subdomain", "news", - "category", "technology", - "id", "42", - "filter", "gorilla") -``` - -All variables defined in the route are required, and their values must conform to the corresponding patterns. These requirements guarantee that a generated URL will always match a registered route -- the only exception is for explicitly defined "build-only" routes which never match. - -Regex support also exists for matching Headers within a route. For example, we could do: - -```go -r.HeadersRegexp("Content-Type", "application/(text|json)") -``` - -...and the route will match both requests with a Content-Type of `application/json` as well as `application/text` - -There's also a way to build only the URL host or path for a route: use the methods `URLHost()` or `URLPath()` instead. For the previous route, we would do: - -```go -// "http://news.example.com/" -host, err := r.Get("article").URLHost("subdomain", "news") - -// "/articles/technology/42" -path, err := r.Get("article").URLPath("category", "technology", "id", "42") -``` - -And if you use subrouters, host and path defined separately can be built as well: - -```go -r := mux.NewRouter() -s := r.Host("{subdomain}.example.com").Subrouter() -s.Path("/articles/{category}/{id:[0-9]+}"). - HandlerFunc(ArticleHandler). - Name("article") - -// "http://news.example.com/articles/technology/42" -url, err := r.Get("article").URL("subdomain", "news", - "category", "technology", - "id", "42") -``` - -### Walking Routes - -The `Walk` function on `mux.Router` can be used to visit all of the routes that are registered on a router. For example, -the following prints all of the registered routes: - -```go -package main - -import ( - "fmt" - "net/http" - "strings" - - "github.com/gorilla/mux" -) - -func handler(w http.ResponseWriter, r *http.Request) { - return -} - -func main() { - r := mux.NewRouter() - r.HandleFunc("/", handler) - r.HandleFunc("/products", handler).Methods("POST") - r.HandleFunc("/articles", handler).Methods("GET") - r.HandleFunc("/articles/{id}", handler).Methods("GET", "PUT") - r.HandleFunc("/authors", handler).Queries("surname", "{surname}") - err := r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error { - pathTemplate, err := route.GetPathTemplate() - if err == nil { - fmt.Println("ROUTE:", pathTemplate) - } - pathRegexp, err := route.GetPathRegexp() - if err == nil { - fmt.Println("Path regexp:", pathRegexp) - } - queriesTemplates, err := route.GetQueriesTemplates() - if err == nil { - fmt.Println("Queries templates:", strings.Join(queriesTemplates, ",")) - } - queriesRegexps, err := route.GetQueriesRegexp() - if err == nil { - fmt.Println("Queries regexps:", strings.Join(queriesRegexps, ",")) - } - methods, err := route.GetMethods() - if err == nil { - fmt.Println("Methods:", strings.Join(methods, ",")) - } - fmt.Println() - return nil - }) - - if err != nil { - fmt.Println(err) - } - - http.Handle("/", r) -} -``` - -### Graceful Shutdown - -Go 1.8 introduced the ability to [gracefully shutdown](https://golang.org/doc/go1.8#http_shutdown) a `*http.Server`. Here's how to do that alongside `mux`: - -```go -package main - -import ( - "context" - "flag" - "log" - "net/http" - "os" - "os/signal" - "time" - - "github.com/gorilla/mux" -) - -func main() { - var wait time.Duration - flag.DurationVar(&wait, "graceful-timeout", time.Second * 15, "the duration for which the server gracefully wait for existing connections to finish - e.g. 15s or 1m") - flag.Parse() - - r := mux.NewRouter() - // Add your routes as needed - - srv := &http.Server{ - Addr: "0.0.0.0:8080", - // Good practice to set timeouts to avoid Slowloris attacks. - WriteTimeout: time.Second * 15, - ReadTimeout: time.Second * 15, - IdleTimeout: time.Second * 60, - Handler: r, // Pass our instance of gorilla/mux in. - } - - // Run our server in a goroutine so that it doesn't block. - go func() { - if err := srv.ListenAndServe(); err != nil { - log.Println(err) - } - }() - - c := make(chan os.Signal, 1) - // We'll accept graceful shutdowns when quit via SIGINT (Ctrl+C) - // SIGKILL, SIGQUIT or SIGTERM (Ctrl+/) will not be caught. - signal.Notify(c, os.Interrupt) - - // Block until we receive our signal. - <-c - - // Create a deadline to wait for. - ctx, cancel := context.WithTimeout(context.Background(), wait) - defer cancel() - // Doesn't block if no connections, but will otherwise wait - // until the timeout deadline. - srv.Shutdown(ctx) - // Optionally, you could run srv.Shutdown in a goroutine and block on - // <-ctx.Done() if your application should wait for other services - // to finalize based on context cancellation. - log.Println("shutting down") - os.Exit(0) -} -``` - -### Middleware - -Mux supports the addition of middlewares to a [Router](https://godoc.org/github.com/gorilla/mux#Router), which are executed in the order they are added if a match is found, including its subrouters. -Middlewares are (typically) small pieces of code which take one request, do something with it, and pass it down to another middleware or the final handler. Some common use cases for middleware are request logging, header manipulation, or `ResponseWriter` hijacking. - -Mux middlewares are defined using the de facto standard type: - -```go -type MiddlewareFunc func(http.Handler) http.Handler -``` - -Typically, the returned handler is a closure which does something with the http.ResponseWriter and http.Request passed to it, and then calls the handler passed as parameter to the MiddlewareFunc. This takes advantage of closures being able access variables from the context where they are created, while retaining the signature enforced by the receivers. - -A very basic middleware which logs the URI of the request being handled could be written as: - -```go -func loggingMiddleware(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - // Do stuff here - log.Println(r.RequestURI) - // Call the next handler, which can be another middleware in the chain, or the final handler. - next.ServeHTTP(w, r) - }) -} -``` - -Middlewares can be added to a router using `Router.Use()`: - -```go -r := mux.NewRouter() -r.HandleFunc("/", handler) -r.Use(loggingMiddleware) -``` - -A more complex authentication middleware, which maps session token to users, could be written as: - -```go -// Define our struct -type authenticationMiddleware struct { - tokenUsers map[string]string -} - -// Initialize it somewhere -func (amw *authenticationMiddleware) Populate() { - amw.tokenUsers["00000000"] = "user0" - amw.tokenUsers["aaaaaaaa"] = "userA" - amw.tokenUsers["05f717e5"] = "randomUser" - amw.tokenUsers["deadbeef"] = "user0" -} - -// Middleware function, which will be called for each request -func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - token := r.Header.Get("X-Session-Token") - - if user, found := amw.tokenUsers[token]; found { - // We found the token in our map - log.Printf("Authenticated user %s\n", user) - // Pass down the request to the next middleware (or final handler) - next.ServeHTTP(w, r) - } else { - // Write an error and stop the handler chain - http.Error(w, "Forbidden", http.StatusForbidden) - } - }) -} -``` - -```go -r := mux.NewRouter() -r.HandleFunc("/", handler) - -amw := authenticationMiddleware{} -amw.Populate() - -r.Use(amw.Middleware) -``` - -Note: The handler chain will be stopped if your middleware doesn't call `next.ServeHTTP()` with the corresponding parameters. This can be used to abort a request if the middleware writer wants to. Middlewares _should_ write to `ResponseWriter` if they _are_ going to terminate the request, and they _should not_ write to `ResponseWriter` if they _are not_ going to terminate it. - -### Handling CORS Requests - -[CORSMethodMiddleware](https://godoc.org/github.com/gorilla/mux#CORSMethodMiddleware) intends to make it easier to strictly set the `Access-Control-Allow-Methods` response header. - -* You will still need to use your own CORS handler to set the other CORS headers such as `Access-Control-Allow-Origin` -* The middleware will set the `Access-Control-Allow-Methods` header to all the method matchers (e.g. `r.Methods(http.MethodGet, http.MethodPut, http.MethodOptions)` -> `Access-Control-Allow-Methods: GET,PUT,OPTIONS`) on a route -* If you do not specify any methods, then: -> _Important_: there must be an `OPTIONS` method matcher for the middleware to set the headers. - -Here is an example of using `CORSMethodMiddleware` along with a custom `OPTIONS` handler to set all the required CORS headers: - -```go -package main - -import ( - "net/http" - "github.com/gorilla/mux" -) - -func main() { - r := mux.NewRouter() - - // IMPORTANT: you must specify an OPTIONS method matcher for the middleware to set CORS headers - r.HandleFunc("/foo", fooHandler).Methods(http.MethodGet, http.MethodPut, http.MethodPatch, http.MethodOptions) - r.Use(mux.CORSMethodMiddleware(r)) - - http.ListenAndServe(":8080", r) -} - -func fooHandler(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Access-Control-Allow-Origin", "*") - if r.Method == http.MethodOptions { - return - } - - w.Write([]byte("foo")) -} -``` - -And an request to `/foo` using something like: - -```bash -curl localhost:8080/foo -v -``` - -Would look like: - -```bash -* Trying ::1... -* TCP_NODELAY set -* Connected to localhost (::1) port 8080 (#0) -> GET /foo HTTP/1.1 -> Host: localhost:8080 -> User-Agent: curl/7.59.0 -> Accept: */* -> -< HTTP/1.1 200 OK -< Access-Control-Allow-Methods: GET,PUT,PATCH,OPTIONS -< Access-Control-Allow-Origin: * -< Date: Fri, 28 Jun 2019 20:13:30 GMT -< Content-Length: 3 -< Content-Type: text/plain; charset=utf-8 -< -* Connection #0 to host localhost left intact -foo -``` - -### Testing Handlers - -Testing handlers in a Go web application is straightforward, and _mux_ doesn't complicate this any further. Given two files: `endpoints.go` and `endpoints_test.go`, here's how we'd test an application using _mux_. - -First, our simple HTTP handler: - -```go -// endpoints.go -package main - -func HealthCheckHandler(w http.ResponseWriter, r *http.Request) { - // A very simple health check. - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - - // In the future we could report back on the status of our DB, or our cache - // (e.g. Redis) by performing a simple PING, and include them in the response. - io.WriteString(w, `{"alive": true}`) -} - -func main() { - r := mux.NewRouter() - r.HandleFunc("/health", HealthCheckHandler) - - log.Fatal(http.ListenAndServe("localhost:8080", r)) -} -``` - -Our test code: - -```go -// endpoints_test.go -package main - -import ( - "net/http" - "net/http/httptest" - "testing" -) - -func TestHealthCheckHandler(t *testing.T) { - // Create a request to pass to our handler. We don't have any query parameters for now, so we'll - // pass 'nil' as the third parameter. - req, err := http.NewRequest("GET", "/health", nil) - if err != nil { - t.Fatal(err) - } - - // We create a ResponseRecorder (which satisfies http.ResponseWriter) to record the response. - rr := httptest.NewRecorder() - handler := http.HandlerFunc(HealthCheckHandler) - - // Our handlers satisfy http.Handler, so we can call their ServeHTTP method - // directly and pass in our Request and ResponseRecorder. - handler.ServeHTTP(rr, req) - - // Check the status code is what we expect. - if status := rr.Code; status != http.StatusOK { - t.Errorf("handler returned wrong status code: got %v want %v", - status, http.StatusOK) - } - - // Check the response body is what we expect. - expected := `{"alive": true}` - if rr.Body.String() != expected { - t.Errorf("handler returned unexpected body: got %v want %v", - rr.Body.String(), expected) - } -} -``` - -In the case that our routes have [variables](#examples), we can pass those in the request. We could write -[table-driven tests](https://dave.cheney.net/2013/06/09/writing-table-driven-tests-in-go) to test multiple -possible route variables as needed. - -```go -// endpoints.go -func main() { - r := mux.NewRouter() - // A route with a route variable: - r.HandleFunc("/metrics/{type}", MetricsHandler) - - log.Fatal(http.ListenAndServe("localhost:8080", r)) -} -``` - -Our test file, with a table-driven test of `routeVariables`: - -```go -// endpoints_test.go -func TestMetricsHandler(t *testing.T) { - tt := []struct{ - routeVariable string - shouldPass bool - }{ - {"goroutines", true}, - {"heap", true}, - {"counters", true}, - {"queries", true}, - {"adhadaeqm3k", false}, - } - - for _, tc := range tt { - path := fmt.Sprintf("/metrics/%s", tc.routeVariable) - req, err := http.NewRequest("GET", path, nil) - if err != nil { - t.Fatal(err) - } - - rr := httptest.NewRecorder() - - // Need to create a router that we can pass the request through so that the vars will be added to the context - router := mux.NewRouter() - router.HandleFunc("/metrics/{type}", MetricsHandler) - router.ServeHTTP(rr, req) - - // In this case, our MetricsHandler returns a non-200 response - // for a route variable it doesn't know about. - if rr.Code == http.StatusOK && !tc.shouldPass { - t.Errorf("handler should have failed on routeVariable %s: got %v want %v", - tc.routeVariable, rr.Code, http.StatusOK) - } - } -} -``` - -## Full Example - -Here's a complete, runnable example of a small `mux` based server: - -```go -package main - -import ( - "net/http" - "log" - "github.com/gorilla/mux" -) - -func YourHandler(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("Gorilla!\n")) -} - -func main() { - r := mux.NewRouter() - // Routes consist of a path and a handler function. - r.HandleFunc("/", YourHandler) - - // Bind to a port and pass our router in - log.Fatal(http.ListenAndServe(":8000", r)) -} -``` - -## License - -BSD licensed. See the LICENSE file for details. diff --git a/vendor/github.com/gorilla/mux/context.go b/vendor/github.com/gorilla/mux/context.go deleted file mode 100644 index 665940a26..000000000 --- a/vendor/github.com/gorilla/mux/context.go +++ /dev/null @@ -1,18 +0,0 @@ -package mux - -import ( - "context" - "net/http" -) - -func contextGet(r *http.Request, key interface{}) interface{} { - return r.Context().Value(key) -} - -func contextSet(r *http.Request, key, val interface{}) *http.Request { - if val == nil { - return r - } - - return r.WithContext(context.WithValue(r.Context(), key, val)) -} diff --git a/vendor/github.com/gorilla/mux/doc.go b/vendor/github.com/gorilla/mux/doc.go deleted file mode 100644 index bd5a38b55..000000000 --- a/vendor/github.com/gorilla/mux/doc.go +++ /dev/null @@ -1,306 +0,0 @@ -// Copyright 2012 The Gorilla Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -/* -Package mux implements a request router and dispatcher. - -The name mux stands for "HTTP request multiplexer". Like the standard -http.ServeMux, mux.Router matches incoming requests against a list of -registered routes and calls a handler for the route that matches the URL -or other conditions. The main features are: - - * Requests can be matched based on URL host, path, path prefix, schemes, - header and query values, HTTP methods or using custom matchers. - * URL hosts, paths and query values can have variables with an optional - regular expression. - * Registered URLs can be built, or "reversed", which helps maintaining - references to resources. - * Routes can be used as subrouters: nested routes are only tested if the - parent route matches. This is useful to define groups of routes that - share common conditions like a host, a path prefix or other repeated - attributes. As a bonus, this optimizes request matching. - * It implements the http.Handler interface so it is compatible with the - standard http.ServeMux. - -Let's start registering a couple of URL paths and handlers: - - func main() { - r := mux.NewRouter() - r.HandleFunc("/", HomeHandler) - r.HandleFunc("/products", ProductsHandler) - r.HandleFunc("/articles", ArticlesHandler) - http.Handle("/", r) - } - -Here we register three routes mapping URL paths to handlers. This is -equivalent to how http.HandleFunc() works: if an incoming request URL matches -one of the paths, the corresponding handler is called passing -(http.ResponseWriter, *http.Request) as parameters. - -Paths can have variables. They are defined using the format {name} or -{name:pattern}. If a regular expression pattern is not defined, the matched -variable will be anything until the next slash. For example: - - r := mux.NewRouter() - r.HandleFunc("/products/{key}", ProductHandler) - r.HandleFunc("/articles/{category}/", ArticlesCategoryHandler) - r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler) - -Groups can be used inside patterns, as long as they are non-capturing (?:re). For example: - - r.HandleFunc("/articles/{category}/{sort:(?:asc|desc|new)}", ArticlesCategoryHandler) - -The names are used to create a map of route variables which can be retrieved -calling mux.Vars(): - - vars := mux.Vars(request) - category := vars["category"] - -Note that if any capturing groups are present, mux will panic() during parsing. To prevent -this, convert any capturing groups to non-capturing, e.g. change "/{sort:(asc|desc)}" to -"/{sort:(?:asc|desc)}". This is a change from prior versions which behaved unpredictably -when capturing groups were present. - -And this is all you need to know about the basic usage. More advanced options -are explained below. - -Routes can also be restricted to a domain or subdomain. Just define a host -pattern to be matched. They can also have variables: - - r := mux.NewRouter() - // Only matches if domain is "www.example.com". - r.Host("www.example.com") - // Matches a dynamic subdomain. - r.Host("{subdomain:[a-z]+}.domain.com") - -There are several other matchers that can be added. To match path prefixes: - - r.PathPrefix("/products/") - -...or HTTP methods: - - r.Methods("GET", "POST") - -...or URL schemes: - - r.Schemes("https") - -...or header values: - - r.Headers("X-Requested-With", "XMLHttpRequest") - -...or query values: - - r.Queries("key", "value") - -...or to use a custom matcher function: - - r.MatcherFunc(func(r *http.Request, rm *RouteMatch) bool { - return r.ProtoMajor == 0 - }) - -...and finally, it is possible to combine several matchers in a single route: - - r.HandleFunc("/products", ProductsHandler). - Host("www.example.com"). - Methods("GET"). - Schemes("http") - -Setting the same matching conditions again and again can be boring, so we have -a way to group several routes that share the same requirements. -We call it "subrouting". - -For example, let's say we have several URLs that should only match when the -host is "www.example.com". Create a route for that host and get a "subrouter" -from it: - - r := mux.NewRouter() - s := r.Host("www.example.com").Subrouter() - -Then register routes in the subrouter: - - s.HandleFunc("/products/", ProductsHandler) - s.HandleFunc("/products/{key}", ProductHandler) - s.HandleFunc("/articles/{category}/{id:[0-9]+}"), ArticleHandler) - -The three URL paths we registered above will only be tested if the domain is -"www.example.com", because the subrouter is tested first. This is not -only convenient, but also optimizes request matching. You can create -subrouters combining any attribute matchers accepted by a route. - -Subrouters can be used to create domain or path "namespaces": you define -subrouters in a central place and then parts of the app can register its -paths relatively to a given subrouter. - -There's one more thing about subroutes. When a subrouter has a path prefix, -the inner routes use it as base for their paths: - - r := mux.NewRouter() - s := r.PathPrefix("/products").Subrouter() - // "/products/" - s.HandleFunc("/", ProductsHandler) - // "/products/{key}/" - s.HandleFunc("/{key}/", ProductHandler) - // "/products/{key}/details" - s.HandleFunc("/{key}/details", ProductDetailsHandler) - -Note that the path provided to PathPrefix() represents a "wildcard": calling -PathPrefix("/static/").Handler(...) means that the handler will be passed any -request that matches "/static/*". This makes it easy to serve static files with mux: - - func main() { - var dir string - - flag.StringVar(&dir, "dir", ".", "the directory to serve files from. Defaults to the current dir") - flag.Parse() - r := mux.NewRouter() - - // This will serve files under http://localhost:8000/static/ - r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir(dir)))) - - srv := &http.Server{ - Handler: r, - Addr: "127.0.0.1:8000", - // Good practice: enforce timeouts for servers you create! - WriteTimeout: 15 * time.Second, - ReadTimeout: 15 * time.Second, - } - - log.Fatal(srv.ListenAndServe()) - } - -Now let's see how to build registered URLs. - -Routes can be named. All routes that define a name can have their URLs built, -or "reversed". We define a name calling Name() on a route. For example: - - r := mux.NewRouter() - r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler). - Name("article") - -To build a URL, get the route and call the URL() method, passing a sequence of -key/value pairs for the route variables. For the previous route, we would do: - - url, err := r.Get("article").URL("category", "technology", "id", "42") - -...and the result will be a url.URL with the following path: - - "/articles/technology/42" - -This also works for host and query value variables: - - r := mux.NewRouter() - r.Host("{subdomain}.domain.com"). - Path("/articles/{category}/{id:[0-9]+}"). - Queries("filter", "{filter}"). - HandlerFunc(ArticleHandler). - Name("article") - - // url.String() will be "http://news.domain.com/articles/technology/42?filter=gorilla" - url, err := r.Get("article").URL("subdomain", "news", - "category", "technology", - "id", "42", - "filter", "gorilla") - -All variables defined in the route are required, and their values must -conform to the corresponding patterns. These requirements guarantee that a -generated URL will always match a registered route -- the only exception is -for explicitly defined "build-only" routes which never match. - -Regex support also exists for matching Headers within a route. For example, we could do: - - r.HeadersRegexp("Content-Type", "application/(text|json)") - -...and the route will match both requests with a Content-Type of `application/json` as well as -`application/text` - -There's also a way to build only the URL host or path for a route: -use the methods URLHost() or URLPath() instead. For the previous route, -we would do: - - // "http://news.domain.com/" - host, err := r.Get("article").URLHost("subdomain", "news") - - // "/articles/technology/42" - path, err := r.Get("article").URLPath("category", "technology", "id", "42") - -And if you use subrouters, host and path defined separately can be built -as well: - - r := mux.NewRouter() - s := r.Host("{subdomain}.domain.com").Subrouter() - s.Path("/articles/{category}/{id:[0-9]+}"). - HandlerFunc(ArticleHandler). - Name("article") - - // "http://news.domain.com/articles/technology/42" - url, err := r.Get("article").URL("subdomain", "news", - "category", "technology", - "id", "42") - -Mux supports the addition of middlewares to a Router, which are executed in the order they are added if a match is found, including its subrouters. Middlewares are (typically) small pieces of code which take one request, do something with it, and pass it down to another middleware or the final handler. Some common use cases for middleware are request logging, header manipulation, or ResponseWriter hijacking. - - type MiddlewareFunc func(http.Handler) http.Handler - -Typically, the returned handler is a closure which does something with the http.ResponseWriter and http.Request passed to it, and then calls the handler passed as parameter to the MiddlewareFunc (closures can access variables from the context where they are created). - -A very basic middleware which logs the URI of the request being handled could be written as: - - func simpleMw(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - // Do stuff here - log.Println(r.RequestURI) - // Call the next handler, which can be another middleware in the chain, or the final handler. - next.ServeHTTP(w, r) - }) - } - -Middlewares can be added to a router using `Router.Use()`: - - r := mux.NewRouter() - r.HandleFunc("/", handler) - r.Use(simpleMw) - -A more complex authentication middleware, which maps session token to users, could be written as: - - // Define our struct - type authenticationMiddleware struct { - tokenUsers map[string]string - } - - // Initialize it somewhere - func (amw *authenticationMiddleware) Populate() { - amw.tokenUsers["00000000"] = "user0" - amw.tokenUsers["aaaaaaaa"] = "userA" - amw.tokenUsers["05f717e5"] = "randomUser" - amw.tokenUsers["deadbeef"] = "user0" - } - - // Middleware function, which will be called for each request - func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - token := r.Header.Get("X-Session-Token") - - if user, found := amw.tokenUsers[token]; found { - // We found the token in our map - log.Printf("Authenticated user %s\n", user) - next.ServeHTTP(w, r) - } else { - http.Error(w, "Forbidden", http.StatusForbidden) - } - }) - } - - r := mux.NewRouter() - r.HandleFunc("/", handler) - - amw := authenticationMiddleware{tokenUsers: make(map[string]string)} - amw.Populate() - - r.Use(amw.Middleware) - -Note: The handler chain will be stopped if your middleware doesn't call `next.ServeHTTP()` with the corresponding parameters. This can be used to abort a request if the middleware writer wants to. - -*/ -package mux diff --git a/vendor/github.com/gorilla/mux/go.mod b/vendor/github.com/gorilla/mux/go.mod deleted file mode 100644 index cfc8ede58..000000000 --- a/vendor/github.com/gorilla/mux/go.mod +++ /dev/null @@ -1 +0,0 @@ -module github.com/gorilla/mux diff --git a/vendor/github.com/gorilla/mux/middleware.go b/vendor/github.com/gorilla/mux/middleware.go deleted file mode 100644 index cf2b26dc0..000000000 --- a/vendor/github.com/gorilla/mux/middleware.go +++ /dev/null @@ -1,79 +0,0 @@ -package mux - -import ( - "net/http" - "strings" -) - -// MiddlewareFunc is a function which receives an http.Handler and returns another http.Handler. -// Typically, the returned handler is a closure which does something with the http.ResponseWriter and http.Request passed -// to it, and then calls the handler passed as parameter to the MiddlewareFunc. -type MiddlewareFunc func(http.Handler) http.Handler - -// middleware interface is anything which implements a MiddlewareFunc named Middleware. -type middleware interface { - Middleware(handler http.Handler) http.Handler -} - -// Middleware allows MiddlewareFunc to implement the middleware interface. -func (mw MiddlewareFunc) Middleware(handler http.Handler) http.Handler { - return mw(handler) -} - -// Use appends a MiddlewareFunc to the chain. Middleware can be used to intercept or otherwise modify requests and/or responses, and are executed in the order that they are applied to the Router. -func (r *Router) Use(mwf ...MiddlewareFunc) { - for _, fn := range mwf { - r.middlewares = append(r.middlewares, fn) - } -} - -// useInterface appends a middleware to the chain. Middleware can be used to intercept or otherwise modify requests and/or responses, and are executed in the order that they are applied to the Router. -func (r *Router) useInterface(mw middleware) { - r.middlewares = append(r.middlewares, mw) -} - -// CORSMethodMiddleware automatically sets the Access-Control-Allow-Methods response header -// on requests for routes that have an OPTIONS method matcher to all the method matchers on -// the route. Routes that do not explicitly handle OPTIONS requests will not be processed -// by the middleware. See examples for usage. -func CORSMethodMiddleware(r *Router) MiddlewareFunc { - return func(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { - allMethods, err := getAllMethodsForRoute(r, req) - if err == nil { - for _, v := range allMethods { - if v == http.MethodOptions { - w.Header().Set("Access-Control-Allow-Methods", strings.Join(allMethods, ",")) - } - } - } - - next.ServeHTTP(w, req) - }) - } -} - -// getAllMethodsForRoute returns all the methods from method matchers matching a given -// request. -func getAllMethodsForRoute(r *Router, req *http.Request) ([]string, error) { - var allMethods []string - - err := r.Walk(func(route *Route, _ *Router, _ []*Route) error { - for _, m := range route.matchers { - if _, ok := m.(*routeRegexp); ok { - if m.Match(req, &RouteMatch{}) { - methods, err := route.GetMethods() - if err != nil { - return err - } - - allMethods = append(allMethods, methods...) - } - break - } - } - return nil - }) - - return allMethods, err -} diff --git a/vendor/github.com/gorilla/mux/mux.go b/vendor/github.com/gorilla/mux/mux.go deleted file mode 100644 index a2cd193e4..000000000 --- a/vendor/github.com/gorilla/mux/mux.go +++ /dev/null @@ -1,607 +0,0 @@ -// Copyright 2012 The Gorilla Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mux - -import ( - "errors" - "fmt" - "net/http" - "path" - "regexp" -) - -var ( - // ErrMethodMismatch is returned when the method in the request does not match - // the method defined against the route. - ErrMethodMismatch = errors.New("method is not allowed") - // ErrNotFound is returned when no route match is found. - ErrNotFound = errors.New("no matching route was found") -) - -// NewRouter returns a new router instance. -func NewRouter() *Router { - return &Router{namedRoutes: make(map[string]*Route)} -} - -// Router registers routes to be matched and dispatches a handler. -// -// It implements the http.Handler interface, so it can be registered to serve -// requests: -// -// var router = mux.NewRouter() -// -// func main() { -// http.Handle("/", router) -// } -// -// Or, for Google App Engine, register it in a init() function: -// -// func init() { -// http.Handle("/", router) -// } -// -// This will send all incoming requests to the router. -type Router struct { - // Configurable Handler to be used when no route matches. - NotFoundHandler http.Handler - - // Configurable Handler to be used when the request method does not match the route. - MethodNotAllowedHandler http.Handler - - // Routes to be matched, in order. - routes []*Route - - // Routes by name for URL building. - namedRoutes map[string]*Route - - // If true, do not clear the request context after handling the request. - // - // Deprecated: No effect when go1.7+ is used, since the context is stored - // on the request itself. - KeepContext bool - - // Slice of middlewares to be called after a match is found - middlewares []middleware - - // configuration shared with `Route` - routeConf -} - -// common route configuration shared between `Router` and `Route` -type routeConf struct { - // If true, "/path/foo%2Fbar/to" will match the path "/path/{var}/to" - useEncodedPath bool - - // If true, when the path pattern is "/path/", accessing "/path" will - // redirect to the former and vice versa. - strictSlash bool - - // If true, when the path pattern is "/path//to", accessing "/path//to" - // will not redirect - skipClean bool - - // Manager for the variables from host and path. - regexp routeRegexpGroup - - // List of matchers. - matchers []matcher - - // The scheme used when building URLs. - buildScheme string - - buildVarsFunc BuildVarsFunc -} - -// returns an effective deep copy of `routeConf` -func copyRouteConf(r routeConf) routeConf { - c := r - - if r.regexp.path != nil { - c.regexp.path = copyRouteRegexp(r.regexp.path) - } - - if r.regexp.host != nil { - c.regexp.host = copyRouteRegexp(r.regexp.host) - } - - c.regexp.queries = make([]*routeRegexp, 0, len(r.regexp.queries)) - for _, q := range r.regexp.queries { - c.regexp.queries = append(c.regexp.queries, copyRouteRegexp(q)) - } - - c.matchers = make([]matcher, 0, len(r.matchers)) - for _, m := range r.matchers { - c.matchers = append(c.matchers, m) - } - - return c -} - -func copyRouteRegexp(r *routeRegexp) *routeRegexp { - c := *r - return &c -} - -// Match attempts to match the given request against the router's registered routes. -// -// If the request matches a route of this router or one of its subrouters the Route, -// Handler, and Vars fields of the the match argument are filled and this function -// returns true. -// -// If the request does not match any of this router's or its subrouters' routes -// then this function returns false. If available, a reason for the match failure -// will be filled in the match argument's MatchErr field. If the match failure type -// (eg: not found) has a registered handler, the handler is assigned to the Handler -// field of the match argument. -func (r *Router) Match(req *http.Request, match *RouteMatch) bool { - for _, route := range r.routes { - if route.Match(req, match) { - // Build middleware chain if no error was found - if match.MatchErr == nil { - for i := len(r.middlewares) - 1; i >= 0; i-- { - match.Handler = r.middlewares[i].Middleware(match.Handler) - } - } - return true - } - } - - if match.MatchErr == ErrMethodMismatch { - if r.MethodNotAllowedHandler != nil { - match.Handler = r.MethodNotAllowedHandler - return true - } - - return false - } - - // Closest match for a router (includes sub-routers) - if r.NotFoundHandler != nil { - match.Handler = r.NotFoundHandler - match.MatchErr = ErrNotFound - return true - } - - match.MatchErr = ErrNotFound - return false -} - -// ServeHTTP dispatches the handler registered in the matched route. -// -// When there is a match, the route variables can be retrieved calling -// mux.Vars(request). -func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { - if !r.skipClean { - path := req.URL.Path - if r.useEncodedPath { - path = req.URL.EscapedPath() - } - // Clean path to canonical form and redirect. - if p := cleanPath(path); p != path { - - // Added 3 lines (Philip Schlump) - It was dropping the query string and #whatever from query. - // This matches with fix in go 1.2 r.c. 4 for same problem. Go Issue: - // http://code.google.com/p/go/issues/detail?id=5252 - url := *req.URL - url.Path = p - p = url.String() - - w.Header().Set("Location", p) - w.WriteHeader(http.StatusMovedPermanently) - return - } - } - var match RouteMatch - var handler http.Handler - if r.Match(req, &match) { - handler = match.Handler - req = setVars(req, match.Vars) - req = setCurrentRoute(req, match.Route) - } - - if handler == nil && match.MatchErr == ErrMethodMismatch { - handler = methodNotAllowedHandler() - } - - if handler == nil { - handler = http.NotFoundHandler() - } - - handler.ServeHTTP(w, req) -} - -// Get returns a route registered with the given name. -func (r *Router) Get(name string) *Route { - return r.namedRoutes[name] -} - -// GetRoute returns a route registered with the given name. This method -// was renamed to Get() and remains here for backwards compatibility. -func (r *Router) GetRoute(name string) *Route { - return r.namedRoutes[name] -} - -// StrictSlash defines the trailing slash behavior for new routes. The initial -// value is false. -// -// When true, if the route path is "/path/", accessing "/path" will perform a redirect -// to the former and vice versa. In other words, your application will always -// see the path as specified in the route. -// -// When false, if the route path is "/path", accessing "/path/" will not match -// this route and vice versa. -// -// The re-direct is a HTTP 301 (Moved Permanently). Note that when this is set for -// routes with a non-idempotent method (e.g. POST, PUT), the subsequent re-directed -// request will be made as a GET by most clients. Use middleware or client settings -// to modify this behaviour as needed. -// -// Special case: when a route sets a path prefix using the PathPrefix() method, -// strict slash is ignored for that route because the redirect behavior can't -// be determined from a prefix alone. However, any subrouters created from that -// route inherit the original StrictSlash setting. -func (r *Router) StrictSlash(value bool) *Router { - r.strictSlash = value - return r -} - -// SkipClean defines the path cleaning behaviour for new routes. The initial -// value is false. Users should be careful about which routes are not cleaned -// -// When true, if the route path is "/path//to", it will remain with the double -// slash. This is helpful if you have a route like: /fetch/http://xkcd.com/534/ -// -// When false, the path will be cleaned, so /fetch/http://xkcd.com/534/ will -// become /fetch/http/xkcd.com/534 -func (r *Router) SkipClean(value bool) *Router { - r.skipClean = value - return r -} - -// UseEncodedPath tells the router to match the encoded original path -// to the routes. -// For eg. "/path/foo%2Fbar/to" will match the path "/path/{var}/to". -// -// If not called, the router will match the unencoded path to the routes. -// For eg. "/path/foo%2Fbar/to" will match the path "/path/foo/bar/to" -func (r *Router) UseEncodedPath() *Router { - r.useEncodedPath = true - return r -} - -// ---------------------------------------------------------------------------- -// Route factories -// ---------------------------------------------------------------------------- - -// NewRoute registers an empty route. -func (r *Router) NewRoute() *Route { - // initialize a route with a copy of the parent router's configuration - route := &Route{routeConf: copyRouteConf(r.routeConf), namedRoutes: r.namedRoutes} - r.routes = append(r.routes, route) - return route -} - -// Name registers a new route with a name. -// See Route.Name(). -func (r *Router) Name(name string) *Route { - return r.NewRoute().Name(name) -} - -// Handle registers a new route with a matcher for the URL path. -// See Route.Path() and Route.Handler(). -func (r *Router) Handle(path string, handler http.Handler) *Route { - return r.NewRoute().Path(path).Handler(handler) -} - -// HandleFunc registers a new route with a matcher for the URL path. -// See Route.Path() and Route.HandlerFunc(). -func (r *Router) HandleFunc(path string, f func(http.ResponseWriter, - *http.Request)) *Route { - return r.NewRoute().Path(path).HandlerFunc(f) -} - -// Headers registers a new route with a matcher for request header values. -// See Route.Headers(). -func (r *Router) Headers(pairs ...string) *Route { - return r.NewRoute().Headers(pairs...) -} - -// Host registers a new route with a matcher for the URL host. -// See Route.Host(). -func (r *Router) Host(tpl string) *Route { - return r.NewRoute().Host(tpl) -} - -// MatcherFunc registers a new route with a custom matcher function. -// See Route.MatcherFunc(). -func (r *Router) MatcherFunc(f MatcherFunc) *Route { - return r.NewRoute().MatcherFunc(f) -} - -// Methods registers a new route with a matcher for HTTP methods. -// See Route.Methods(). -func (r *Router) Methods(methods ...string) *Route { - return r.NewRoute().Methods(methods...) -} - -// Path registers a new route with a matcher for the URL path. -// See Route.Path(). -func (r *Router) Path(tpl string) *Route { - return r.NewRoute().Path(tpl) -} - -// PathPrefix registers a new route with a matcher for the URL path prefix. -// See Route.PathPrefix(). -func (r *Router) PathPrefix(tpl string) *Route { - return r.NewRoute().PathPrefix(tpl) -} - -// Queries registers a new route with a matcher for URL query values. -// See Route.Queries(). -func (r *Router) Queries(pairs ...string) *Route { - return r.NewRoute().Queries(pairs...) -} - -// Schemes registers a new route with a matcher for URL schemes. -// See Route.Schemes(). -func (r *Router) Schemes(schemes ...string) *Route { - return r.NewRoute().Schemes(schemes...) -} - -// BuildVarsFunc registers a new route with a custom function for modifying -// route variables before building a URL. -func (r *Router) BuildVarsFunc(f BuildVarsFunc) *Route { - return r.NewRoute().BuildVarsFunc(f) -} - -// Walk walks the router and all its sub-routers, calling walkFn for each route -// in the tree. The routes are walked in the order they were added. Sub-routers -// are explored depth-first. -func (r *Router) Walk(walkFn WalkFunc) error { - return r.walk(walkFn, []*Route{}) -} - -// SkipRouter is used as a return value from WalkFuncs to indicate that the -// router that walk is about to descend down to should be skipped. -var SkipRouter = errors.New("skip this router") - -// WalkFunc is the type of the function called for each route visited by Walk. -// At every invocation, it is given the current route, and the current router, -// and a list of ancestor routes that lead to the current route. -type WalkFunc func(route *Route, router *Router, ancestors []*Route) error - -func (r *Router) walk(walkFn WalkFunc, ancestors []*Route) error { - for _, t := range r.routes { - err := walkFn(t, r, ancestors) - if err == SkipRouter { - continue - } - if err != nil { - return err - } - for _, sr := range t.matchers { - if h, ok := sr.(*Router); ok { - ancestors = append(ancestors, t) - err := h.walk(walkFn, ancestors) - if err != nil { - return err - } - ancestors = ancestors[:len(ancestors)-1] - } - } - if h, ok := t.handler.(*Router); ok { - ancestors = append(ancestors, t) - err := h.walk(walkFn, ancestors) - if err != nil { - return err - } - ancestors = ancestors[:len(ancestors)-1] - } - } - return nil -} - -// ---------------------------------------------------------------------------- -// Context -// ---------------------------------------------------------------------------- - -// RouteMatch stores information about a matched route. -type RouteMatch struct { - Route *Route - Handler http.Handler - Vars map[string]string - - // MatchErr is set to appropriate matching error - // It is set to ErrMethodMismatch if there is a mismatch in - // the request method and route method - MatchErr error -} - -type contextKey int - -const ( - varsKey contextKey = iota - routeKey -) - -// Vars returns the route variables for the current request, if any. -func Vars(r *http.Request) map[string]string { - if rv := contextGet(r, varsKey); rv != nil { - return rv.(map[string]string) - } - return nil -} - -// CurrentRoute returns the matched route for the current request, if any. -// This only works when called inside the handler of the matched route -// because the matched route is stored in the request context which is cleared -// after the handler returns, unless the KeepContext option is set on the -// Router. -func CurrentRoute(r *http.Request) *Route { - if rv := contextGet(r, routeKey); rv != nil { - return rv.(*Route) - } - return nil -} - -func setVars(r *http.Request, val interface{}) *http.Request { - return contextSet(r, varsKey, val) -} - -func setCurrentRoute(r *http.Request, val interface{}) *http.Request { - return contextSet(r, routeKey, val) -} - -// ---------------------------------------------------------------------------- -// Helpers -// ---------------------------------------------------------------------------- - -// cleanPath returns the canonical path for p, eliminating . and .. elements. -// Borrowed from the net/http package. -func cleanPath(p string) string { - if p == "" { - return "/" - } - if p[0] != '/' { - p = "/" + p - } - np := path.Clean(p) - // path.Clean removes trailing slash except for root; - // put the trailing slash back if necessary. - if p[len(p)-1] == '/' && np != "/" { - np += "/" - } - - return np -} - -// uniqueVars returns an error if two slices contain duplicated strings. -func uniqueVars(s1, s2 []string) error { - for _, v1 := range s1 { - for _, v2 := range s2 { - if v1 == v2 { - return fmt.Errorf("mux: duplicated route variable %q", v2) - } - } - } - return nil -} - -// checkPairs returns the count of strings passed in, and an error if -// the count is not an even number. -func checkPairs(pairs ...string) (int, error) { - length := len(pairs) - if length%2 != 0 { - return length, fmt.Errorf( - "mux: number of parameters must be multiple of 2, got %v", pairs) - } - return length, nil -} - -// mapFromPairsToString converts variadic string parameters to a -// string to string map. -func mapFromPairsToString(pairs ...string) (map[string]string, error) { - length, err := checkPairs(pairs...) - if err != nil { - return nil, err - } - m := make(map[string]string, length/2) - for i := 0; i < length; i += 2 { - m[pairs[i]] = pairs[i+1] - } - return m, nil -} - -// mapFromPairsToRegex converts variadic string parameters to a -// string to regex map. -func mapFromPairsToRegex(pairs ...string) (map[string]*regexp.Regexp, error) { - length, err := checkPairs(pairs...) - if err != nil { - return nil, err - } - m := make(map[string]*regexp.Regexp, length/2) - for i := 0; i < length; i += 2 { - regex, err := regexp.Compile(pairs[i+1]) - if err != nil { - return nil, err - } - m[pairs[i]] = regex - } - return m, nil -} - -// matchInArray returns true if the given string value is in the array. -func matchInArray(arr []string, value string) bool { - for _, v := range arr { - if v == value { - return true - } - } - return false -} - -// matchMapWithString returns true if the given key/value pairs exist in a given map. -func matchMapWithString(toCheck map[string]string, toMatch map[string][]string, canonicalKey bool) bool { - for k, v := range toCheck { - // Check if key exists. - if canonicalKey { - k = http.CanonicalHeaderKey(k) - } - if values := toMatch[k]; values == nil { - return false - } else if v != "" { - // If value was defined as an empty string we only check that the - // key exists. Otherwise we also check for equality. - valueExists := false - for _, value := range values { - if v == value { - valueExists = true - break - } - } - if !valueExists { - return false - } - } - } - return true -} - -// matchMapWithRegex returns true if the given key/value pairs exist in a given map compiled against -// the given regex -func matchMapWithRegex(toCheck map[string]*regexp.Regexp, toMatch map[string][]string, canonicalKey bool) bool { - for k, v := range toCheck { - // Check if key exists. - if canonicalKey { - k = http.CanonicalHeaderKey(k) - } - if values := toMatch[k]; values == nil { - return false - } else if v != nil { - // If value was defined as an empty string we only check that the - // key exists. Otherwise we also check for equality. - valueExists := false - for _, value := range values { - if v.MatchString(value) { - valueExists = true - break - } - } - if !valueExists { - return false - } - } - } - return true -} - -// methodNotAllowed replies to the request with an HTTP status code 405. -func methodNotAllowed(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusMethodNotAllowed) -} - -// methodNotAllowedHandler returns a simple request handler -// that replies to each request with a status code 405. -func methodNotAllowedHandler() http.Handler { return http.HandlerFunc(methodNotAllowed) } diff --git a/vendor/github.com/gorilla/mux/regexp.go b/vendor/github.com/gorilla/mux/regexp.go deleted file mode 100644 index ac1abcd47..000000000 --- a/vendor/github.com/gorilla/mux/regexp.go +++ /dev/null @@ -1,345 +0,0 @@ -// Copyright 2012 The Gorilla Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mux - -import ( - "bytes" - "fmt" - "net/http" - "net/url" - "regexp" - "strconv" - "strings" -) - -type routeRegexpOptions struct { - strictSlash bool - useEncodedPath bool -} - -type regexpType int - -const ( - regexpTypePath regexpType = 0 - regexpTypeHost regexpType = 1 - regexpTypePrefix regexpType = 2 - regexpTypeQuery regexpType = 3 -) - -// newRouteRegexp parses a route template and returns a routeRegexp, -// used to match a host, a path or a query string. -// -// It will extract named variables, assemble a regexp to be matched, create -// a "reverse" template to build URLs and compile regexps to validate variable -// values used in URL building. -// -// Previously we accepted only Python-like identifiers for variable -// names ([a-zA-Z_][a-zA-Z0-9_]*), but currently the only restriction is that -// name and pattern can't be empty, and names can't contain a colon. -func newRouteRegexp(tpl string, typ regexpType, options routeRegexpOptions) (*routeRegexp, error) { - // Check if it is well-formed. - idxs, errBraces := braceIndices(tpl) - if errBraces != nil { - return nil, errBraces - } - // Backup the original. - template := tpl - // Now let's parse it. - defaultPattern := "[^/]+" - if typ == regexpTypeQuery { - defaultPattern = ".*" - } else if typ == regexpTypeHost { - defaultPattern = "[^.]+" - } - // Only match strict slash if not matching - if typ != regexpTypePath { - options.strictSlash = false - } - // Set a flag for strictSlash. - endSlash := false - if options.strictSlash && strings.HasSuffix(tpl, "/") { - tpl = tpl[:len(tpl)-1] - endSlash = true - } - varsN := make([]string, len(idxs)/2) - varsR := make([]*regexp.Regexp, len(idxs)/2) - pattern := bytes.NewBufferString("") - pattern.WriteByte('^') - reverse := bytes.NewBufferString("") - var end int - var err error - for i := 0; i < len(idxs); i += 2 { - // Set all values we are interested in. - raw := tpl[end:idxs[i]] - end = idxs[i+1] - parts := strings.SplitN(tpl[idxs[i]+1:end-1], ":", 2) - name := parts[0] - patt := defaultPattern - if len(parts) == 2 { - patt = parts[1] - } - // Name or pattern can't be empty. - if name == "" || patt == "" { - return nil, fmt.Errorf("mux: missing name or pattern in %q", - tpl[idxs[i]:end]) - } - // Build the regexp pattern. - fmt.Fprintf(pattern, "%s(?P<%s>%s)", regexp.QuoteMeta(raw), varGroupName(i/2), patt) - - // Build the reverse template. - fmt.Fprintf(reverse, "%s%%s", raw) - - // Append variable name and compiled pattern. - varsN[i/2] = name - varsR[i/2], err = regexp.Compile(fmt.Sprintf("^%s$", patt)) - if err != nil { - return nil, err - } - } - // Add the remaining. - raw := tpl[end:] - pattern.WriteString(regexp.QuoteMeta(raw)) - if options.strictSlash { - pattern.WriteString("[/]?") - } - if typ == regexpTypeQuery { - // Add the default pattern if the query value is empty - if queryVal := strings.SplitN(template, "=", 2)[1]; queryVal == "" { - pattern.WriteString(defaultPattern) - } - } - if typ != regexpTypePrefix { - pattern.WriteByte('$') - } - - var wildcardHostPort bool - if typ == regexpTypeHost { - if !strings.Contains(pattern.String(), ":") { - wildcardHostPort = true - } - } - reverse.WriteString(raw) - if endSlash { - reverse.WriteByte('/') - } - // Compile full regexp. - reg, errCompile := regexp.Compile(pattern.String()) - if errCompile != nil { - return nil, errCompile - } - - // Check for capturing groups which used to work in older versions - if reg.NumSubexp() != len(idxs)/2 { - panic(fmt.Sprintf("route %s contains capture groups in its regexp. ", template) + - "Only non-capturing groups are accepted: e.g. (?:pattern) instead of (pattern)") - } - - // Done! - return &routeRegexp{ - template: template, - regexpType: typ, - options: options, - regexp: reg, - reverse: reverse.String(), - varsN: varsN, - varsR: varsR, - wildcardHostPort: wildcardHostPort, - }, nil -} - -// routeRegexp stores a regexp to match a host or path and information to -// collect and validate route variables. -type routeRegexp struct { - // The unmodified template. - template string - // The type of match - regexpType regexpType - // Options for matching - options routeRegexpOptions - // Expanded regexp. - regexp *regexp.Regexp - // Reverse template. - reverse string - // Variable names. - varsN []string - // Variable regexps (validators). - varsR []*regexp.Regexp - // Wildcard host-port (no strict port match in hostname) - wildcardHostPort bool -} - -// Match matches the regexp against the URL host or path. -func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool { - if r.regexpType == regexpTypeHost { - host := getHost(req) - if r.wildcardHostPort { - // Don't be strict on the port match - if i := strings.Index(host, ":"); i != -1 { - host = host[:i] - } - } - return r.regexp.MatchString(host) - } else { - if r.regexpType == regexpTypeQuery { - return r.matchQueryString(req) - } - path := req.URL.Path - if r.options.useEncodedPath { - path = req.URL.EscapedPath() - } - return r.regexp.MatchString(path) - } -} - -// url builds a URL part using the given values. -func (r *routeRegexp) url(values map[string]string) (string, error) { - urlValues := make([]interface{}, len(r.varsN)) - for k, v := range r.varsN { - value, ok := values[v] - if !ok { - return "", fmt.Errorf("mux: missing route variable %q", v) - } - if r.regexpType == regexpTypeQuery { - value = url.QueryEscape(value) - } - urlValues[k] = value - } - rv := fmt.Sprintf(r.reverse, urlValues...) - if !r.regexp.MatchString(rv) { - // The URL is checked against the full regexp, instead of checking - // individual variables. This is faster but to provide a good error - // message, we check individual regexps if the URL doesn't match. - for k, v := range r.varsN { - if !r.varsR[k].MatchString(values[v]) { - return "", fmt.Errorf( - "mux: variable %q doesn't match, expected %q", values[v], - r.varsR[k].String()) - } - } - } - return rv, nil -} - -// getURLQuery returns a single query parameter from a request URL. -// For a URL with foo=bar&baz=ding, we return only the relevant key -// value pair for the routeRegexp. -func (r *routeRegexp) getURLQuery(req *http.Request) string { - if r.regexpType != regexpTypeQuery { - return "" - } - templateKey := strings.SplitN(r.template, "=", 2)[0] - for key, vals := range req.URL.Query() { - if key == templateKey && len(vals) > 0 { - return key + "=" + vals[0] - } - } - return "" -} - -func (r *routeRegexp) matchQueryString(req *http.Request) bool { - return r.regexp.MatchString(r.getURLQuery(req)) -} - -// braceIndices returns the first level curly brace indices from a string. -// It returns an error in case of unbalanced braces. -func braceIndices(s string) ([]int, error) { - var level, idx int - var idxs []int - for i := 0; i < len(s); i++ { - switch s[i] { - case '{': - if level++; level == 1 { - idx = i - } - case '}': - if level--; level == 0 { - idxs = append(idxs, idx, i+1) - } else if level < 0 { - return nil, fmt.Errorf("mux: unbalanced braces in %q", s) - } - } - } - if level != 0 { - return nil, fmt.Errorf("mux: unbalanced braces in %q", s) - } - return idxs, nil -} - -// varGroupName builds a capturing group name for the indexed variable. -func varGroupName(idx int) string { - return "v" + strconv.Itoa(idx) -} - -// ---------------------------------------------------------------------------- -// routeRegexpGroup -// ---------------------------------------------------------------------------- - -// routeRegexpGroup groups the route matchers that carry variables. -type routeRegexpGroup struct { - host *routeRegexp - path *routeRegexp - queries []*routeRegexp -} - -// setMatch extracts the variables from the URL once a route matches. -func (v routeRegexpGroup) setMatch(req *http.Request, m *RouteMatch, r *Route) { - // Store host variables. - if v.host != nil { - host := getHost(req) - matches := v.host.regexp.FindStringSubmatchIndex(host) - if len(matches) > 0 { - extractVars(host, matches, v.host.varsN, m.Vars) - } - } - path := req.URL.Path - if r.useEncodedPath { - path = req.URL.EscapedPath() - } - // Store path variables. - if v.path != nil { - matches := v.path.regexp.FindStringSubmatchIndex(path) - if len(matches) > 0 { - extractVars(path, matches, v.path.varsN, m.Vars) - // Check if we should redirect. - if v.path.options.strictSlash { - p1 := strings.HasSuffix(path, "/") - p2 := strings.HasSuffix(v.path.template, "/") - if p1 != p2 { - u, _ := url.Parse(req.URL.String()) - if p1 { - u.Path = u.Path[:len(u.Path)-1] - } else { - u.Path += "/" - } - m.Handler = http.RedirectHandler(u.String(), http.StatusMovedPermanently) - } - } - } - } - // Store query string variables. - for _, q := range v.queries { - queryURL := q.getURLQuery(req) - matches := q.regexp.FindStringSubmatchIndex(queryURL) - if len(matches) > 0 { - extractVars(queryURL, matches, q.varsN, m.Vars) - } - } -} - -// getHost tries its best to return the request host. -// According to section 14.23 of RFC 2616 the Host header -// can include the port number if the default value of 80 is not used. -func getHost(r *http.Request) string { - if r.URL.IsAbs() { - return r.URL.Host - } - return r.Host -} - -func extractVars(input string, matches []int, names []string, output map[string]string) { - for i, name := range names { - output[name] = input[matches[2*i+2]:matches[2*i+3]] - } -} diff --git a/vendor/github.com/gorilla/mux/route.go b/vendor/github.com/gorilla/mux/route.go deleted file mode 100644 index 8479c68c1..000000000 --- a/vendor/github.com/gorilla/mux/route.go +++ /dev/null @@ -1,710 +0,0 @@ -// Copyright 2012 The Gorilla Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mux - -import ( - "errors" - "fmt" - "net/http" - "net/url" - "regexp" - "strings" -) - -// Route stores information to match a request and build URLs. -type Route struct { - // Request handler for the route. - handler http.Handler - // If true, this route never matches: it is only used to build URLs. - buildOnly bool - // The name used to build URLs. - name string - // Error resulted from building a route. - err error - - // "global" reference to all named routes - namedRoutes map[string]*Route - - // config possibly passed in from `Router` - routeConf -} - -// SkipClean reports whether path cleaning is enabled for this route via -// Router.SkipClean. -func (r *Route) SkipClean() bool { - return r.skipClean -} - -// Match matches the route against the request. -func (r *Route) Match(req *http.Request, match *RouteMatch) bool { - if r.buildOnly || r.err != nil { - return false - } - - var matchErr error - - // Match everything. - for _, m := range r.matchers { - if matched := m.Match(req, match); !matched { - if _, ok := m.(methodMatcher); ok { - matchErr = ErrMethodMismatch - continue - } - - // Ignore ErrNotFound errors. These errors arise from match call - // to Subrouters. - // - // This prevents subsequent matching subrouters from failing to - // run middleware. If not ignored, the middleware would see a - // non-nil MatchErr and be skipped, even when there was a - // matching route. - if match.MatchErr == ErrNotFound { - match.MatchErr = nil - } - - matchErr = nil - return false - } - } - - if matchErr != nil { - match.MatchErr = matchErr - return false - } - - if match.MatchErr == ErrMethodMismatch { - // We found a route which matches request method, clear MatchErr - match.MatchErr = nil - // Then override the mis-matched handler - match.Handler = r.handler - } - - // Yay, we have a match. Let's collect some info about it. - if match.Route == nil { - match.Route = r - } - if match.Handler == nil { - match.Handler = r.handler - } - if match.Vars == nil { - match.Vars = make(map[string]string) - } - - // Set variables. - r.regexp.setMatch(req, match, r) - return true -} - -// ---------------------------------------------------------------------------- -// Route attributes -// ---------------------------------------------------------------------------- - -// GetError returns an error resulted from building the route, if any. -func (r *Route) GetError() error { - return r.err -} - -// BuildOnly sets the route to never match: it is only used to build URLs. -func (r *Route) BuildOnly() *Route { - r.buildOnly = true - return r -} - -// Handler -------------------------------------------------------------------- - -// Handler sets a handler for the route. -func (r *Route) Handler(handler http.Handler) *Route { - if r.err == nil { - r.handler = handler - } - return r -} - -// HandlerFunc sets a handler function for the route. -func (r *Route) HandlerFunc(f func(http.ResponseWriter, *http.Request)) *Route { - return r.Handler(http.HandlerFunc(f)) -} - -// GetHandler returns the handler for the route, if any. -func (r *Route) GetHandler() http.Handler { - return r.handler -} - -// Name ----------------------------------------------------------------------- - -// Name sets the name for the route, used to build URLs. -// It is an error to call Name more than once on a route. -func (r *Route) Name(name string) *Route { - if r.name != "" { - r.err = fmt.Errorf("mux: route already has name %q, can't set %q", - r.name, name) - } - if r.err == nil { - r.name = name - r.namedRoutes[name] = r - } - return r -} - -// GetName returns the name for the route, if any. -func (r *Route) GetName() string { - return r.name -} - -// ---------------------------------------------------------------------------- -// Matchers -// ---------------------------------------------------------------------------- - -// matcher types try to match a request. -type matcher interface { - Match(*http.Request, *RouteMatch) bool -} - -// addMatcher adds a matcher to the route. -func (r *Route) addMatcher(m matcher) *Route { - if r.err == nil { - r.matchers = append(r.matchers, m) - } - return r -} - -// addRegexpMatcher adds a host or path matcher and builder to a route. -func (r *Route) addRegexpMatcher(tpl string, typ regexpType) error { - if r.err != nil { - return r.err - } - if typ == regexpTypePath || typ == regexpTypePrefix { - if len(tpl) > 0 && tpl[0] != '/' { - return fmt.Errorf("mux: path must start with a slash, got %q", tpl) - } - if r.regexp.path != nil { - tpl = strings.TrimRight(r.regexp.path.template, "/") + tpl - } - } - rr, err := newRouteRegexp(tpl, typ, routeRegexpOptions{ - strictSlash: r.strictSlash, - useEncodedPath: r.useEncodedPath, - }) - if err != nil { - return err - } - for _, q := range r.regexp.queries { - if err = uniqueVars(rr.varsN, q.varsN); err != nil { - return err - } - } - if typ == regexpTypeHost { - if r.regexp.path != nil { - if err = uniqueVars(rr.varsN, r.regexp.path.varsN); err != nil { - return err - } - } - r.regexp.host = rr - } else { - if r.regexp.host != nil { - if err = uniqueVars(rr.varsN, r.regexp.host.varsN); err != nil { - return err - } - } - if typ == regexpTypeQuery { - r.regexp.queries = append(r.regexp.queries, rr) - } else { - r.regexp.path = rr - } - } - r.addMatcher(rr) - return nil -} - -// Headers -------------------------------------------------------------------- - -// headerMatcher matches the request against header values. -type headerMatcher map[string]string - -func (m headerMatcher) Match(r *http.Request, match *RouteMatch) bool { - return matchMapWithString(m, r.Header, true) -} - -// Headers adds a matcher for request header values. -// It accepts a sequence of key/value pairs to be matched. For example: -// -// r := mux.NewRouter() -// r.Headers("Content-Type", "application/json", -// "X-Requested-With", "XMLHttpRequest") -// -// The above route will only match if both request header values match. -// If the value is an empty string, it will match any value if the key is set. -func (r *Route) Headers(pairs ...string) *Route { - if r.err == nil { - var headers map[string]string - headers, r.err = mapFromPairsToString(pairs...) - return r.addMatcher(headerMatcher(headers)) - } - return r -} - -// headerRegexMatcher matches the request against the route given a regex for the header -type headerRegexMatcher map[string]*regexp.Regexp - -func (m headerRegexMatcher) Match(r *http.Request, match *RouteMatch) bool { - return matchMapWithRegex(m, r.Header, true) -} - -// HeadersRegexp accepts a sequence of key/value pairs, where the value has regex -// support. For example: -// -// r := mux.NewRouter() -// r.HeadersRegexp("Content-Type", "application/(text|json)", -// "X-Requested-With", "XMLHttpRequest") -// -// The above route will only match if both the request header matches both regular expressions. -// If the value is an empty string, it will match any value if the key is set. -// Use the start and end of string anchors (^ and $) to match an exact value. -func (r *Route) HeadersRegexp(pairs ...string) *Route { - if r.err == nil { - var headers map[string]*regexp.Regexp - headers, r.err = mapFromPairsToRegex(pairs...) - return r.addMatcher(headerRegexMatcher(headers)) - } - return r -} - -// Host ----------------------------------------------------------------------- - -// Host adds a matcher for the URL host. -// It accepts a template with zero or more URL variables enclosed by {}. -// Variables can define an optional regexp pattern to be matched: -// -// - {name} matches anything until the next dot. -// -// - {name:pattern} matches the given regexp pattern. -// -// For example: -// -// r := mux.NewRouter() -// r.Host("www.example.com") -// r.Host("{subdomain}.domain.com") -// r.Host("{subdomain:[a-z]+}.domain.com") -// -// Variable names must be unique in a given route. They can be retrieved -// calling mux.Vars(request). -func (r *Route) Host(tpl string) *Route { - r.err = r.addRegexpMatcher(tpl, regexpTypeHost) - return r -} - -// MatcherFunc ---------------------------------------------------------------- - -// MatcherFunc is the function signature used by custom matchers. -type MatcherFunc func(*http.Request, *RouteMatch) bool - -// Match returns the match for a given request. -func (m MatcherFunc) Match(r *http.Request, match *RouteMatch) bool { - return m(r, match) -} - -// MatcherFunc adds a custom function to be used as request matcher. -func (r *Route) MatcherFunc(f MatcherFunc) *Route { - return r.addMatcher(f) -} - -// Methods -------------------------------------------------------------------- - -// methodMatcher matches the request against HTTP methods. -type methodMatcher []string - -func (m methodMatcher) Match(r *http.Request, match *RouteMatch) bool { - return matchInArray(m, r.Method) -} - -// Methods adds a matcher for HTTP methods. -// It accepts a sequence of one or more methods to be matched, e.g.: -// "GET", "POST", "PUT". -func (r *Route) Methods(methods ...string) *Route { - for k, v := range methods { - methods[k] = strings.ToUpper(v) - } - return r.addMatcher(methodMatcher(methods)) -} - -// Path ----------------------------------------------------------------------- - -// Path adds a matcher for the URL path. -// It accepts a template with zero or more URL variables enclosed by {}. The -// template must start with a "/". -// Variables can define an optional regexp pattern to be matched: -// -// - {name} matches anything until the next slash. -// -// - {name:pattern} matches the given regexp pattern. -// -// For example: -// -// r := mux.NewRouter() -// r.Path("/products/").Handler(ProductsHandler) -// r.Path("/products/{key}").Handler(ProductsHandler) -// r.Path("/articles/{category}/{id:[0-9]+}"). -// Handler(ArticleHandler) -// -// Variable names must be unique in a given route. They can be retrieved -// calling mux.Vars(request). -func (r *Route) Path(tpl string) *Route { - r.err = r.addRegexpMatcher(tpl, regexpTypePath) - return r -} - -// PathPrefix ----------------------------------------------------------------- - -// PathPrefix adds a matcher for the URL path prefix. This matches if the given -// template is a prefix of the full URL path. See Route.Path() for details on -// the tpl argument. -// -// Note that it does not treat slashes specially ("/foobar/" will be matched by -// the prefix "/foo") so you may want to use a trailing slash here. -// -// Also note that the setting of Router.StrictSlash() has no effect on routes -// with a PathPrefix matcher. -func (r *Route) PathPrefix(tpl string) *Route { - r.err = r.addRegexpMatcher(tpl, regexpTypePrefix) - return r -} - -// Query ---------------------------------------------------------------------- - -// Queries adds a matcher for URL query values. -// It accepts a sequence of key/value pairs. Values may define variables. -// For example: -// -// r := mux.NewRouter() -// r.Queries("foo", "bar", "id", "{id:[0-9]+}") -// -// The above route will only match if the URL contains the defined queries -// values, e.g.: ?foo=bar&id=42. -// -// If the value is an empty string, it will match any value if the key is set. -// -// Variables can define an optional regexp pattern to be matched: -// -// - {name} matches anything until the next slash. -// -// - {name:pattern} matches the given regexp pattern. -func (r *Route) Queries(pairs ...string) *Route { - length := len(pairs) - if length%2 != 0 { - r.err = fmt.Errorf( - "mux: number of parameters must be multiple of 2, got %v", pairs) - return nil - } - for i := 0; i < length; i += 2 { - if r.err = r.addRegexpMatcher(pairs[i]+"="+pairs[i+1], regexpTypeQuery); r.err != nil { - return r - } - } - - return r -} - -// Schemes -------------------------------------------------------------------- - -// schemeMatcher matches the request against URL schemes. -type schemeMatcher []string - -func (m schemeMatcher) Match(r *http.Request, match *RouteMatch) bool { - return matchInArray(m, r.URL.Scheme) -} - -// Schemes adds a matcher for URL schemes. -// It accepts a sequence of schemes to be matched, e.g.: "http", "https". -func (r *Route) Schemes(schemes ...string) *Route { - for k, v := range schemes { - schemes[k] = strings.ToLower(v) - } - if len(schemes) > 0 { - r.buildScheme = schemes[0] - } - return r.addMatcher(schemeMatcher(schemes)) -} - -// BuildVarsFunc -------------------------------------------------------------- - -// BuildVarsFunc is the function signature used by custom build variable -// functions (which can modify route variables before a route's URL is built). -type BuildVarsFunc func(map[string]string) map[string]string - -// BuildVarsFunc adds a custom function to be used to modify build variables -// before a route's URL is built. -func (r *Route) BuildVarsFunc(f BuildVarsFunc) *Route { - if r.buildVarsFunc != nil { - // compose the old and new functions - old := r.buildVarsFunc - r.buildVarsFunc = func(m map[string]string) map[string]string { - return f(old(m)) - } - } else { - r.buildVarsFunc = f - } - return r -} - -// Subrouter ------------------------------------------------------------------ - -// Subrouter creates a subrouter for the route. -// -// It will test the inner routes only if the parent route matched. For example: -// -// r := mux.NewRouter() -// s := r.Host("www.example.com").Subrouter() -// s.HandleFunc("/products/", ProductsHandler) -// s.HandleFunc("/products/{key}", ProductHandler) -// s.HandleFunc("/articles/{category}/{id:[0-9]+}"), ArticleHandler) -// -// Here, the routes registered in the subrouter won't be tested if the host -// doesn't match. -func (r *Route) Subrouter() *Router { - // initialize a subrouter with a copy of the parent route's configuration - router := &Router{routeConf: copyRouteConf(r.routeConf), namedRoutes: r.namedRoutes} - r.addMatcher(router) - return router -} - -// ---------------------------------------------------------------------------- -// URL building -// ---------------------------------------------------------------------------- - -// URL builds a URL for the route. -// -// It accepts a sequence of key/value pairs for the route variables. For -// example, given this route: -// -// r := mux.NewRouter() -// r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler). -// Name("article") -// -// ...a URL for it can be built using: -// -// url, err := r.Get("article").URL("category", "technology", "id", "42") -// -// ...which will return an url.URL with the following path: -// -// "/articles/technology/42" -// -// This also works for host variables: -// -// r := mux.NewRouter() -// r.Host("{subdomain}.domain.com"). -// HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler). -// Name("article") -// -// // url.String() will be "http://news.domain.com/articles/technology/42" -// url, err := r.Get("article").URL("subdomain", "news", -// "category", "technology", -// "id", "42") -// -// All variables defined in the route are required, and their values must -// conform to the corresponding patterns. -func (r *Route) URL(pairs ...string) (*url.URL, error) { - if r.err != nil { - return nil, r.err - } - values, err := r.prepareVars(pairs...) - if err != nil { - return nil, err - } - var scheme, host, path string - queries := make([]string, 0, len(r.regexp.queries)) - if r.regexp.host != nil { - if host, err = r.regexp.host.url(values); err != nil { - return nil, err - } - scheme = "http" - if r.buildScheme != "" { - scheme = r.buildScheme - } - } - if r.regexp.path != nil { - if path, err = r.regexp.path.url(values); err != nil { - return nil, err - } - } - for _, q := range r.regexp.queries { - var query string - if query, err = q.url(values); err != nil { - return nil, err - } - queries = append(queries, query) - } - return &url.URL{ - Scheme: scheme, - Host: host, - Path: path, - RawQuery: strings.Join(queries, "&"), - }, nil -} - -// URLHost builds the host part of the URL for a route. See Route.URL(). -// -// The route must have a host defined. -func (r *Route) URLHost(pairs ...string) (*url.URL, error) { - if r.err != nil { - return nil, r.err - } - if r.regexp.host == nil { - return nil, errors.New("mux: route doesn't have a host") - } - values, err := r.prepareVars(pairs...) - if err != nil { - return nil, err - } - host, err := r.regexp.host.url(values) - if err != nil { - return nil, err - } - u := &url.URL{ - Scheme: "http", - Host: host, - } - if r.buildScheme != "" { - u.Scheme = r.buildScheme - } - return u, nil -} - -// URLPath builds the path part of the URL for a route. See Route.URL(). -// -// The route must have a path defined. -func (r *Route) URLPath(pairs ...string) (*url.URL, error) { - if r.err != nil { - return nil, r.err - } - if r.regexp.path == nil { - return nil, errors.New("mux: route doesn't have a path") - } - values, err := r.prepareVars(pairs...) - if err != nil { - return nil, err - } - path, err := r.regexp.path.url(values) - if err != nil { - return nil, err - } - return &url.URL{ - Path: path, - }, nil -} - -// GetPathTemplate returns the template used to build the -// route match. -// This is useful for building simple REST API documentation and for instrumentation -// against third-party services. -// An error will be returned if the route does not define a path. -func (r *Route) GetPathTemplate() (string, error) { - if r.err != nil { - return "", r.err - } - if r.regexp.path == nil { - return "", errors.New("mux: route doesn't have a path") - } - return r.regexp.path.template, nil -} - -// GetPathRegexp returns the expanded regular expression used to match route path. -// This is useful for building simple REST API documentation and for instrumentation -// against third-party services. -// An error will be returned if the route does not define a path. -func (r *Route) GetPathRegexp() (string, error) { - if r.err != nil { - return "", r.err - } - if r.regexp.path == nil { - return "", errors.New("mux: route does not have a path") - } - return r.regexp.path.regexp.String(), nil -} - -// GetQueriesRegexp returns the expanded regular expressions used to match the -// route queries. -// This is useful for building simple REST API documentation and for instrumentation -// against third-party services. -// An error will be returned if the route does not have queries. -func (r *Route) GetQueriesRegexp() ([]string, error) { - if r.err != nil { - return nil, r.err - } - if r.regexp.queries == nil { - return nil, errors.New("mux: route doesn't have queries") - } - var queries []string - for _, query := range r.regexp.queries { - queries = append(queries, query.regexp.String()) - } - return queries, nil -} - -// GetQueriesTemplates returns the templates used to build the -// query matching. -// This is useful for building simple REST API documentation and for instrumentation -// against third-party services. -// An error will be returned if the route does not define queries. -func (r *Route) GetQueriesTemplates() ([]string, error) { - if r.err != nil { - return nil, r.err - } - if r.regexp.queries == nil { - return nil, errors.New("mux: route doesn't have queries") - } - var queries []string - for _, query := range r.regexp.queries { - queries = append(queries, query.template) - } - return queries, nil -} - -// GetMethods returns the methods the route matches against -// This is useful for building simple REST API documentation and for instrumentation -// against third-party services. -// An error will be returned if route does not have methods. -func (r *Route) GetMethods() ([]string, error) { - if r.err != nil { - return nil, r.err - } - for _, m := range r.matchers { - if methods, ok := m.(methodMatcher); ok { - return []string(methods), nil - } - } - return nil, errors.New("mux: route doesn't have methods") -} - -// GetHostTemplate returns the template used to build the -// route match. -// This is useful for building simple REST API documentation and for instrumentation -// against third-party services. -// An error will be returned if the route does not define a host. -func (r *Route) GetHostTemplate() (string, error) { - if r.err != nil { - return "", r.err - } - if r.regexp.host == nil { - return "", errors.New("mux: route doesn't have a host") - } - return r.regexp.host.template, nil -} - -// prepareVars converts the route variable pairs into a map. If the route has a -// BuildVarsFunc, it is invoked. -func (r *Route) prepareVars(pairs ...string) (map[string]string, error) { - m, err := mapFromPairsToString(pairs...) - if err != nil { - return nil, err - } - return r.buildVars(m), nil -} - -func (r *Route) buildVars(m map[string]string) map[string]string { - if r.buildVarsFunc != nil { - m = r.buildVarsFunc(m) - } - return m -} diff --git a/vendor/github.com/gorilla/mux/test_helpers.go b/vendor/github.com/gorilla/mux/test_helpers.go deleted file mode 100644 index 32ecffde4..000000000 --- a/vendor/github.com/gorilla/mux/test_helpers.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2012 The Gorilla Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mux - -import "net/http" - -// SetURLVars sets the URL variables for the given request, to be accessed via -// mux.Vars for testing route behaviour. Arguments are not modified, a shallow -// copy is returned. -// -// This API should only be used for testing purposes; it provides a way to -// inject variables into the request context. Alternatively, URL variables -// can be set by making a route that captures the required variables, -// starting a server and sending the request to that server. -func SetURLVars(r *http.Request, val map[string]string) *http.Request { - return setVars(r, val) -} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors/ErrorsPackageTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors/ErrorsPackageTypes.go index c7252ecd6..d8427e6e7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors/ErrorsPackageTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors/ErrorsPackageTypes.go @@ -14,9 +14,9 @@ package errors import ( "reflect" - "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std" "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" "github.com/vmware/vsphere-automation-sdk-go/runtime/data" + "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std" ) @@ -976,7 +976,7 @@ func (Unsupported Unsupported) Error() string { // The ``UnverifiedPeer`` exception indicates that an attempt to connect to an unknown or not-yet-trusted endpoint failed because the system was unable to verify the identity of the endpoint. // -// Typically the {Error#data property of this error will contain information that can be presented to a human to allow them to decide whether to trust the endpoint. If they decide to trust the endpoint, the request can be resubmitted with an indication that the endpoint should be trusted. +// Typically the Error#data property of this error will contain information that can be presented to a human to allow them to decide whether to trust the endpoint. If they decide to trust the endpoint, the request can be resubmitted with an indication that the endpoint should be trusted. // // Examples: // diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/GolangToRestDataValueVisitor.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/GolangToRestDataValueVisitor.go index c4561b93d..2a476369b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/GolangToRestDataValueVisitor.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/GolangToRestDataValueVisitor.go @@ -152,7 +152,7 @@ func (g *GolangToRestVisitor) visitBlobType() []error { func (g *GolangToRestVisitor) visitDateTimeType() []error { if t1, ok := g.inValue.(time.Time); ok { - stringValue := data.NewStringValue(t1.Format(time.RFC3339)) + stringValue := data.NewStringValue(t1.Format(VAPI_DATETIME_LAYOUT)) g.outValue = stringValue return nil } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/RestToGolangVisitor.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/RestToGolangVisitor.go index 1808db097..0cc723eaf 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/RestToGolangVisitor.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/RestToGolangVisitor.go @@ -3,18 +3,18 @@ package bindings - import ( "encoding/base64" "fmt" - "github.com/vmware/vsphere-automation-sdk-go/runtime/data" - "github.com/vmware/vsphere-automation-sdk-go/runtime/l10n" - "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" - "github.com/vmware/vsphere-automation-sdk-go/runtime/log" "net/url" "reflect" "strconv" "time" + + "github.com/vmware/vsphere-automation-sdk-go/runtime/data" + "github.com/vmware/vsphere-automation-sdk-go/runtime/l10n" + "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" + "github.com/vmware/vsphere-automation-sdk-go/runtime/log" ) // Visitor to convert from RestNative DataValue to Golang native value @@ -385,6 +385,13 @@ func (v *RestToGolangVisitor) setIntegerType(value reflect.Value) []error { x := integerValue.Value() value.Elem().Set(reflect.ValueOf(x)) return nil + } else if strValue, ok := v.inValue.(*data.StringValue); ok { + // If string value passed check if it can be converted to integer + i, err := strconv.ParseInt(strValue.Value(), 10, 64) + if err == nil { + value.Elem().Set(reflect.ValueOf(i)) + return nil + } } return v.unexpectedValueError("IntegerValue") } @@ -482,11 +489,18 @@ func (v *RestToGolangVisitor) setDateTimeType(value reflect.Value) []error { val := value.Elem() if stringValue, ok := v.inValue.(*data.StringValue); ok { x := stringValue.Value() - t, err := time.Parse(time.RFC3339, x) + datetime_layout := RFC3339Nano_DATETIME_LAYOUT + datetime, err := time.Parse(datetime_layout, x) if err != nil { return []error{l10n.NewRuntimeError("vapi.bindings.typeconverter.datetime.invalid", - map[string]string{"dateTime": x, "vapiFormat": "RFC3339", "errorMessage": err.Error()})} + map[string]string{"dateTime": x, "vapiFormat": datetime_layout, "errorMessage": err.Error()})} } + restDatetimeStr := datetime.UTC().Format(VAPI_DATETIME_LAYOUT) + + // In above line, we are converting Format of time which is in RFC3339Nano to VAPI layout but it gives back a string. + // so we need to parse it from resulted string restDatetimeStr, Now we are already aware that restDatetimeStr is in + // format compliant with VAPI_DATEIME_LAYOUT hence error handling is not required. + t, _ := time.Parse(VAPI_DATETIME_LAYOUT, restDatetimeStr) val.Set(reflect.ValueOf(t)) return nil } @@ -577,10 +591,13 @@ func (v *RestToGolangVisitor) setErrorType(typ ErrorType, optional bool, outputP } output := outputPtr.Elem() var errorValue *data.ErrorValue = nil - if errorDataValue, ok := v.inValue.(*data.ErrorValue); !ok { - return v.unexpectedValueError("ErrorValue") - } else { + + if errorDataValue, ok := v.inValue.(*data.ErrorValue); ok { errorValue = errorDataValue + } else if structValue, ok := v.inValue.(*data.StructValue); ok { + errorValue = data.NewErrorValue(structValue.Name(), structValue.Fields()) + } else { + return v.unexpectedValueError("ErrorValue") } for _, fieldName := range typ.FieldNames() { var field = output.FieldByName(typ.canonicalFieldMap[fieldName]) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/constants.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/constants.go index 93be7349d..e5e5bc371 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/constants.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/bindings/constants.go @@ -6,11 +6,14 @@ package bindings import ( "github.com/vmware/vsphere-automation-sdk-go/runtime/data" "reflect" + "time" ) // the layout numbers used in parse function have specific meanings. // they are not random. refer here for more. -// https://golang.org/src/time/format.go +// https://golang.org/src/time/format.go ## 2006-01-02T15:04:05.999999999Z07:00 +const RFC3339Nano_DATETIME_LAYOUT = time.RFC3339Nano + const VAPI_DATETIME_LAYOUT = "2006-01-02T15:04:05.000Z" var IntegerBindingType = reflect.TypeOf(IntegerType{}) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/ExecutionContext.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/ExecutionContext.go index 594edda27..35e974004 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/ExecutionContext.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/ExecutionContext.go @@ -1,4 +1,4 @@ -/* Copyright © 2019 VMware, Inc. All Rights Reserved. +/* Copyright © 2019-2020 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause */ package core @@ -6,11 +6,13 @@ package core import ( "github.com/vmware/vsphere-automation-sdk-go/runtime/l10n" "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" + "golang.org/x/net/context" ) type ExecutionContext struct { securityContext SecurityContext applicationContext *ApplicationContext + ctx context.Context } func NewExecutionContext(applicationContext *ApplicationContext, securityContext SecurityContext) *ExecutionContext { @@ -21,6 +23,16 @@ func NewExecutionContext(applicationContext *ApplicationContext, securityContext return &ExecutionContext{applicationContext: applicationContext, securityContext: securityContext} } +// Set request context +func (e *ExecutionContext) WithContext(ctx context.Context) { + e.ctx = ctx +} + +// Get request context +func (e *ExecutionContext) Context() context.Context { + return e.ctx +} + func (e *ExecutionContext) SecurityContext() SecurityContext { return e.securityContext } @@ -41,10 +53,10 @@ func (ctx *ExecutionContext) GetMessageFormatter(m l10n.LocalizableMessageFactor } applicationCtx := ctx.ApplicationContext() - formatter,_ := m.GetFormatterForLocalizationParams( + formatter, _ := m.GetFormatterForLocalizationParams( applicationCtx.GetProperty(lib.HTTP_ACCEPT_LANGUAGE), applicationCtx.GetProperty(lib.VAPI_L10N_FORMAT_LOCALE), applicationCtx.GetProperty(lib.VAPI_L10N_TIMEZONE)) - return formatter,nil + return formatter, nil } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/MethodResult.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/MethodResult.go index 13dec9740..59aa6a212 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/MethodResult.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/core/MethodResult.go @@ -8,8 +8,10 @@ import ( ) type MethodResult struct { - output data.DataValue - error *data.ErrorValue + output data.DataValue + error *data.ErrorValue + responseStream chan MethodResult + isResponseStream bool } func NewMethodResult(output data.DataValue, error *data.ErrorValue) MethodResult { @@ -25,3 +27,24 @@ func (methodResult MethodResult) Error() *data.ErrorValue { func (methodResult MethodResult) IsSuccess() bool { return methodResult.error == (*data.ErrorValue)(nil) } + +func (methodResult MethodResult) IsResponseStream() bool { + return methodResult.isResponseStream +} + +func (methodResult MethodResult) ResponseStream() chan MethodResult { + return methodResult.responseStream +} + +func (methodResult *MethodResult) SetResponseStream(responseStream chan MethodResult) { + methodResult.responseStream = responseStream + methodResult.isResponseStream = true +} + +func (methodResult *MethodResult) SetOutput(output data.DataValue) { + methodResult.output = output +} + +func (methodResult *MethodResult) SetError(error *data.ErrorValue) { + methodResult.error = error +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson/DataValueToJsonEncoder.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson/DataValueToJsonEncoder.go index ef15d4837..4a915a170 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson/DataValueToJsonEncoder.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson/DataValueToJsonEncoder.go @@ -3,16 +3,17 @@ package cleanjson - import ( + "bytes" "encoding/base64" "encoding/json" "fmt" - "github.com/vmware/vsphere-automation-sdk-go/runtime/data" - "github.com/vmware/vsphere-automation-sdk-go/runtime/l10n" "reflect" "strconv" "strings" + + "github.com/vmware/vsphere-automation-sdk-go/runtime/data" + "github.com/vmware/vsphere-automation-sdk-go/runtime/l10n" ) // Serializes DataValue to clean json. @@ -28,7 +29,7 @@ func (d *DataValueToJsonEncoder) Encode(val interface{}) (string, error) { if err != nil { return "", err } - jsonBytes, err := json.Marshal(marshaller) + jsonBytes, err := jsonMarshallDisableEscapeHTML(marshaller) if err != nil { marshallError := l10n.NewRuntimeError("vapi.data.serializers.json.marshall.error", map[string]string{"errorMessage": err.Error()}) @@ -105,7 +106,7 @@ func (svs *StructValueSerializer) MarshalJSON() ([]byte, error) { var items = make(map[string]interface{}) for key, val := range svs.structValue.Fields() { // Do not serialize empty optional value - if isNilOrEmptyOptionalValue(val) { + if isEmptyOptionalValue(val) { continue } @@ -127,7 +128,7 @@ func NewStringValueSerializer(value *data.StringValue) *StringValueSerializer { } func (svs *StringValueSerializer) MarshalJSON() ([]byte, error) { - return json.Marshal(svs.stringValue.Value()) + return jsonMarshallDisableEscapeHTML(svs.stringValue.Value()) } type IntegerValueSerializer struct { @@ -172,10 +173,6 @@ type ListValueSerializer struct { func (lvs *ListValueSerializer) MarshalJSON() ([]byte, error) { result := make([]interface{}, 0) for _, element := range lvs.listValue.List() { - // Do not serialize empty optional value - if isNilOrEmptyOptionalValue(element) { - continue - } var serializer, err = getSerializer(element) if err != nil { @@ -217,7 +214,7 @@ func (evs *ErrorValueSerializer) MarshalJSON() ([]byte, error) { var items = make(map[string]interface{}) for key, val := range evs.errorValue.Fields() { // Do not serialize empty optional value - if isNilOrEmptyOptionalValue(val) { + if isEmptyOptionalValue(val) { continue } var err error @@ -255,10 +252,7 @@ func NewBooleanValueSerializer(value *data.BooleanValue) *BooleanValueSerializer return &BooleanValueSerializer{booleanValue: value} } -func isNilOrEmptyOptionalValue(val data.DataValue) bool { - if val == nil { - return true - } +func isEmptyOptionalValue(val data.DataValue) bool { if optVal, ok := val.(*data.OptionalValue); ok { if !optVal.IsSet() { return true @@ -266,3 +260,20 @@ func isNilOrEmptyOptionalValue(val data.DataValue) bool { } return false } + +// custom Json Marshal to escape HTML values +func jsonMarshallDisableEscapeHTML(t interface{}) ([]byte, error) { + buffer := &bytes.Buffer{} + encoder := json.NewEncoder(buffer) + encoder.SetEscapeHTML(false) + err := encoder.Encode(t) + if err != nil { + return []byte{}, err + } + + // explicitly trim trailing '\n', this is required because setEscapeHtml is set to false + s := string(buffer.Bytes()) + res := strings.TrimSuffix(s, "\n") + + return []byte(res), err +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/RequestProcessor.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/RequestProcessor.go new file mode 100644 index 000000000..c628ad839 --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/RequestProcessor.go @@ -0,0 +1,10 @@ +/* Copyright © 2020 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +package rest + +import "net/http" + +type RequestProcessor interface { + Process(*http.Request) error +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/RequestSerializer.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/RequestSerializer.go index 934a85551..6a3455123 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/RequestSerializer.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/RequestSerializer.go @@ -1,13 +1,13 @@ -/* Copyright © 2019 VMware, Inc. All Rights Reserved. +/* Copyright © 2019, 2020 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause */ package rest - - import ( "encoding/base64" + "errors" "fmt" + "net/url" "reflect" "strconv" "strings" @@ -17,6 +17,7 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/runtime/data" "github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson" "github.com/vmware/vsphere-automation-sdk-go/runtime/l10n" + "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" "github.com/vmware/vsphere-automation-sdk-go/runtime/log" "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol" "github.com/vmware/vsphere-automation-sdk-go/runtime/security" @@ -24,11 +25,11 @@ import ( type Request struct { urlPath string - inputHeaders map[string]string + inputHeaders map[string][]string requestBody string } -func NewRequest(urlPath string, inputHeaders map[string]string, requestBody string) *Request { +func NewRequest(urlPath string, inputHeaders map[string][]string, requestBody string) *Request { return &Request{urlPath: urlPath, inputHeaders: inputHeaders, requestBody: requestBody} } @@ -40,14 +41,19 @@ func (result *Request) SetURLPath(path string) { result.urlPath = path } -func (result *Request) InputHeaders() map[string]string { +func (result *Request) InputHeaders() map[string][]string { return result.inputHeaders } -func (result *Request) SetInputHeaders(headers map[string]string) { +func (result *Request) setInputHeaders(headers map[string]interface{}) error { for k, v := range headers { - result.inputHeaders[k] = v + if strV, ok := v.(string); ok { + result.inputHeaders[k] = []string{strV} + } else { + return fmt.Errorf("Expected a string value, but received %s", reflect.TypeOf(v)) + } } + return nil } func (result *Request) RequestBody() string { @@ -58,6 +64,7 @@ func (result *Request) SetRequestBody(body string) { result.requestBody = body } +// Deprecated: Use SerializeRequestsWithSecCtxSerializers() instead. // SerializeRequests serializes a request as a REST request // Return Request with urlPath, inputHeaders and requestBody func SerializeRequests(inputValue *data.StructValue, ctx *core.ExecutionContext, @@ -76,15 +83,64 @@ func SerializeRequests(inputValue *data.StructValue, ctx *core.ExecutionContext, if err != nil { return nil, err } - result.SetInputHeaders(authzHeaders) + if err = result.setInputHeaders(authzHeaders); err != nil { + return nil, err + } + + return result, nil +} + +// SerializeRequestsWithSecCtxSerializers serializes a request into a REST request +// Return Request with urlPath, inputHeaders and requestBody +func SerializeRequestsWithSecCtxSerializers(inputValue *data.StructValue, execCtx *core.ExecutionContext, + metadata *protocol.OperationRestMetadata, secCtxSerializer SecurityContextSerializer) (*Request, error) { + result, err := SerializeInput(inputValue, metadata) + if err != nil { + log.Error(err) + return result, err + } + + var secCtx core.SecurityContext + if execCtx != nil { + secCtx = execCtx.SecurityContext() + } + + var authzHeaders map[string]interface{} + if secCtx != nil && secCtxSerializer != nil { + authzHeaders, err = secCtxSerializer.Serialize(secCtx) + if err != nil { + log.Error(err) + return nil, err + } + } + + if err = result.setInputHeaders(authzHeaders); err != nil { + return nil, err + } return result, nil } -func createParamsFieldMap( inputValue *data.StructValue, fieldsMapBindingtype map[string]bindings.BindingType, fieldNamesMap map[string]string) (map[string]string, error) { - fields := map[string]string{} +func createParamsFieldMap(inputValue *data.StructValue, fieldsMapBindingtype map[string]bindings.BindingType, fieldNamesMap map[string]string) (map[string][]string, error) { + fields := map[string][]string{} + dataValueToJSONEncoder := cleanjson.NewDataValueToJsonEncoder() for field, fieldName := range fieldNamesMap { - if val, err := getNestedParams(field, inputValue, fieldsMapBindingtype); err == nil { + val, err := getNestedParams(field, inputValue, fieldsMapBindingtype) + if err != nil { + log.Debugf("Error in request serialization: %s ", err.Error()) + return nil, err + } + if reflect.TypeOf(val) == data.ListValuePtr { + temp := []string{} + for _, e := range val.(*data.ListValue).List() { + elem, err := unquote(dataValueToJSONEncoder.Encode(e)) + if err != nil { + return nil, err + } + temp = append(temp, elem) + } + fields[fieldName] = temp + } else { fields, err = replaceFieldValue(fields, fieldName, val) if err != nil { return nil, err @@ -103,7 +159,6 @@ func SerializeInput(inputValue *data.StructValue, metadata *protocol.OperationRe var requestBodyInputValue data.DataValue var err error - var bodyfieldAnnotations bool = false fieldsMapBindingtype := metadata.Fields() @@ -112,12 +167,11 @@ func SerializeInput(inputValue *data.StructValue, metadata *protocol.OperationRe if requestBodyParam != "" { requestBodyInputValue, err = getNestedParams(requestBodyParam, inputValue, fieldsMapBindingtype) if err != nil { - log.Debugf("Body Param was not found, Error: %s ", err) + log.Errorf("Error serializing Body Param, : %s ", err) return nil, err } } else { requestBodyInputValue = data.NewStructValue(inputValue.Name(), map[string]data.DataValue{}) - bodyfieldAnnotations = true } // Add @Path Fields @@ -132,6 +186,20 @@ func SerializeInput(inputValue *data.StructValue, metadata *protocol.OperationRe return nil, err } + // Add dispatch Header Fields + dispatchHeaders := metadata.DispatchHeaderParams() + for k, value := range dispatchHeaders { + if _, ok := headerFields[k]; !ok || value != "" { + headerFields[k] = []string{value} + } + } + + // Update Content-Type if consumes is provided + consumes := metadata.OperationConsumes() + if consumes != "" { + headerFields["Content-Type"] = []string{consumes} + } + // Add @Query Fields queryFields, err := createParamsFieldMap(inputValue, fieldsMapBindingtype, metadata.QueryParamsNameMap()) if err != nil { @@ -139,45 +207,78 @@ func SerializeInput(inputValue *data.StructValue, metadata *protocol.OperationRe } // Add @BodyField Fields - if bodyfieldAnnotations { - requestFields := requestBodyInputValue.(*data.StructValue).FieldNames() - for field, _ := range metadata.FieldNameMap() { - if stringInSlice(field, requestFields) { - continue - } else if val, err := inputValue.Field(field); err == nil { - requestBodyInputValue.(*data.StructValue).SetField(field, val) - } else { - log.Error("Input datavalue doesn't contain BodyField %s which is required ", field) - } + bodyFieldsMap := metadata.BodyFieldsMap() + for fieldName, paramName := range bodyFieldsMap { + if val, err := inputValue.Field(paramName); err == nil { + // BodyField wrapper will also be a StructValue type + requestBodyInputValue.(*data.StructValue).SetField(fieldName, val) + } else { + log.Error("Input datavalue doesn't contain BodyField %s which is required ", paramName) } } dataValueToJSONEncoder := cleanjson.NewDataValueToJsonEncoder() - requestBodyStr, err := dataValueToJSONEncoder.Encode(requestBodyInputValue) - if err != nil { - return nil, err + + var requestBodyStr string + if consumes == lib.FORM_URL_CONTENT_TYPE { + formURLBody, err := encodeDataValueToFormURL(requestBodyInputValue, dataValueToJSONEncoder) + if err != nil { + return nil, err + } else if formURLBody != nil { + requestBodyStr = *formURLBody + } + } else { + requestBodyStr, err = dataValueToJSONEncoder.Encode(requestBodyInputValue) + if err != nil { + return nil, err + } + } + /** + * ref: https://golang.org/pkg/encoding/json/#Marshal + * A nil pointer encodes as the null JSON value + */ + if requestBodyStr == "null" { + requestBodyStr = "" } - urlPath := metadata.GetUrlPath(pathFields, queryFields, metadata.DispatchParam()) + // Process dispatch query param + dispatchParams := queryEscapeDispatchParams(metadata.DispatchParam(), queryFields) + + urlPath := metadata.GetUrlPath(pathFields, queryFields, dispatchParams) return NewRequest(urlPath, headerFields, requestBodyStr), nil } -func stringInSlice(a string, list []string) bool { - for _, b := range list { - if b == a { - return true - } - } - return false +func queryEscapeDispatchParams(dispatchParamsStr string, queryFields map[string][]string) string { + dispatchParams := []string{} + for _, p := range strings.Split(dispatchParamsStr, "&") { + dispatchList := strings.Split(p, "=") + temp := []string{} + k := dispatchList[0] + + /** + * Added to handle allowed characters + * example: where `=` can be part of the value + * https://opengrok.eng.vmware.com/source/xref/vapi-main.perforce.1666/vapi-core/idl-toolkit/vmodl-models/src/dist/models/test/vmodl/rest-native/VerbParams.vmodl#109 + */ + for _, v := range dispatchList { + temp = append(temp, url.QueryEscape(v)) + } + + // Add it to url only if key doesnt exist in query field + if _, ok := queryFields[k]; !ok { + dispatchParams = append(dispatchParams, strings.Join(temp, "=")) + } + } + return strings.Join(dispatchParams, "&") } -func replaceFieldValue(fields map[string]string, fieldName string, fieldValue data.DataValue) (map[string]string, error) { +func replaceFieldValue(fields map[string][]string, fieldName string, fieldValue data.DataValue) (map[string][]string, error) { fieldStr, err := convertDataValueToString(fieldValue) if err != nil { return nil, err } if fieldStr != "" { - fields[fieldName] = fieldStr + fields[fieldName] = []string{fieldStr} } return fields, nil } @@ -204,8 +305,6 @@ func convertDataValueToString(dataValue data.DataValue) (string, error) { return unquote(dataValueToJSONEncoder.Encode(dataValue)) case data.SecretValuePtr: return unquote(dataValueToJSONEncoder.Encode(dataValue)) - case data.ListValuePtr: - return dataValueToJSONEncoder.Encode(dataValue) default: return "", l10n.NewRuntimeError( "vapi.data.serializers.rest.unsupported_data_value", @@ -218,19 +317,72 @@ func unquote(encodedStr string, err error) (string, error) { log.Error(err) return encodedStr, err } - encodedStr, err = strconv.Unquote(encodedStr) - if err != nil { - log.Error(err) - return encodedStr, err + if strings.Contains(encodedStr, "\"") { + encodedStr, err = strconv.Unquote(encodedStr) + if err != nil { + log.Debugf("Error in while unquoting : %s ", err.Error()) + return encodedStr, err + } } return encodedStr, nil } +// Form URL Encode Support +func encodeDataValueToFormURL(dataValue data.DataValue, dataValueToJSONEncoder *cleanjson.DataValueToJsonEncoder) (*string, error) { + switch reflect.TypeOf(dataValue) { + case data.OptionalValuePtr: + optionalVal := dataValue.(*data.OptionalValue) + if optionalVal.IsSet() { + return encodeDataValueToFormURL(optionalVal.Value(), dataValueToJSONEncoder) + } + return nil, nil + case data.BoolValuePtr: + str, err := dataValueToJSONEncoder.Encode(dataValue) + return &str, err + case data.StringValuePtr: + str, err := unquote(dataValueToJSONEncoder.Encode(dataValue)) + return &str, err + case data.IntegerValuePtr: + str, err := dataValueToJSONEncoder.Encode(dataValue) + return &str, err + case data.DoubleValuePtr: + str, err := dataValueToJSONEncoder.Encode(dataValue) + return &str, err + case data.BlobValuePtr: + str, err := unquote(dataValueToJSONEncoder.Encode(dataValue)) + return &str, err + case data.SecretValuePtr: + str, err := unquote(dataValueToJSONEncoder.Encode(dataValue)) + return &str, err + case data.StructValuePtr: + return structValueToFormURLEncode(dataValue.(*data.StructValue), dataValueToJSONEncoder) + default: + return nil, l10n.NewRuntimeError("vapi.data.serializers.rest.unhandled.datavalue.formurl", + map[string]string{"datavalue": dataValue.Type().String()}) + } +} + +func structValueToFormURLEncode(formURLStructVal *data.StructValue, dataValueToJSONEncoder *cleanjson.DataValueToJsonEncoder) (*string, error) { + params := url.Values{} + for k, v := range formURLStructVal.Fields() { + val, err := encodeDataValueToFormURL(v, dataValueToJSONEncoder) + if val != nil { + params.Add(k, *val) + } else if err != nil { + return nil, l10n.NewRuntimeError("vapi.data.serializers.rest.formurl.field.error", + map[string]string{"field": k, "msg": err.Error()}) + } + } + res := params.Encode() + return &res, nil +} + +// Deprecated: use Serialize(ctx core.SecurityContext) in SecurityContextSerializer instead // Get the authorization headers for the corresponding security context -func getAuthorizationHeaders(securityContext core.SecurityContext) (map[string]string, error) { +func getAuthorizationHeaders(securityContext core.SecurityContext) (map[string]interface{}, error) { if securityContext == nil { log.Info("securityContext is nil") - return map[string]string{}, nil + return map[string]interface{}{}, nil } switch securityContext.Property(security.AUTHENTICATION_SCHEME_ID) { @@ -247,39 +399,42 @@ func getAuthorizationHeaders(securityContext core.SecurityContext) (map[string]s } } +// Deprecated: use UserPwdSecContextSerializer instead // Get the authorization headers for username security context -func getUsernameCtxHeaders(securityContext core.SecurityContext) (map[string]string, error) { - username, err := getSecurityCtxStrValue(securityContext, security.USER_KEY) +func getUsernameCtxHeaders(securityContext core.SecurityContext) (map[string]interface{}, error) { + username, err := GetSecurityCtxStrValue(securityContext, security.USER_KEY) if err != nil { return nil, err } - password, err := getSecurityCtxStrValue(securityContext, security.PASSWORD_KEY) + password, err := GetSecurityCtxStrValue(securityContext, security.PASSWORD_KEY) if err != nil { return nil, err } - credentialString := fmt.Sprintf("%s:%s", username, password) + credentialString := fmt.Sprintf("%s:%s", *username, *password) base64EncodedVal := base64.StdEncoding.EncodeToString([]byte(credentialString)) - return map[string]string{"Authorization": "Basic " + base64EncodedVal}, nil + return map[string]interface{}{"Authorization": "Basic " + base64EncodedVal}, nil } +// Deprecated: use SessionSecContextSerializer instead // Get the authorization headers for session security context -func getSessionCtxHeaders(securityContext core.SecurityContext) (map[string]string, error) { - sessionID, err := getSecurityCtxStrValue(securityContext, security.SESSION_ID) +func getSessionCtxHeaders(securityContext core.SecurityContext) (map[string]interface{}, error) { + sessionID, err := GetSecurityCtxStrValue(securityContext, security.SESSION_ID) if err != nil { return nil, err } - return map[string]string{security.SESSION_ID_KEY: sessionID}, nil + return map[string]interface{}{security.SESSION_ID_KEY: sessionID}, nil } +// Deprecated: use OauthSecContextSerializer instead // Get the authorization headers for oauth security context. -func getOauthCtxHeaders(securityContext core.SecurityContext) (map[string]string, error) { - oauthToken, err := getSecurityCtxStrValue(securityContext, security.ACCESS_TOKEN) +func getOauthCtxHeaders(securityContext core.SecurityContext) (map[string]interface{}, error) { + oauthToken, err := GetSecurityCtxStrValue(securityContext, security.ACCESS_TOKEN) if err != nil { return nil, err } - return map[string]string{security.CSP_AUTH_TOKEN_KEY: oauthToken}, nil + return map[string]interface{}{security.CSP_AUTH_TOKEN_KEY: oauthToken}, nil } func contains(s []string, e string) bool { @@ -291,34 +446,36 @@ func contains(s []string, e string) bool { return false } -func getSecurityCtxStrValue(securityContext core.SecurityContext, propKey string) (string, error) { +// GetSecurityCtxStrValue returns value of the given key in *string. +// Error will be raised if securityContext is nil or value is not string type +func GetSecurityCtxStrValue(securityContext core.SecurityContext, propKey string) (*string, error) { + if securityContext == nil { + err := errors.New("securityContext can't be nil") + return nil, err + } + securityContextMap := securityContext.GetAllProperties() var propVal interface{} - if propValue, ok := securityContextMap[propKey]; !ok { - err := fmt.Errorf("%s is not present in the security context", propKey) - log.Error(err) - return "", err - } else { - propVal = propValue + var ok bool + if propVal, ok = securityContextMap[propKey]; !ok { + log.Debugf("%s is not present in the security context", propKey) + return nil, nil } if propVal == nil { - log.Debugf("%s value is nil, use \"\" instead", propKey) - return "", nil + return nil, nil } if propValueStr, ok := propVal.(string); ok { - return propValueStr, nil + return &propValueStr, nil } err := fmt.Errorf("Invalid type for %s, expected type string, actual type %s", propKey, reflect.TypeOf(propVal).String()) log.Error(err) - return "", err + return nil, err } - - func getNestedParams(field string, inputValue *data.StructValue, fields map[string]bindings.BindingType) (data.DataValue, error) { tokens := strings.Split(field, ".") if len(tokens) > 1 { @@ -327,12 +484,11 @@ func getNestedParams(field string, inputValue *data.StructValue, fields map[stri return getNestedParam(tokens, inputValue, fieldBinding) } return nil, l10n.NewRuntimeError("vapi.data.serializers.rest.nested.invalid.args", - map[string]string{"param": strings.Join(tokens, ".")}) + map[string]string{"param": strings.Join(tokens, ".")}) } return inputValue.Field(field) } - func getNestedParam(tokens []string, inputValue *data.StructValue, fieldBinding bindings.BindingType) (data.DataValue, error) { currentField := tokens[0] if len(tokens) == 1 { @@ -356,14 +512,15 @@ func getNestedParam(tokens []string, inputValue *data.StructValue, fieldBinding if !optVal.IsSet() || len(tokens) == 1 { return optVal, nil } - + optElementBinding := fieldBinding.(bindings.OptionalType).ElementType() - if temp, ok := optVal.Value().(*data.StructValue); ok && reflect.TypeOf(optElementBinding) == bindings.ReferenceBindingType { - return getNestedParam(tokens[1:], temp, optElementBinding.(bindings.ReferenceType).Resolve()) + if temp, ok := optVal.Value().(*data.StructValue); ok && reflect.TypeOf(optElementBinding) == bindings.ReferenceBindingType { + structBindingType := optElementBinding.(bindings.ReferenceType).Resolve().(bindings.StructType) + return getNestedParam(tokens[1:], temp, structBindingType.Field(currentField)) } } else if fieldBindingType == bindings.OptionalBindingType { return data.NewOptionalValue(nil), nil } - return nil, l10n.NewRuntimeError( "vapi.data.serializers.rest.nested.invalid.args", + return nil, l10n.NewRuntimeError("vapi.data.serializers.rest.nested.invalid.args", map[string]string{"param": strings.Join(tokens, ".")}) -} \ No newline at end of file +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/ResponseDeserializer.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/ResponseDeserializer.go index 60f4714af..ffbf10b0a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/ResponseDeserializer.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/ResponseDeserializer.go @@ -3,17 +3,17 @@ package rest - import ( "encoding/json" - "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" "strings" + "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" "github.com/vmware/vsphere-automation-sdk-go/runtime/core" "github.com/vmware/vsphere-automation-sdk-go/runtime/data" "github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson" httpStatus "github.com/vmware/vsphere-automation-sdk-go/runtime/lib/rest" "github.com/vmware/vsphere-automation-sdk-go/runtime/log" + "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol" ) func isStatusSuccess(status int) bool { @@ -25,28 +25,69 @@ func isStatusSuccess(status int) bool { return false } -func DeSerializeResponseToDataValue(response string) (data.DataValue, error) { - if response == "" { +func DeSerializeResponseToDataValue(headers map[string][]string, response string, restmetadata *protocol.OperationRestMetadata) (data.DataValue, error) { + + if response == "" && len(headers) == 0 { return data.NewVoidValue(), nil } - d := json.NewDecoder(strings.NewReader(response)) - d.UseNumber() - var jsondata interface{} - if err := d.Decode(&jsondata); err != nil { - log.Error(err) - return nil, err - } + + var responseValue data.DataValue + var err error + jsonToDataValueDecoder := cleanjson.NewJsonToDataValueDecoder() - responseValue, err := jsonToDataValueDecoder.Decode(jsondata) - if err != nil { - log.Error(err) - return nil, err + resultHeader := restmetadata.ResultHeadersNameMap() + if response != "" { + d := json.NewDecoder(strings.NewReader(response)) + d.UseNumber() + var jsondata interface{} + if err := d.Decode(&jsondata); err != nil { + return nil, err + } + if bodyName := restmetadata.ResponseBodyName(); bodyName != "" && len(resultHeader) > 0 { + responseValue = data.NewStructValue("", nil) + responseBody, err := jsonToDataValueDecoder.Decode(jsondata) + if err != nil { + return nil, err + } + responseValue.(*data.StructValue).SetField(bodyName, responseBody) + } else { + responseValue, err = jsonToDataValueDecoder.Decode(jsondata) + if err != nil { + return nil, err + } + } + } else { + responseValue = data.NewStructValue("", nil) + } + + // DeSerialize response headers into method result output + headersLower := mapKeysTolowerCase(headers) + for dataValName, wireName := range resultHeader { + val, exists := headersLower[strings.ToLower(wireName)] + respStruct, isStruct := responseValue.(*data.StructValue) + if exists && isStruct { + headerDataVal, err := jsonToDataValueDecoder.Decode(strings.Join(val, ",")) + if err != nil { + log.Error(err) + return nil, err + } + respStruct.SetField(dataValName, headerDataVal) + } } + return responseValue, nil } -func DeserializeResponse(status int, response string) (core.MethodResult, error) { - dataVal, err := DeSerializeResponseToDataValue(response) +func mapKeysTolowerCase(data map[string][]string) map[string][]string { + res := make(map[string][]string) + for k, v := range data { + res[strings.ToLower(k)] = v + } + return res +} + +func DeserializeResponse(status int, headers map[string][]string, response string, restmetadata *protocol.OperationRestMetadata) (core.MethodResult, error) { + dataVal, err := DeSerializeResponseToDataValue(headers, response, restmetadata) if err != nil { return core.MethodResult{}, err } @@ -55,6 +96,21 @@ func DeserializeResponse(status int, response string) (core.MethodResult, error) } //create errorval var errorVal *data.ErrorValue + if vapiStdErrorName, ok := getErrorNameUsingStatus(status, restmetadata.ErrorCodeMap()); ok { + errorVal = bindings.CreateErrorValueFromMessages(bindings.CreateStdErrorDefinition(vapiStdErrorName), []error{}) + errorVal.SetField("messages", data.NewListValue()) + if structVal, ok := dataVal.(*data.StructValue); ok { + for fieldName, fieldDataVal := range structVal.Fields() { + errorVal.SetField(fieldName, fieldDataVal) + } + } else if errVal, ok := dataVal.(*data.ErrorValue); ok { + for fieldName, fieldDataVal := range errVal.Fields() { + errorVal.SetField(fieldName, fieldDataVal) + } + } + return core.NewMethodResult(nil, errorVal), nil + } + vapiStdErrorName, ok := httpStatus.HTTP_TO_VAPI_ERROR_MAP[status] if !ok { // Use "com.vmware.vapi.std.errors.internal_server_error" if response error code is not present @@ -65,3 +121,12 @@ func DeserializeResponse(status int, response string) (core.MethodResult, error) errorVal.SetField("data", dataVal) return core.NewMethodResult(nil, errorVal), nil } + +func getErrorNameUsingStatus(status int, errorcodeMap map[string]int) (string, bool) { + for errName, errStatus := range errorcodeMap { + if errStatus == status { + return errName, true + } + } + return "", false +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/SecurityContextSerializer.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/SecurityContextSerializer.go new file mode 100644 index 000000000..7a664c076 --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest/SecurityContextSerializer.go @@ -0,0 +1,94 @@ +/* Copyright © 2020 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +package rest + +import ( + "errors" + "encoding/base64" + "fmt" + + "github.com/vmware/vsphere-automation-sdk-go/runtime/core" + "github.com/vmware/vsphere-automation-sdk-go/runtime/security" +) + +// SecurityContextSerializer is implemented by concrete +// context serializers, such as UserPwdSecContextSerializer, SessionSecContextSerializer +// and OauthSecContextSerializer. Clients can also implement a custom serializer +// with special serialization requirements. +type SecurityContextSerializer interface { + Serialize(core.SecurityContext) (map[string]interface{}, error) +} + +type UserPwdSecContextSerializer struct { +} + +func NewUserPwdSecContextSerializer() *UserPwdSecContextSerializer { + return &UserPwdSecContextSerializer{} +} + +// Serialize authorization headers for username security context +func (u *UserPwdSecContextSerializer) Serialize(ctx core.SecurityContext) (map[string]interface{}, error) { + username, err := GetSecurityCtxStrValue(ctx, security.USER_KEY) + if err != nil { + return nil, err + } + + password, err := GetSecurityCtxStrValue(ctx, security.PASSWORD_KEY) + if err != nil { + return nil, err + } + + if username == nil || password == nil { + err := errors.New("Username and password are required for UserPwdSecContextSerializer") + return nil, err + } + + credentialString := fmt.Sprintf("%s:%s", *username, *password) + base64EncodedVal := base64.StdEncoding.EncodeToString([]byte(credentialString)) + return map[string]interface{}{"Authorization": "Basic " + base64EncodedVal}, nil +} + +type SessionSecContextSerializer struct { +} + +func NewSessionSecContextSerializer() *SessionSecContextSerializer { + return &SessionSecContextSerializer{} +} + +// Serialize authorization headers for session security context +func (s *SessionSecContextSerializer) Serialize(ctx core.SecurityContext) (map[string]interface{}, error) { + sessionID, err := GetSecurityCtxStrValue(ctx, security.SESSION_ID) + if err != nil { + return nil, err + } + + if sessionID == nil { + err := errors.New("Session ID is required for SessionSecContextSerializer") + return nil, err + } + + return map[string]interface{}{security.SESSION_ID_KEY: *sessionID}, nil +} + +type OauthSecContextSerializer struct { +} + +func NewOauthSecContextSerializer() *OauthSecContextSerializer { + return &OauthSecContextSerializer{} +} + +// Serialize authorization headers for oauth security context. +func (o *OauthSecContextSerializer) Serialize(ctx core.SecurityContext) (map[string]interface{}, error) { + oauthToken, err := GetSecurityCtxStrValue(ctx, security.ACCESS_TOKEN) + if err != nil { + return nil, err + } + + if oauthToken == nil { + err := errors.New("Oauth token is required for OauthSecContextSerializer") + return nil, err + } + + return map[string]interface{}{security.CSP_AUTH_TOKEN_KEY: *oauthToken}, nil +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/go.mod b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/go.mod deleted file mode 100644 index c357645d4..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/go.mod +++ /dev/null @@ -1,12 +0,0 @@ -module github.com/vmware/vsphere-automation-sdk-go/runtime - -go 1.13 - -require ( - github.com/beevik/etree v1.1.0 - github.com/gibson042/canonicaljson-go v1.0.3 - github.com/google/uuid v1.1.1 - github.com/gorilla/mux v1.7.3 - golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa - golang.org/x/text v0.3.2 -) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/go.sum b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/go.sum deleted file mode 100644 index da4c1a4db..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/go.sum +++ /dev/null @@ -1,16 +0,0 @@ -github.com/beevik/etree v1.1.0 h1:T0xke/WvNtMoCqgzPhkX2r4rjY3GDZFi+FjpRZY2Jbs= -github.com/beevik/etree v1.1.0/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A= -github.com/gibson042/canonicaljson-go v1.0.3 h1:EAyF8L74AWabkyUmrvEFHEt/AGFQeD6RfwbAuf0j1bI= -github.com/gibson042/canonicaljson-go v1.0.3/go.mod h1:DsLpJTThXyGNO+KZlI85C1/KDcImpP67k/RKVjcaEqo= -github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/mux v1.7.3 h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa h1:F+8P+gmewFQYRk6JoLQLwjBCTu3mcIURZfNkVweuRKA= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/l10n/runtime/runtimeproperties_en.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/l10n/runtime/runtimeproperties_en.go index c7b3f1376..07b2dda54 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/l10n/runtime/runtimeproperties_en.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/l10n/runtime/runtimeproperties_en.go @@ -40,6 +40,8 @@ vapi.data.structure.dynamic.invalid=Expected valid fields of structure '{structN vapi.data.structure.isoneof.value.invalid=Invalid value '{value}' for field '{fieldName}' marked with IsOneOf vapi.data.serializers.rest.datavalue.error=Error serializing DataValue of type '{type}' +vapi.data.serializers.rest.unhandled.datavalue.formurl=Error in encoding Datavalue to FormUrl type, Unhandled DataValue type detected '{datavalue}' +vapi.data.serializers.rest.formurl.field.error=FormUrl encoding failed for Field '{field}', Error: '{msg}' vapi.data.serializers.rest.metadata.value.nil=Rest metadata cannot be nil vapi.data.serializers.rest.nested.invalid.args=Parameter {param} doesnot have valid binding to be returned. vapi.data.serializers.rest.unsupported_data_value=Data value of type '{type}' is not supported to be serialized as part of REST request URL @@ -59,6 +61,7 @@ vapi.method.input.invalid=Invalid input to method '{methodId}' vapi.method.input.invalid.definition=Invalid input definition to method '{methodId}' vapi.method.status.errors.invalid=Invalid error '{errorName}' reported from method '{methodName}' +vapi.security.rest.context.error=Security context creation failed, Failure: {err} vapi.security.authentication.scheme.invalid=Authentication scheme '{scheme}' is invalid vapi.security.authentication.invalid=Unable to authenticate user vapi.security.authentication.failed=Invalid authentication result @@ -80,18 +83,24 @@ vapi.security.sso.signature.algorithm.invalid=Invalid signature algorithm. vapi.protocol.server.rest.param.invalid_value=Parsing failed because of '{errMsg}' vapi.protocol.server.rest.param.invalid_type=Invalid value for request parameter '{paramName}'. Expected a value of type '{expectedType}', but parsing failed because of '{errMsg}' +com.vmware.vapi.rest.unsupported_property=Unsupported property with name: {arg}. +com.vmware.vapi.rest.unsupported_media_type=Unsupported media type. vapi.protocol.server.rest.param.name_type_map_not_found='{paramName}' is not found in parameter name to type map vapi.protocol.server.rest.param.unsupport_type=Request parameter data type '{dataType}' not supported vapi.protocol.server.rest.param.body_parse_error=Error when parsing request body, '{errMsg}' vapi.protocol.server.rest.param.bodyfield_parse_invalid=Body Field data is not of type Map +vapi.protocol.server.rest.param.bodyfield.unexpected_field=Body Field contains unexpected field : '{msg}' +vapi.protocol.server.rest.param.bodyfield.missing_field=Body Field does not contain required field : '{msg}' vapi.protocol.server.rest.param.body.unsupport_type=Request body data type '{dataType}' not supported vapi.protocol.server.rest.param.body.unexpected=Request body data type expected '{required}' but got '{type}' +vapi.protocol.server.rest.param.internal_server_error= Request process params failure: {msg} vapi.protocol.server.rest.response.unsupport_type=Response data type '{dataType}' not supported for field '{fieldName}' vapi.protocol.server.rest.response.not_structure=Response result is not a structure type vapi.protocol.server.rest.response.error_not_structure=Response error is not a structure type vapi.protocol.server.rest.response.result_failed=Method execution failed, do not set response header vapi.protocol.server.rest.response.unsupport_http_status=Http status '{httpStatus}' not supported vapi.protocol.server.rest.response.body_parse_error=Error when parsing response body +vapi.protocol.server.rest.error.not_supported=Http status '{errorName}' not supported vapi.protocol.client.request.not_structure=Input request is not a structure type vapi.protocol.client.response.error=Error reading server response vapi.protocol.client.request.error=Error completing client request '{errMsg}' diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/lib/constants.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/lib/constants.go index fa98b10a1..192efb293 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/lib/constants.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/lib/constants.go @@ -3,7 +3,6 @@ package lib - const EXECUTION_CONTEXT = "ctx" const APPLICATION_CONTEXT = "appCtx" @@ -41,11 +40,19 @@ const ERROR_CODE = "code" const ERROR_MESSAGE = "message" const ERROR_DATA = "data" +// Constants for REST presentation Layer +const REST_OP_ID_HEADER = "X-Request-ID" +const LOCALE = "locale" +const AUTH_HEADER = "Authorization" + //HTTP headers +const FORM_URL_CONTENT_TYPE = "application/x-www-form-urlencoded" const JSON_CONTENT_TYPE = "application/json" +const TEXT_PLAIN_CONTENT_TYPE = "text/plain" const HTTP_USER_AGENT_HEADER = "user-agent" const HTTP_CONTENT_TYPE_HEADER = "Content-Type" const HTTP_ACCEPT_LANGUAGE = "accept-language" +const HTTP_ACCEPT = "Accept" // VAPI headers const VAPI_SERVICE_HEADER = "vapi-service" @@ -55,5 +62,9 @@ const VAPI_HEADER_PREFIX = "vapi-ctx-" const VAPI_SESSION_HEADER = "vmware-api-session-id" const VAPI_L10N_FORMAT_LOCALE = "format-locale" const VAPI_L10N_TIMEZONE = "timezone" +const VAPI_STREAMING_HEADER_VALUE = "application/vnd.vmware.vapi.stream.json,application/json" +const VAPI_STREAMING_CONTENT_TYPE = "application/vnd.vmware.vapi.stream.json" const REST_METADATA = "rest-metadata" + +var CRLFBytes = []byte("\r\n") diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/package.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/package.go deleted file mode 100644 index cc5fa5f8f..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/package.go +++ /dev/null @@ -1,2 +0,0 @@ -package runtime - diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/JsonRpcConnector.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/JsonRpcConnector.go index b0cf2b818..1964088ec 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/JsonRpcConnector.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/JsonRpcConnector.go @@ -6,10 +6,6 @@ package client import ( "bytes" "encoding/json" - "io/ioutil" - "net/http" - "strings" - "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" "github.com/vmware/vsphere-automation-sdk-go/runtime/common" "github.com/vmware/vsphere-automation-sdk-go/runtime/core" @@ -18,6 +14,11 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" "github.com/vmware/vsphere-automation-sdk-go/runtime/log" "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg" + "io" + "io/ioutil" + "net/http" + "net/http/httputil" + "strings" ) type JsonRpcConnector struct { @@ -125,11 +126,91 @@ func (j *JsonRpcConnector) Invoke(serviceId string, operationId string, inputVal errVal := bindings.CreateErrorValueFromMessages(bindings.INVALID_REQUEST_ERROR_DEF, []error{err}) return core.NewMethodResult(nil, errVal) } + req.Header.Set(lib.HTTP_CONTENT_TYPE_HEADER, lib.JSON_CONTENT_TYPE) req.Header.Set(lib.VAPI_SERVICE_HEADER, serviceId) req.Header.Set(lib.VAPI_OPERATION_HEADER, operationId) req.Header.Set(lib.HTTP_USER_AGENT_HEADER, GetRuntimeUserAgentHeader()) + if j.connectionMetadata["isStreamingResponse"] == true { + req.Header.Set(lib.HTTP_ACCEPT, lib.VAPI_STREAMING_HEADER_VALUE) + } + if ctx.Context() != nil { + req = req.WithContext(ctx.Context()) + } CopyContextsToHeaders(ctx, req) + + if j.connectionMetadata["isStreamingResponse"] == true { + methodResult := core.NewMethodResult(nil, nil) + methodResultChan := make(chan core.MethodResult) + methodResult.SetResponseStream(methodResultChan) + go func() { + response, requestErr := j.httpClient.Do(req) + if requestErr != nil { + if strings.HasSuffix(requestErr.Error(), "connection refused") { + err := l10n.NewRuntimeErrorNoParam("vapi.server.unavailable") + errVal := bindings.CreateErrorValueFromMessages(bindings.SERVICE_UNAVAILABLE_ERROR_DEF, []error{err}) + methodResultChan <- core.NewMethodResult(nil, errVal) + return + } else if strings.HasSuffix(requestErr.Error(), "i/o timeout") { + err := l10n.NewRuntimeErrorNoParam("vapi.server.timedout") + errVal := bindings.CreateErrorValueFromMessages(bindings.TIMEDOUT_ERROR_DEF, []error{err}) + methodResultChan <- core.NewMethodResult(nil, errVal) + return + } + } + defer response.Body.Close() + dec := json.NewDecoder(httputil.NewChunkedReader(response.Body)) + dec.UseNumber() + jsonRpcDecoder := msg.NewJsonRpcDecoder() + for { + var m map[string]interface{} + if err := dec.Decode(&m); err == io.EOF { + break + } else if err != nil { + // err is not nil when ctx is cancelled. + log.Debug(err) + break + } + jsonRpcResponse, responseDeserializationErr := jsonRpcDecoder.GetJsonRpc20Response(m) + if responseDeserializationErr != nil { + log.Error(responseDeserializationErr) + err := l10n.NewRuntimeError("vapi.server.response.error", map[string]string{"errMsg": responseDeserializationErr.Message()}) + errVal := bindings.CreateErrorValueFromMessages(bindings.INTERNAL_SERVER_ERROR_DEF, []error{err}) + methodResultChan <- core.NewMethodResult(nil, errVal) + break + } + if jsonRpcResponseMap, ok := jsonRpcResponse.Result().(map[string]interface{}); ok { + // check for terminal frame + if len(jsonRpcResponseMap) == 0 { + log.Debug("Recieved terminal frame") + break + } + methodResult, err := jsonRpcDecoder.DeSerializeMethodResult(jsonRpcResponseMap) + if err != nil { + log.Error(err) + runtimeError := l10n.NewRuntimeError("vapi.server.response.error", map[string]string{"errMsg": err.Error()}) + errVal := bindings.CreateErrorValueFromMessages(bindings.INTERNAL_SERVER_ERROR_DEF, []error{runtimeError}) + methodResultChan <- core.NewMethodResult(nil, errVal) + break + } + methodResultChan <- methodResult + if methodResult.Error() != nil { + log.Debug("Recieved error frame") + break + } + } else { + runtimeError := l10n.NewRuntimeError("vapi.server.response.error", map[string]string{"errMsg": ""}) + errVal := bindings.CreateErrorValueFromMessages(bindings.INTERNAL_SERVER_ERROR_DEF, []error{runtimeError}) + methodResultChan <- core.NewMethodResult(nil, errVal) + } + + } + close(methodResultChan) + + }() + return methodResult + } + // non streaming responses. response, requestErr := j.httpClient.Do(req) if requestErr != nil { if strings.HasSuffix(requestErr.Error(), "connection refused") { diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/RestConnector.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/RestConnector.go index 899d973b5..5faa530b2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/RestConnector.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/RestConnector.go @@ -1,5 +1,5 @@ //TODO refactor this class to share code with jsonrpc connector -/* Copyright © 2019 VMware, Inc. All Rights Reserved. +/* Copyright © 2019, 2020 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause */ package client @@ -18,25 +18,43 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" "github.com/vmware/vsphere-automation-sdk-go/runtime/log" "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol" + "github.com/vmware/vsphere-automation-sdk-go/runtime/security" ) type RestConnector struct { - url string - httpClient http.Client - securityContext core.SecurityContext - appContext *core.ApplicationContext - connectionMetadata map[string]interface{} - enableDefaultContentType bool + url string + httpClient http.Client + securityContext core.SecurityContext + appContext *core.ApplicationContext + connectionMetadata map[string]interface{} + enableDefaultContentType bool + securityContextSerializerMap map[string]rest.SecurityContextSerializer + requestProcessors []rest.RequestProcessor + statusCode int } func NewRestConnector(url string, client http.Client) *RestConnector { - return &RestConnector{url: url, httpClient: client, enableDefaultContentType: true} + var secCtxSerializerMap = make(map[string]rest.SecurityContextSerializer) + secCtxSerializerMap[security.USER_PASSWORD_SCHEME_ID] = rest.NewUserPwdSecContextSerializer() + secCtxSerializerMap[security.SESSION_SCHEME_ID] = rest.NewSessionSecContextSerializer() + secCtxSerializerMap[security.OAUTH_SCHEME_ID] = rest.NewOauthSecContextSerializer() + return &RestConnector{ + url: url, + httpClient: client, + enableDefaultContentType: true, + securityContextSerializerMap: secCtxSerializerMap, + requestProcessors: []rest.RequestProcessor{}, + } } func (j *RestConnector) ApplicationContext() *core.ApplicationContext { return j.appContext } +func (j *RestConnector) StatusCode() int { + return j.statusCode +} + func (j *RestConnector) SetApplicationContext(ctx *core.ApplicationContext) { j.appContext = ctx } @@ -62,6 +80,22 @@ func (j *RestConnector) SetEnableDefaultContentType(enableDefaultContentType boo j.enableDefaultContentType = enableDefaultContentType } +func (j *RestConnector) SetSecCtxSerializer(schemeID string, serializer rest.SecurityContextSerializer) { + j.securityContextSerializerMap[schemeID] = serializer +} + +func (j *RestConnector) SecurityContextSerializerMap() map[string]rest.SecurityContextSerializer { + return j.securityContextSerializerMap +} + +func (j *RestConnector) AddRequestProcessor(processor rest.RequestProcessor) { + j.requestProcessors = append(j.requestProcessors, processor) +} + +func (j *RestConnector) RequestProcessors() []rest.RequestProcessor { + return j.requestProcessors +} + func (j *RestConnector) NewExecutionContext() *core.ExecutionContext { if j.appContext == nil { j.appContext = common.NewDefaultApplicationContext() @@ -92,8 +126,10 @@ func (j *RestConnector) buildHTTPRequest(serializedRequest *rest.Request, if err != nil { return nil, err } - for k, v := range serializedRequest.InputHeaders() { - req.Header.Set(k, v) + for k, vlist := range serializedRequest.InputHeaders() { + for _, v := range vlist { + req.Header.Set(k, v) + } } if _, ok := req.Header[lib.HTTP_CONTENT_TYPE_HEADER]; !ok && j.enableDefaultContentType { req.Header.Set(lib.HTTP_CONTENT_TYPE_HEADER, lib.JSON_CONTENT_TYPE) @@ -147,8 +183,32 @@ func (j *RestConnector) Invoke(serviceID string, operationID string, return core.NewMethodResult(nil, errVal) } + securityCtx := ctx.SecurityContext() + var secCtxSerializer rest.SecurityContextSerializer + if securityCtx != nil { + // Get schemeID of the securityContext + schemeID, err := rest.GetSecurityCtxStrValue(securityCtx, security.AUTHENTICATION_SCHEME_ID) + if err != nil { + log.Error(err) + err := l10n.NewRuntimeErrorNoParam("vapi.protocol.client.request.error") + errVal := bindings.CreateErrorValueFromMessages(bindings.INVALID_REQUEST_ERROR_DEF, []error{err}) + return core.NewMethodResult(nil, errVal) + } + + if schemeID != nil { + log.Debug("SecurityContext schemeID is ", schemeID) + // Find the approprate SecurityContextSerializer based on the schemeID + if serializer, ok := j.securityContextSerializerMap[*schemeID]; ok { + secCtxSerializer = serializer + } else { + log.Debug("No appropriate SecurityContextSerializer for schemeID %s. HTTP headers will not be added to request", schemeID) + } + } + } + // Serialize urlPath, inputHeaders and requestBody - serializedRequest, err := rest.SerializeRequests(inputStructValue, ctx, restMetadata) + serializedRequest, err := rest.SerializeRequestsWithSecCtxSerializers( + inputStructValue, ctx, restMetadata, secCtxSerializer) if err != nil { err := l10n.NewRuntimeError("vapi.data.serializers.json.marshall.error", map[string]string{"errorMessage": err.Error()}) @@ -157,6 +217,18 @@ func (j *RestConnector) Invoke(serviceID string, operationID string, } req, err := j.buildHTTPRequest(serializedRequest, ctx, restMetadata) + + // Allow client to access the req object before sending the http request + for _, preProcessor := range j.requestProcessors { + err := preProcessor.Process(req) + if err != nil { + log.Debug(err) + err := l10n.NewRuntimeErrorNoParam("vapi.protocol.client.request.error") + errVal := bindings.CreateErrorValueFromMessages(bindings.INVALID_REQUEST_ERROR_DEF, []error{err}) + return core.NewMethodResult(nil, errVal) + } + } + response, err := j.httpClient.Do(req) if err != nil { errString := err.Error() @@ -187,7 +259,12 @@ func (j *RestConnector) Invoke(serviceID string, operationID string, errVal := bindings.CreateErrorValueFromMessages(bindings.INTERNAL_SERVER_ERROR_DEF, []error{err}) return core.NewMethodResult(nil, errVal) } - methodResult, err := rest.DeserializeResponse(response.StatusCode, string(resp)) + + // assign status code + j.statusCode = response.StatusCode + + respHeader := response.Header + methodResult, err := rest.DeserializeResponse(response.StatusCode, respHeader, string(resp), restMetadata) if err != nil { err := l10n.NewRuntimeErrorNoParam("vapi.protocol.client.response.unmarshall.error") // TODO create an appropriate binding error for this diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/metadata/version.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/metadata/version.go new file mode 100644 index 000000000..908d7ccef --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/metadata/version.go @@ -0,0 +1,3 @@ +package metadata + +const RuntimeVersion = "0.2.0" diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/util.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/util.go index 0829bcef4..3e87fc8bf 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/util.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/util.go @@ -8,17 +8,16 @@ import ( "reflect" "strings" - goruntime "github.com/vmware/vsphere-automation-sdk-go/runtime" - "github.com/vmware/vsphere-automation-sdk-go/runtime/core" "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" "github.com/vmware/vsphere-automation-sdk-go/runtime/log" + "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/metadata" "github.com/vmware/vsphere-automation-sdk-go/runtime/security" ) // GetRuntimeUserAgentHeader returns User-Agent header for go runtime func GetRuntimeUserAgentHeader() string { - return fmt.Sprintf("vAPI/%s Go/%s (%s; %s)", goruntime.RuntimeVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH) + return fmt.Sprintf("vAPI/%s Go/%s (%s; %s)", metadata.RuntimeVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH) } // CopyContextsToHeaders sets request headers using execution context properties diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcDecoder.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcDecoder.go index 99b39c347..db82f6d73 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcDecoder.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcDecoder.go @@ -284,7 +284,7 @@ func (decoder *JsonRpcDecoder) getJsonRpc20Request(request map[string]interface{ } } -func (decoder *JsonRpcDecoder) getJsonRpc20Response(response map[string]interface{}) (JsonRpc20Response, *JsonRpc20Error) { +func (decoder *JsonRpcDecoder) GetJsonRpc20Response(response map[string]interface{}) (JsonRpc20Response, *JsonRpc20Error) { var version string if versionValue, ok := response[lib.JSONRPC]; ok { version = versionValue.(string) @@ -353,7 +353,7 @@ func (decoder *JsonRpcDecoder) DeSerializeResponse(response interface{}) (JsonRp if err != nil { return JsonRpc20Response{}, NewJsonRpcErrorParseError(err) } - return decoder.getJsonRpc20Response(responseObj) + return decoder.GetJsonRpc20Response(responseObj) } func (decoder *JsonRpcDecoder) DeSerializeBinaryValue(val interface{}) (data.DataValue, error) { //binary value is base64 encoded on the wire. decode it first. diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcHandler.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcHandler.go index abaa68e60..f3d3713c7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcHandler.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg/JsonRpcHandler.go @@ -4,44 +4,34 @@ package msg import ( + "encoding/json" "errors" + "fmt" "github.com/vmware/vsphere-automation-sdk-go/runtime/core" "github.com/vmware/vsphere-automation-sdk-go/runtime/data" "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" "github.com/vmware/vsphere-automation-sdk-go/runtime/log" "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server" - "github.com/vmware/vsphere-automation-sdk-go/runtime/security" "io/ioutil" "net/http" "os" - "strings" ) const ENABLE_VAPI_PROVIDER_WIRE_LOGGING = "ENABLE_VAPI_PROVIDER_WIRE_LOGGING" type JsonRpcHandler struct { - apiProvider core.APIProvider - vapiAppCtxConstants map[string]string - jsonRpcEncoder *JsonRpcEncoder - jsonRpcDecoder *JsonRpcDecoder - requestProcessors []server.RequestPreProcessor + apiProvider core.APIProvider + jsonRpcEncoder *JsonRpcEncoder + jsonRpcDecoder *JsonRpcDecoder + requestProcessors []server.RequestPreProcessor } func NewJsonRpcHandler(apiProvider core.APIProvider) *JsonRpcHandler { var jsonRpcEncoder = NewJsonRpcEncoder() var jsonRpcDecoder = NewJsonRpcDecoder() - vapiAppCtxConstants := map[string]string{ - "opid": "opId", - "actid": "actId", - "$showunreleasedapis": "$showUnreleasedAPIs", - "$useragent": "$userAgent", - "$donotroute": "$doNotRoute", - "vmwaresessionid": "vmwareSessionId", - "activationid": "ActivationId"} return &JsonRpcHandler{apiProvider: apiProvider, - jsonRpcEncoder: jsonRpcEncoder, - jsonRpcDecoder: jsonRpcDecoder, - vapiAppCtxConstants: vapiAppCtxConstants} + jsonRpcEncoder: jsonRpcEncoder, + jsonRpcDecoder: jsonRpcDecoder} } func (j *JsonRpcHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) { @@ -147,8 +137,8 @@ func (j *JsonRpcHandler) processJsonRpcRequest(rw http.ResponseWriter, r *http.R j.sendResponse(jsonRpcRequestError, rw, nil) return } - - j.copyHeadersToContexts(executionContext, r) + executionContext.WithContext(r.Context()) + server.CopyHeadersToContexts(executionContext, r) if !executionContext.ApplicationContext().HasProperty(lib.OPID) { log.Debug("opId was not present for the request") } else { @@ -177,40 +167,79 @@ func (j *JsonRpcHandler) processJsonRpcRequest(rw http.ResponseWriter, r *http.R } var methodResult = j.apiProvider.Invoke(serviceId, operationId, inputValue, executionContext) - var jsonRpc20Response = j.prepareResponseBody(request, methodResult, serviceId, operationId) - j.sendResponse(jsonRpc20Response, rw, methodResult.Error()) -} - -func (j *JsonRpcHandler) copyHeadersToContexts(ctx *core.ExecutionContext, r *http.Request) { - appCtx := ctx.ApplicationContext() - secCtx := ctx.SecurityContext() - for key, value := range r.Header { - keyLowerCase := strings.ToLower(key) - s := strings.Split(keyLowerCase, lib.VAPI_HEADER_PREFIX) - if len(s) > 1 { - // Override values in appCtx with headers with "vapi-ctx-" prefix - // The values from HTTP headers override the body values. - // if there are multiple values for the same header, the first entry will be chosen. - if j.vapiAppCtxConstants[s[1]] != "" { - appCtx.SetProperty(j.vapiAppCtxConstants[s[1]], &value[0]) - } else { - appCtx.SetProperty(s[1], &value[0]) + if methodResult.IsResponseStream() { + rw.Header().Set(lib.HTTP_CONTENT_TYPE_HEADER, lib.VAPI_STREAMING_CONTENT_TYPE) + flusher, _ := rw.(http.Flusher) + hasError := false + for i := range methodResult.ResponseStream() { + var jsonRpc20Response = j.prepareResponseBody(request, i) + if i.Error() != nil { + hasError = true + } + j.sendStreamingResponse(jsonRpc20Response, rw, i.Error(), flusher) + } + if !hasError { + //send terminating message + log.Debug("Sending terminal frame") + terminalFrame := make(map[string]interface{}) + terminalFrame[lib.JSONRPC] = request.version + terminalFrame[lib.JSONRPC_ID] = request.id + terminalFrame[lib.METHOD_RESULT] = map[string]interface{}{} + frameBytes, _ := json.Marshal(terminalFrame) + frameLengthInHex := fmt.Sprintf("%x", len(frameBytes)) + _, err := rw.Write([]byte(frameLengthInHex)) + if err != nil { + log.Error(err) + } + _, err = rw.Write(lib.CRLFBytes) + if err != nil { + log.Error(err) + } + _, err = rw.Write(frameBytes) + if err != nil { + log.Error(err) } - } else { - switch keyLowerCase { - case lib.HTTP_ACCEPT_LANGUAGE: - appCtx.SetProperty(lib.HTTP_ACCEPT_LANGUAGE, &value[0]) - case lib.VAPI_SESSION_HEADER: - // Override session value in security context with authorization header - secCtx.SetProperty(security.SESSION_ID, value[0]) - secCtx.SetProperty(security.AUTHENTICATION_SCHEME_ID, security.SESSION_SCHEME_ID) + _, err = rw.Write(lib.CRLFBytes) + if err != nil { + log.Error(err) } + flusher.Flush() } + } else { + var jsonRpc20Response = j.prepareResponseBody(request, methodResult) + j.sendResponse(jsonRpc20Response, rw, methodResult.Error()) + } +} + +func (j *JsonRpcHandler) sendStreamingResponse(response interface{}, rw http.ResponseWriter, error *data.ErrorValue, flusher http.Flusher) { + var frame, encodeError = j.jsonRpcEncoder.Encode(response) + if encodeError != nil { + log.Error(encodeError) + //TODO: + //report this error to client + } + if error != nil { + //Accessing directly to avoid canonicalizing header key. + rw.Header()[lib.VAPI_ERROR] = []string{error.Name()} + } + frameLengthInHex := fmt.Sprintf("%x", len(frame)) + _, err := rw.Write([]byte(frameLengthInHex)) + if err != nil { + log.Error(err) + } + _, err = rw.Write(lib.CRLFBytes) + if err != nil { + log.Error(err) } - // When the request has $useragent header, it will override the custom one if present. - if userAgentVal, ok := r.Header["User-Agent"]; ok { - appCtx.SetProperty("$userAgent", &userAgentVal[0]) + _, err = rw.Write(frame) + if err != nil { + log.Error(err) + } + _, err = rw.Write(lib.CRLFBytes) + if err != nil { + log.Error(err) } + flusher.Flush() } func (j *JsonRpcHandler) operationId(request JsonRpc20Request) (string, error) { @@ -257,7 +286,7 @@ func (j *JsonRpcHandler) executionContext(request JsonRpc20Request) (*core.Execu } } -func (j *JsonRpcHandler) prepareResponseBody(request JsonRpc20Request, methodResult core.MethodResult, serviceId string, operationId string) JsonRpc20Response { +func (j *JsonRpcHandler) prepareResponseBody(request JsonRpc20Request, methodResult core.MethodResult) JsonRpc20Response { _, logWireValue := os.LookupEnv(ENABLE_VAPI_PROVIDER_WIRE_LOGGING) if logWireValue { jsonRpcEncoder := NewJsonRpcEncoder() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/utils.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/utils.go new file mode 100644 index 000000000..63bd8c7d7 --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/utils.go @@ -0,0 +1,58 @@ +/* Copyright © 2020 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +package server + +import ( + "github.com/vmware/vsphere-automation-sdk-go/runtime/core" + "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" + "github.com/vmware/vsphere-automation-sdk-go/runtime/security" + "net/http" + "strings" +) + +func CopyHeadersToContexts(ctx *core.ExecutionContext, r *http.Request) { + + appCtx := ctx.ApplicationContext() + secCtx := ctx.SecurityContext() + + vapiAppCtxConstants := map[string]string{ + "opid": "opId", + "actid": "actId", + "$showunreleasedapis": "$showUnreleasedAPIs", + "$useragent": "$userAgent", + "$donotroute": "$doNotRoute", + "vmwaresessionid": "vmwareSessionId", + "activationid": "ActivationId", + } + + for key, value := range r.Header { + // req.Header returns a list of values for each key (name) + val := value[0] + + keyLowerCase := strings.ToLower(key) + s := strings.Split(keyLowerCase, lib.VAPI_HEADER_PREFIX) + if len(s) > 1 { + // Override values in appCtx with headers with "vapi-ctx-" prefix + // The values from HTTP headers override the body values. + // if there are multiple values for the same header, the first entry will be chosen. + if vapiAppCtxKey, ok := vapiAppCtxConstants[s[1]]; ok { + appCtx.SetProperty(vapiAppCtxKey, &val) + } else { + appCtx.SetProperty(s[1], &val) + } + } else { + switch keyLowerCase { + case lib.HTTP_ACCEPT_LANGUAGE: + appCtx.SetProperty(lib.HTTP_ACCEPT_LANGUAGE, &val) + case lib.VAPI_SESSION_HEADER: + secCtx.SetProperty(security.SESSION_ID, val) + secCtx.SetProperty(security.AUTHENTICATION_SCHEME_ID, security.SESSION_SCHEME_ID) + } + } + } + // When the request has $useragent header, it will override the custom one if present. + if userAgentVal, ok := r.Header["User-Agent"]; ok { + appCtx.SetProperty("$userAgent", &userAgentVal[0]) + } +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/types.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/types.go index 39adb0e4d..562976a14 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/types.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/types.go @@ -5,17 +5,13 @@ package protocol import ( "fmt" + "net/url" "strings" - "github.com/gorilla/mux" "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" "github.com/vmware/vsphere-automation-sdk-go/runtime/core" ) -type RestApiInterface interface { - RegisterRoutesHandlers(router *mux.Router, provider core.APIProvider) -} - type OperationMetadata struct { methodDefinition *core.MethodDefinition inputType bindings.StructType @@ -74,9 +70,11 @@ type OperationRestMetadata struct { // Flattened types of all parameters. Key is fully qualified field name paramsTypeMap map[string]bindings.BindingType //Names of rest parameter to fully qualified canonical name of the field - pathParamsNameMap map[string]string - queryParamsNameMap map[string]string - headerParamsNameMap map[string]string + pathParamsNameMap map[string]string + queryParamsNameMap map[string]string + headerParamsNameMap map[string]string + dispatchHeaderParams map[string]string + bodyFieldsMap map[string]string //Encoded dispatch parameters dispatchParam string //Fully qualified field name canonical name of body param @@ -85,8 +83,12 @@ type OperationRestMetadata struct { httpMethod string //HTTP URL for the operation urlTemplate string + // Content-Type that operation consumes + operationConsumes string // HTTP response success code successCode int + // Field name of response body + responseBodyName string // vAPI error name to HTTP response error code mapping errorCodeMap map[string]int // Map from result field name to http header name @@ -102,12 +104,16 @@ func NewOperationRestMetadata( pathParamsNameMap map[string]string, queryParamsNameMap map[string]string, headerParamsNameMap map[string]string, + dispatchHeaderParams map[string]string, + bodyFieldsMap map[string]string, dispatchParam string, bodyParamActualName string, httpMethod string, urlTemplate string, + operationConsumes string, resultHeadersNameMap map[string]string, successCode int, + responseBodyName string, errorHeadersNameMap map[string]string, errorCodeMap map[string]int) OperationRestMetadata { @@ -118,11 +124,15 @@ func NewOperationRestMetadata( pathParamsNameMap: pathParamsNameMap, queryParamsNameMap: queryParamsNameMap, headerParamsNameMap: headerParamsNameMap, + dispatchHeaderParams: dispatchHeaderParams, + bodyFieldsMap: bodyFieldsMap, dispatchParam: dispatchParam, bodyParamActualName: bodyParamActualName, httpMethod: httpMethod, urlTemplate: urlTemplate, + operationConsumes: operationConsumes, successCode: successCode, + responseBodyName: responseBodyName, errorCodeMap: errorCodeMap, resultHeadersNameMap: resultHeadersNameMap, errorHeadersNameMap: errorHeadersNameMap} @@ -152,6 +162,14 @@ func (meta OperationRestMetadata) HeaderParamsNameMap() map[string]string { return meta.headerParamsNameMap } +func (meta OperationRestMetadata) DispatchHeaderParams() map[string]string { + return meta.dispatchHeaderParams +} + +func (meta OperationRestMetadata) BodyFieldsMap() map[string]string { + return meta.bodyFieldsMap +} + func (meta OperationRestMetadata) DispatchParam() string { return meta.dispatchParam } @@ -168,10 +186,18 @@ func (meta OperationRestMetadata) UrlTemplate() string { return meta.urlTemplate } +func (meta OperationRestMetadata) OperationConsumes() string { + return meta.operationConsumes +} + func (meta OperationRestMetadata) SuccessCode() int { return meta.successCode } +func (meta OperationRestMetadata) ResponseBodyName() string { + return meta.responseBodyName +} + func (meta OperationRestMetadata) ErrorCodeMap() map[string]int { return meta.errorCodeMap } @@ -184,12 +210,13 @@ func (meta OperationRestMetadata) ErrorHeadersNameMap() map[string]string { } func (meta OperationRestMetadata) GetUrlPath( - pathVariableFields map[string]string, queryParamFields map[string]string, + pathVariableFields map[string][]string, queryParamFields map[string][]string, dispatchParam string) string { urlPath := meta.urlTemplate // Substitute path variables with values in the template - for fieldName, fieldStr := range pathVariableFields { - urlPath = strings.Replace(urlPath, fmt.Sprintf("{%s}", fieldName), fieldStr, 1) + for fieldName, fields := range pathVariableFields { + val := url.QueryEscape(strings.Join(fields, "")) + urlPath = strings.Replace(urlPath, fmt.Sprintf("{%s}", fieldName), val, 1) } // Construct the query params portion of the url @@ -202,7 +229,12 @@ func (meta OperationRestMetadata) GetUrlPath( // Add other operation query parameters for fieldName, fieldStr := range queryParamFields { - queryPrams = append(queryPrams, fmt.Sprintf("%s=%s", fieldName, fieldStr)) + for _, e := range fieldStr { + qpKey := url.QueryEscape(fieldName) + qpVal := url.QueryEscape(e) + qparam := fmt.Sprintf("%s=%s", qpKey, qpVal) + queryPrams = append(queryPrams, qparam) + } } queryParamStr := strings.Join(queryPrams, "&") @@ -231,6 +263,14 @@ func (meta OperationRestMetadata) HeaderFieldNames() []string { return getListOfMapValues(meta.headerParamsNameMap) } +func (meta OperationRestMetadata) DispatchHeaderNames() []string { + return getListOfMapValues(meta.dispatchHeaderParams) +} + +func (meta OperationRestMetadata) BodyFieldsNames() []string { + return getListOfMapValues(meta.bodyFieldsMap) +} + func getListOfMapValues(mapValue map[string]string) []string { fields := []string{} for k := range mapValue { diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/version.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/version.go deleted file mode 100644 index ef36e9040..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/version.go +++ /dev/null @@ -1,3 +0,0 @@ -package runtime - -const RuntimeVersion = "2.100.0" diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/version.txt b/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/version.txt deleted file mode 100644 index d60c2d564..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/version.txt +++ /dev/null @@ -1,57 +0,0 @@ -Commit: org.ajoberstar.grgit.Commit(bb6a5cfacd3213780ecdab57a7911a55e9b0aa2a, bb6a5cf, [6ac4f13fb8c3d3429821cbd30c06dc7fb3df0a1c], org.ajoberstar.grgit.Person(Tianhao He, het@vmware.com), org.ajoberstar.grgit.Person(Tianhao He, het@vmware.com), 2019-12-25T14:19:11+08:00[GMT+08:00], [go runtime] Add user-agent support to goruntime - -Following the user-agent func spec, the user-agent header for golang will be: -"/ vAPI/ Go/ (; )" ( info is not supported by go runtime) -A few examples: -"GoSDK/0.1.0 vAPI/2.100.0 Go/go1.13.5 (darwin; amd64)" -"terraform_provider_vmc/1.0.0 vAPI/2.100.0 Go/go1.13.5 (darwin; amd64)" -"vAPI/2.100.0 Go/go1.13.5 (darwin; amd64)" (product version not provided) - -Proposed implementation: -1. The runtime version will be supplied by version.go. It has a const value "RuntimeVersion" -and default value is 2.100.0, represents the internal version. The version will be updated to -the public release version before releasing to github. This step will be covered by the same -script that converts the runtime import statements from gitlab urls to github urls. - -2. The product user-agent will be provided by client code via application context. Code snippet as follows: - connector := client.NewRestConnector("https://vmc.vmware.com", httpClient) - - appContextMap := map[string]*string{} - userAgent := "terraform-provider-vmc/1.0.0" - appContextMap[lib.HTTP_USER_AGENT_HEADER] = &userAgent - connector.SetApplicationContext(core.NewApplicationContext(appContextMap)) - -3. If appContext contains user agent, it will be prepend to runtime user agent and -added to the final User-Agent header in the request - -Testing: -1: http://vapi-jenkins.eng.vmware.com/view/(9)%20pre-checkin/job/vapi-core-precheckin/707/ -2: -? github.com/vmware/vsphere-automation-sdk-go/runtime [no test files] -ok github.com/vmware/vsphere-automation-sdk-go/runtime/bindings (cached) coverage: 59.8% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/common (cached) coverage: 72.7% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/core (cached) coverage: 73.8% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/data (cached) coverage: 28.3% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson (cached) coverage: 92.4% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest (cached) coverage: 69.0% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/l10n (cached) coverage: 78.6% of statements -? github.com/vmware/vsphere-automation-sdk-go/runtime/l10n/runtime [no test files] -? github.com/vmware/vsphere-automation-sdk-go/runtime/lib [no test files] -? github.com/vmware/vsphere-automation-sdk-go/runtime/lib/rest [no test files] -? github.com/vmware/vsphere-automation-sdk-go/runtime/log [no test files] -? github.com/vmware/vsphere-automation-sdk-go/runtime/metadata [no test files] -? github.com/vmware/vsphere-automation-sdk-go/runtime/metadata/info [no test files] -ok github.com/vmware/vsphere-automation-sdk-go/runtime/protocol (cached) coverage: 0.0% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client 1.997s coverage: 47.5% of statements -? github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server [no test files] -ok github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rest (cached) coverage: 39.5% of statements -? github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc [no test files] -ok github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg (cached) coverage: 32.7% of statements -? github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/test [no test files] -ok github.com/vmware/vsphere-automation-sdk-go/runtime/provider/introspection (cached) coverage: 31.7% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/provider/local (cached) coverage: 89.6% of statements -ok github.com/vmware/vsphere-automation-sdk-go/runtime/security (cached) coverage: 76.3% of statements -? github.com/vmware/vsphere-automation-sdk-go/runtime/security/test [no test files] - -review: https://reviewboard.eng.vmware.com/r/1611126/ -, [go runtime] Add user-agent support to goruntime, Wed Dec 25 11:49:11 IST 2019, 1577254751) \ No newline at end of file diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/BatchTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/BatchTypes.go index 586f0a84a..d3786950c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/BatchTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/BatchTypes.go @@ -46,6 +46,8 @@ func batchCreateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["batch_request"] = bindings.NewReferenceType(model.BatchRequestBindingType) fields["atomic"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["batch_request"] = "BatchRequest" @@ -62,14 +64,18 @@ func batchCreateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "batch_request", "POST", "/policy/api/v1/batch", + "", resultHeaders, 201, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ClusterTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ClusterTypes.go index bd4b8bbea..19c38eae9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ClusterTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ClusterTypes.go @@ -53,6 +53,8 @@ func clusterBackuptoremoteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["frame_type"] = bindings.NewOptionalType(bindings.NewStringType()) fields["site_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["frame_type"] = "FrameType" @@ -70,14 +72,18 @@ func clusterBackuptoremoteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=backup_to_remote", "", "POST", "/policy/api/v1/cluster", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func clusterSummarizeinventorytoremoteInputType() bindings.StructType { @@ -98,6 +104,8 @@ func clusterSummarizeinventorytoremoteRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -107,14 +115,18 @@ func clusterSummarizeinventorytoremoteRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=summarize_inventory_to_remote", "", "POST", "/policy/api/v1/cluster", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultBatchClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultBatchClient.go index 934798576..888a765b0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultBatchClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultBatchClient.go @@ -41,12 +41,33 @@ func NewDefaultBatchClient(connector client.Connector) *DefaultBatchClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + bIface := DefaultBatchClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} bIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) bIface.methodNameToDefMap["create"] = bIface.createMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultClusterClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultClusterClient.go index e7d435e5e..452be637f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultClusterClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultClusterClient.go @@ -41,12 +41,33 @@ func NewDefaultClusterClient(connector client.Connector) *DefaultClusterClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + cIface := DefaultClusterClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} cIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) cIface.methodNameToDefMap["backuptoremote"] = cIface.backuptoremoteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultErrorResolverClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultErrorResolverClient.go index c7d46464d..1b601fa45 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultErrorResolverClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultErrorResolverClient.go @@ -43,12 +43,33 @@ func NewDefaultErrorResolverClient(connector client.Connector) *DefaultErrorReso } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultErrorResolverClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["get"] = eIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultGlobalInfraClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultGlobalInfraClient.go index ff5e5d5ff..04444a078 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultGlobalInfraClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultGlobalInfraClient.go @@ -43,12 +43,33 @@ func NewDefaultGlobalInfraClient(connector client.Connector) *DefaultGlobalInfra } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGlobalInfraClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["get"] = gIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultInfraClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultInfraClient.go index 5cd6431aa..2ae6b0c4a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultInfraClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultInfraClient.go @@ -43,12 +43,33 @@ func NewDefaultInfraClient(connector client.Connector) *DefaultInfraClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultInfraClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["get"] = iIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultTasksClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultTasksClient.go index 8c42461ba..05f4661cd 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultTasksClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultTasksClient.go @@ -42,12 +42,33 @@ func NewDefaultTasksClient(connector client.Connector) *DefaultTasksClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + tIface := DefaultTasksClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} tIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) tIface.methodNameToDefMap["get"] = tIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultUiViewsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultUiViewsClient.go index 8e86f65e3..5d9cd5be3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultUiViewsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/DefaultUiViewsClient.go @@ -45,12 +45,33 @@ func NewDefaultUiViewsClient(connector client.Connector) *DefaultUiViewsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + uIface := DefaultUiViewsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} uIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) uIface.methodNameToDefMap["create"] = uIface.createMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ErrorResolverTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ErrorResolverTypes.go index 650ca8cce..22ccacaee 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ErrorResolverTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/ErrorResolverTypes.go @@ -44,6 +44,8 @@ func errorResolverGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["error_id"] = bindings.NewStringType() fieldNameMap["error_id"] = "ErrorId" paramsTypeMap["error_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func errorResolverGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/error-resolver/{errorId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func errorResolverListInputType() bindings.StructType { @@ -86,6 +92,8 @@ func errorResolverListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -95,14 +103,18 @@ func errorResolverListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/error-resolver", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func errorResolverResolveerrorInputType() bindings.StructType { @@ -125,6 +137,8 @@ func errorResolverResolveerrorRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["error_resolver_metadata_list"] = bindings.NewReferenceType(model.ErrorResolverMetadataListBindingType) fieldNameMap["error_resolver_metadata_list"] = "ErrorResolverMetadataList" paramsTypeMap["error_resolver_metadata_list"] = bindings.NewReferenceType(model.ErrorResolverMetadataListBindingType) @@ -137,14 +151,18 @@ func errorResolverResolveerrorRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=resolve_error", "error_resolver_metadata_list", "POST", "/policy/api/v1/error-resolver", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/GlobalInfraTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/GlobalInfraTypes.go index 26bf5532f..441e92f8a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/GlobalInfraTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/GlobalInfraTypes.go @@ -44,6 +44,8 @@ func globalInfraGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["filter"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["filter"] = "Filter" paramsTypeMap["filter"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -57,14 +59,18 @@ func globalInfraGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/global-infra", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalInfraPatchInputType() bindings.StructType { @@ -89,6 +95,8 @@ func globalInfraPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra"] = bindings.NewReferenceType(model.InfraBindingType) fields["enforce_revision_check"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["infra"] = "Infra" @@ -105,14 +113,18 @@ func globalInfraPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "infra", "PATCH", "/policy/api/v1/global-infra", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalInfraUpdateInputType() bindings.StructType { @@ -135,6 +147,8 @@ func globalInfraUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra"] = bindings.NewReferenceType(model.InfraBindingType) fieldNameMap["infra"] = "Infra" paramsTypeMap["infra"] = bindings.NewReferenceType(model.InfraBindingType) @@ -147,14 +161,18 @@ func globalInfraUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "infra", "PUT", "/policy/api/v1/global-infra", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/InfraTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/InfraTypes.go index 043ea3191..63e5166a9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/InfraTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/InfraTypes.go @@ -44,6 +44,8 @@ func infraGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["filter"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["filter"] = "Filter" paramsTypeMap["filter"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -57,14 +59,18 @@ func infraGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func infraPatchInputType() bindings.StructType { @@ -89,6 +95,8 @@ func infraPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra"] = bindings.NewReferenceType(model.InfraBindingType) fields["enforce_revision_check"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["infra"] = "Infra" @@ -105,14 +113,18 @@ func infraPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "infra", "PATCH", "/policy/api/v1/infra", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func infraUpdateInputType() bindings.StructType { @@ -135,6 +147,8 @@ func infraUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra"] = bindings.NewReferenceType(model.InfraBindingType) fieldNameMap["infra"] = "Infra" paramsTypeMap["infra"] = bindings.NewReferenceType(model.InfraBindingType) @@ -147,14 +161,18 @@ func infraUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "infra", "PUT", "/policy/api/v1/infra", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/TasksTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/TasksTypes.go index 6c3ae1acc..04ebacec1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/TasksTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/TasksTypes.go @@ -44,6 +44,8 @@ func tasksGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["task_id"] = bindings.NewStringType() fieldNameMap["task_id"] = "TaskId" paramsTypeMap["task_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func tasksGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/tasks/{taskId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tasksListInputType() bindings.StructType { @@ -102,6 +108,8 @@ func tasksListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -143,14 +151,18 @@ func tasksListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/tasks", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/UiViewsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/UiViewsTypes.go index 08212abaf..059fd913a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/UiViewsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/UiViewsTypes.go @@ -44,6 +44,8 @@ func uiViewsCreateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["view"] = bindings.NewReferenceType(model.ViewBindingType) fieldNameMap["view"] = "View" paramsTypeMap["view"] = bindings.NewReferenceType(model.ViewBindingType) @@ -56,14 +58,18 @@ func uiViewsCreateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "view", "POST", "/policy/api/v1/ui-views", + "", resultHeaders, 201, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func uiViewsDeleteInputType() bindings.StructType { @@ -86,6 +92,8 @@ func uiViewsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["view_id"] = bindings.NewStringType() fieldNameMap["view_id"] = "ViewId" paramsTypeMap["view_id"] = bindings.NewStringType() @@ -100,14 +108,18 @@ func uiViewsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/ui-views/{viewId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func uiViewsGetInputType() bindings.StructType { @@ -134,6 +146,8 @@ func uiViewsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tag"] = bindings.NewOptionalType(bindings.NewStringType()) fields["view_ids"] = bindings.NewOptionalType(bindings.NewStringType()) fields["widget_id"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -155,14 +169,18 @@ func uiViewsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/ui-views", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func uiViewsGet0InputType() bindings.StructType { @@ -185,6 +203,8 @@ func uiViewsGet0RestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["view_id"] = bindings.NewStringType() fieldNameMap["view_id"] = "ViewId" paramsTypeMap["view_id"] = bindings.NewStringType() @@ -199,14 +219,18 @@ func uiViewsGet0RestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/ui-views/{viewId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func uiViewsUpdateInputType() bindings.StructType { @@ -231,6 +255,8 @@ func uiViewsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["view_id"] = bindings.NewStringType() fields["view"] = bindings.NewReferenceType(model.ViewBindingType) fieldNameMap["view_id"] = "ViewId" @@ -248,14 +274,18 @@ func uiViewsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "view", "PUT", "/policy/api/v1/ui-views/{viewId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.mod b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.mod index 354e0a21b..753751bcb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.mod +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.mod @@ -3,6 +3,6 @@ module github.com/vmware/vsphere-automation-sdk-go/services/nsxt go 1.13 require ( - github.com/vmware/vsphere-automation-sdk-go/lib v0.1.1 - github.com/vmware/vsphere-automation-sdk-go/runtime v0.1.1 + github.com/vmware/vsphere-automation-sdk-go/lib v0.2.0 + github.com/vmware/vsphere-automation-sdk-go/runtime v0.2.0 ) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.sum b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.sum index f251e8511..71468d5da 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.sum +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/go.sum @@ -4,16 +4,16 @@ github.com/gibson042/canonicaljson-go v1.0.3 h1:EAyF8L74AWabkyUmrvEFHEt/AGFQeD6R github.com/gibson042/canonicaljson-go v1.0.3/go.mod h1:DsLpJTThXyGNO+KZlI85C1/KDcImpP67k/RKVjcaEqo= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/mux v1.7.3 h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/vmware/vsphere-automation-sdk-go v0.0.0-20200303084839-ec191ddcbac6 h1:86j5sxzqzKg8IGaQqow7IfaMG8Pbvgn7PTfF/Q2JWHQ= -github.com/vmware/vsphere-automation-sdk-go/lib v0.1.1 h1:PmDaeuToX1QKKe9VWRJztAp2/IyjbbGZp6fEiff4Dr8= -github.com/vmware/vsphere-automation-sdk-go/lib v0.1.1/go.mod h1:BkjnHZykqeKKYDZEhyT4pxrEWprYqp4yC0xoCky6wjA= -github.com/vmware/vsphere-automation-sdk-go/runtime v0.1.1 h1:gsbyhqLBiYZQRs0EBPNijKkJNSGcvs1IlRmRi790o84= -github.com/vmware/vsphere-automation-sdk-go/runtime v0.1.1/go.mod h1:SRcvjNB5LycQEoeuwdwf9tSZ/glCmIBPfclZyk/+GLc= +github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/vmware/vsphere-automation-sdk-go/lib v0.2.0 h1:noiASkafwxvCmmCtZK0f1pt06R8c+Fkt9TcZW7xpYy0= +github.com/vmware/vsphere-automation-sdk-go/lib v0.2.0/go.mod h1://FsAiCrr+T/Eq2Uxtq8UPVPbZWV7iLIvvXK17rsIxE= +github.com/vmware/vsphere-automation-sdk-go/runtime v0.2.0 h1:AM5AK9cyiJWFIfxrh1U/kuRFh+A2pymCEGiXqAkPzzw= +github.com/vmware/vsphere-automation-sdk-go/runtime v0.2.0/go.mod h1:M6pTKDrJrPlVG++lboLRf0bDYc3TJ2fsR+KOoWXfCns= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/BfdProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/BfdProfilesTypes.go index 145a72f46..e1ad528b3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/BfdProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/BfdProfilesTypes.go @@ -44,6 +44,8 @@ func bfdProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["bfd_profile_id"] = bindings.NewStringType() fieldNameMap["bfd_profile_id"] = "BfdProfileId" paramsTypeMap["bfd_profile_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func bfdProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/bfd-profiles/{bfdProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func bfdProfilesGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func bfdProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["bfd_profile_id"] = bindings.NewStringType() fieldNameMap["bfd_profile_id"] = "BfdProfileId" paramsTypeMap["bfd_profile_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func bfdProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/bfd-profiles/{bfdProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func bfdProfilesListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func bfdProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func bfdProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/bfd-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func bfdProfilesPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func bfdProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["bfd_profile_id"] = bindings.NewStringType() fields["bfd_profile"] = bindings.NewReferenceType(model.BfdProfileBindingType) fieldNameMap["bfd_profile_id"] = "BfdProfileId" @@ -224,14 +244,18 @@ func bfdProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "bfd_profile", "PATCH", "/policy/api/v1/infra/bfd-profiles/{bfdProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func bfdProfilesUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func bfdProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["bfd_profile_id"] = bindings.NewStringType() fields["bfd_profile"] = bindings.NewReferenceType(model.BfdProfileBindingType) fieldNameMap["bfd_profile_id"] = "BfdProfileId" @@ -273,14 +299,18 @@ func bfdProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "bfd_profile", "PUT", "/policy/api/v1/infra/bfd-profiles/{bfdProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CertificatesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CertificatesTypes.go index 5405d3b0b..ab3fefe92 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CertificatesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CertificatesTypes.go @@ -46,6 +46,8 @@ func certificatesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["certificate_id"] = bindings.NewStringType() fieldNameMap["certificate_id"] = "CertificateId" paramsTypeMap["certificate_id"] = bindings.NewStringType() @@ -60,14 +62,18 @@ func certificatesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/certificates/{certificateId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func certificatesGetInputType() bindings.StructType { @@ -92,6 +98,8 @@ func certificatesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["certificate_id"] = bindings.NewStringType() fields["details"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["certificate_id"] = "CertificateId" @@ -110,14 +118,18 @@ func certificatesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/certificates/{certificateId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func certificatesListInputType() bindings.StructType { @@ -152,6 +164,8 @@ func certificatesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["details"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -189,14 +203,18 @@ func certificatesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/certificates", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func certificatesPatchInputType() bindings.StructType { @@ -221,6 +239,8 @@ func certificatesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["certificate_id"] = bindings.NewStringType() fields["tls_trust_data"] = bindings.NewReferenceType(model.TlsTrustDataBindingType) fieldNameMap["certificate_id"] = "CertificateId" @@ -238,14 +258,18 @@ func certificatesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tls_trust_data", "PATCH", "/policy/api/v1/infra/certificates/{certificateId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func certificatesUpdateInputType() bindings.StructType { @@ -270,6 +294,8 @@ func certificatesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["certificate_id"] = bindings.NewStringType() fields["tls_trust_data"] = bindings.NewReferenceType(model.TlsTrustDataBindingType) fieldNameMap["certificate_id"] = "CertificateId" @@ -287,14 +313,18 @@ func certificatesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tls_trust_data", "PUT", "/policy/api/v1/infra/certificates/{certificateId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ConstraintsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ConstraintsTypes.go index d184bebb3..fd85fdd95 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ConstraintsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ConstraintsTypes.go @@ -44,6 +44,8 @@ func constraintsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["constraint_id"] = bindings.NewStringType() fieldNameMap["constraint_id"] = "ConstraintId" paramsTypeMap["constraint_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func constraintsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/constraints/{constraintId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func constraintsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func constraintsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["constraint_id"] = bindings.NewStringType() fieldNameMap["constraint_id"] = "ConstraintId" paramsTypeMap["constraint_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func constraintsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/constraints/{constraintId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func constraintsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func constraintsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func constraintsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/constraints", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func constraintsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func constraintsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["constraint_id"] = bindings.NewStringType() fields["constraint"] = bindings.NewReferenceType(model.ConstraintBindingType) fieldNameMap["constraint_id"] = "ConstraintId" @@ -224,14 +244,18 @@ func constraintsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "constraint", "PATCH", "/policy/api/v1/infra/constraints/{constraintId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func constraintsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func constraintsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["constraint_id"] = bindings.NewStringType() fields["constraint"] = bindings.NewReferenceType(model.ConstraintBindingType) fieldNameMap["constraint_id"] = "ConstraintId" @@ -273,14 +299,18 @@ func constraintsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "constraint", "PUT", "/policy/api/v1/infra/constraints/{constraintId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesClient.go index 8d0fe19a6..678d8698d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesClient.go @@ -20,13 +20,12 @@ type ContextProfilesClient interface { // // @param contextProfileIdParam Policy Context Profile Id (required) // @param forceParam Force delete the resource even if it is being used somewhere (optional, default to false) - // @param overrideParam Delete the locally overriden global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(contextProfileIdParam string, forceParam *bool, overrideParam *bool) error + Delete(contextProfileIdParam string, forceParam *bool) error // Get a single PolicyContextProfile by id // @@ -59,24 +58,22 @@ type ContextProfilesClient interface { // // @param contextProfileIdParam (required) // @param policyContextProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile, overrideParam *bool) error + Patch(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile) error // Creates/Updates a PolicyContextProfile, which encapsulates attribute and sub-attributes of network services. Rules for using attributes and sub-attributes in single PolicyContextProfile 1. One type of attribute can't have multiple occurrences. ( Eg. - Attribute type APP_ID can be used only once per PolicyContextProfile.) 2. For specifying multiple values for an attribute, provide them in an array. 3. If sub-attribtes are mentioned for an attribute, then only single value is allowed for that attribute. 4. To get a list of supported attributes and sub-attributes fire the following REST API GET https:///policy/api/v1/infra/context-profiles/attributes // // @param contextProfileIdParam (required) // @param policyContextProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.PolicyContextProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile, overrideParam *bool) (model.PolicyContextProfile, error) + Update(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile) (model.PolicyContextProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesTypes.go index f92c751c5..fa7f4b10c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ContextProfilesTypes.go @@ -29,10 +29,8 @@ func contextProfilesDeleteInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["context_profile_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["context_profile_id"] = "ContextProfileId" fieldNameMap["force"] = "Force" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -48,19 +46,17 @@ func contextProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["context_profile_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["context_profile_id"] = "ContextProfileId" fieldNameMap["force"] = "Force" - fieldNameMap["override"] = "Override" paramsTypeMap["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["context_profile_id"] = bindings.NewStringType() paramsTypeMap["contextProfileId"] = bindings.NewStringType() pathParams["context_profile_id"] = "contextProfileId" queryParams["force"] = "force" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -70,14 +66,18 @@ func contextProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/context-profiles/{contextProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func contextProfilesGetInputType() bindings.StructType { @@ -100,6 +100,8 @@ func contextProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["context_profile_id"] = bindings.NewStringType() fieldNameMap["context_profile_id"] = "ContextProfileId" paramsTypeMap["context_profile_id"] = bindings.NewStringType() @@ -114,14 +116,18 @@ func contextProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/context-profiles/{contextProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func contextProfilesListInputType() bindings.StructType { @@ -154,6 +160,8 @@ func contextProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -187,14 +195,18 @@ func contextProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/context-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func contextProfilesPatchInputType() bindings.StructType { @@ -202,10 +214,8 @@ func contextProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["context_profile_id"] = bindings.NewStringType() fields["policy_context_profile"] = bindings.NewReferenceType(model.PolicyContextProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["context_profile_id"] = "ContextProfileId" fieldNameMap["policy_context_profile"] = "PolicyContextProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -221,18 +231,16 @@ func contextProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["context_profile_id"] = bindings.NewStringType() fields["policy_context_profile"] = bindings.NewReferenceType(model.PolicyContextProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["context_profile_id"] = "ContextProfileId" fieldNameMap["policy_context_profile"] = "PolicyContextProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["context_profile_id"] = bindings.NewStringType() paramsTypeMap["policy_context_profile"] = bindings.NewReferenceType(model.PolicyContextProfileBindingType) paramsTypeMap["contextProfileId"] = bindings.NewStringType() pathParams["context_profile_id"] = "contextProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -242,14 +250,18 @@ func contextProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_context_profile", "PATCH", "/policy/api/v1/infra/context-profiles/{contextProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func contextProfilesUpdateInputType() bindings.StructType { @@ -257,10 +269,8 @@ func contextProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["context_profile_id"] = bindings.NewStringType() fields["policy_context_profile"] = bindings.NewReferenceType(model.PolicyContextProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["context_profile_id"] = "ContextProfileId" fieldNameMap["policy_context_profile"] = "PolicyContextProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -276,18 +286,16 @@ func contextProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["context_profile_id"] = bindings.NewStringType() fields["policy_context_profile"] = bindings.NewReferenceType(model.PolicyContextProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["context_profile_id"] = "ContextProfileId" fieldNameMap["policy_context_profile"] = "PolicyContextProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["context_profile_id"] = bindings.NewStringType() paramsTypeMap["policy_context_profile"] = bindings.NewReferenceType(model.PolicyContextProfileBindingType) paramsTypeMap["contextProfileId"] = bindings.NewStringType() pathParams["context_profile_id"] = "contextProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -297,14 +305,18 @@ func contextProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_context_profile", "PUT", "/policy/api/v1/infra/context-profiles/{contextProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CrlsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CrlsTypes.go index 42bc1b65e..54c0af5e5 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CrlsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/CrlsTypes.go @@ -46,6 +46,8 @@ func crlsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["crl_id"] = bindings.NewStringType() fieldNameMap["crl_id"] = "CrlId" paramsTypeMap["crl_id"] = bindings.NewStringType() @@ -60,14 +62,18 @@ func crlsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/crls/{crlId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func crlsGetInputType() bindings.StructType { @@ -92,6 +98,8 @@ func crlsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["crl_id"] = bindings.NewStringType() fields["details"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["crl_id"] = "CrlId" @@ -110,14 +118,18 @@ func crlsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/crls/{crlId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func crlsImportcrlInputType() bindings.StructType { @@ -142,6 +154,8 @@ func crlsImportcrlRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["crl_id"] = bindings.NewStringType() fields["tls_crl"] = bindings.NewReferenceType(model.TlsCrlBindingType) fieldNameMap["crl_id"] = "CrlId" @@ -159,14 +173,18 @@ func crlsImportcrlRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=import", "tls_crl", "POST", "/policy/api/v1/infra/crls/{crlId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func crlsListInputType() bindings.StructType { @@ -201,6 +219,8 @@ func crlsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["details"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -238,14 +258,18 @@ func crlsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/crls", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func crlsPatchInputType() bindings.StructType { @@ -270,6 +294,8 @@ func crlsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["crl_id"] = bindings.NewStringType() fields["tls_crl"] = bindings.NewReferenceType(model.TlsCrlBindingType) fieldNameMap["crl_id"] = "CrlId" @@ -287,14 +313,18 @@ func crlsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tls_crl", "PATCH", "/policy/api/v1/infra/crls/{crlId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func crlsUpdateInputType() bindings.StructType { @@ -319,6 +349,8 @@ func crlsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["crl_id"] = bindings.NewStringType() fields["tls_crl"] = bindings.NewReferenceType(model.TlsCrlBindingType) fieldNameMap["crl_id"] = "CrlId" @@ -336,14 +368,18 @@ func crlsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tls_crl", "PUT", "/policy/api/v1/infra/crls/{crlId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultBfdProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultBfdProfilesClient.go index bb8676dec..b0c95bfbd 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultBfdProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultBfdProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultBfdProfilesClient(connector client.Connector) *DefaultBfdProfiles } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + bIface := DefaultBfdProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} bIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) bIface.methodNameToDefMap["delete"] = bIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCertificatesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCertificatesClient.go index f0920c72b..435c6f4bf 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCertificatesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCertificatesClient.go @@ -45,12 +45,33 @@ func NewDefaultCertificatesClient(connector client.Connector) *DefaultCertificat } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + cIface := DefaultCertificatesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} cIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) cIface.methodNameToDefMap["delete"] = cIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultConstraintsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultConstraintsClient.go index 69dbc1573..47d7190b1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultConstraintsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultConstraintsClient.go @@ -45,12 +45,33 @@ func NewDefaultConstraintsClient(connector client.Connector) *DefaultConstraints } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + cIface := DefaultConstraintsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} cIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) cIface.methodNameToDefMap["delete"] = cIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultContextProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultContextProfilesClient.go index 812dd25c5..6d468453d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultContextProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultContextProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultContextProfilesClient(connector client.Connector) *DefaultContext } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + cIface := DefaultContextProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} cIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) cIface.methodNameToDefMap["delete"] = cIface.deleteMethodDefinition() @@ -61,13 +82,12 @@ func NewDefaultContextProfilesClient(connector client.Connector) *DefaultContext return &cIface } -func (cIface *DefaultContextProfilesClient) Delete(contextProfileIdParam string, forceParam *bool, overrideParam *bool) error { +func (cIface *DefaultContextProfilesClient) Delete(contextProfileIdParam string, forceParam *bool) error { typeConverter := cIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(cIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(contextProfilesDeleteInputType(), typeConverter) sv.AddStructField("ContextProfileId", contextProfileIdParam) sv.AddStructField("Force", forceParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -158,13 +178,12 @@ func (cIface *DefaultContextProfilesClient) List(cursorParam *string, includeMar } } -func (cIface *DefaultContextProfilesClient) Patch(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile, overrideParam *bool) error { +func (cIface *DefaultContextProfilesClient) Patch(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile) error { typeConverter := cIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(cIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(contextProfilesPatchInputType(), typeConverter) sv.AddStructField("ContextProfileId", contextProfileIdParam) sv.AddStructField("PolicyContextProfile", policyContextProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -186,13 +205,12 @@ func (cIface *DefaultContextProfilesClient) Patch(contextProfileIdParam string, } } -func (cIface *DefaultContextProfilesClient) Update(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile, overrideParam *bool) (model.PolicyContextProfile, error) { +func (cIface *DefaultContextProfilesClient) Update(contextProfileIdParam string, policyContextProfileParam model.PolicyContextProfile) (model.PolicyContextProfile, error) { typeConverter := cIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(cIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(contextProfilesUpdateInputType(), typeConverter) sv.AddStructField("ContextProfileId", contextProfileIdParam) sv.AddStructField("PolicyContextProfile", policyContextProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.PolicyContextProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCrlsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCrlsClient.go index d711afabd..91e6c2b02 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCrlsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultCrlsClient.go @@ -46,12 +46,33 @@ func NewDefaultCrlsClient(connector client.Connector) *DefaultCrlsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + cIface := DefaultCrlsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} cIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) cIface.methodNameToDefMap["delete"] = cIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDeploymentZonesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDeploymentZonesClient.go index 788169b51..fa89b2e0c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDeploymentZonesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDeploymentZonesClient.go @@ -42,12 +42,33 @@ func NewDefaultDeploymentZonesClient(connector client.Connector) *DefaultDeploym } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDeploymentZonesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["get"] = dIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpRelayConfigsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpRelayConfigsClient.go index 8088ae68d..1c86afabe 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpRelayConfigsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpRelayConfigsClient.go @@ -45,12 +45,33 @@ func NewDefaultDhcpRelayConfigsClient(connector client.Connector) *DefaultDhcpRe } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDhcpRelayConfigsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpServerConfigsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpServerConfigsClient.go index bfb79093d..8cc9a4d05 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpServerConfigsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDhcpServerConfigsClient.go @@ -45,12 +45,33 @@ func NewDefaultDhcpServerConfigsClient(connector client.Connector) *DefaultDhcpS } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDhcpServerConfigsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsForwarderZonesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsForwarderZonesClient.go index 0081a1e6e..b58b5e669 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsForwarderZonesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsForwarderZonesClient.go @@ -45,12 +45,33 @@ func NewDefaultDnsForwarderZonesClient(connector client.Connector) *DefaultDnsFo } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDnsForwarderZonesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsSecurityProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsSecurityProfilesClient.go index cba118c07..af738289b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsSecurityProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDnsSecurityProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultDnsSecurityProfilesClient(connector client.Connector) *DefaultDns } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDnsSecurityProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultDnsSecurityProfilesClient(connector client.Connector) *DefaultDns return &dIface } -func (dIface *DefaultDnsSecurityProfilesClient) Delete(profileIdParam string, overrideParam *bool) error { +func (dIface *DefaultDnsSecurityProfilesClient) Delete(profileIdParam string) error { typeConverter := dIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(dIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(dnsSecurityProfilesDeleteInputType(), typeConverter) sv.AddStructField("ProfileId", profileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (dIface *DefaultDnsSecurityProfilesClient) List(cursorParam *string, includ } } -func (dIface *DefaultDnsSecurityProfilesClient) Patch(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile, overrideParam *bool) error { +func (dIface *DefaultDnsSecurityProfilesClient) Patch(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile) error { typeConverter := dIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(dIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(dnsSecurityProfilesPatchInputType(), typeConverter) sv.AddStructField("ProfileId", profileIdParam) sv.AddStructField("DnsSecurityProfile", dnsSecurityProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (dIface *DefaultDnsSecurityProfilesClient) Patch(profileIdParam string, dns } } -func (dIface *DefaultDnsSecurityProfilesClient) Update(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile, overrideParam *bool) (model.DnsSecurityProfile, error) { +func (dIface *DefaultDnsSecurityProfilesClient) Update(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile) (model.DnsSecurityProfile, error) { typeConverter := dIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(dIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(dnsSecurityProfilesUpdateInputType(), typeConverter) sv.AddStructField("ProfileId", profileIdParam) sv.AddStructField("DnsSecurityProfile", dnsSecurityProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.DnsSecurityProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDomainsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDomainsClient.go index 10bef8a7e..5850ca3b2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDomainsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDomainsClient.go @@ -45,12 +45,33 @@ func NewDefaultDomainsClient(connector client.Connector) *DefaultDomainsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDomainsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDraftsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDraftsClient.go index b4aba9df1..6a8f0435d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDraftsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultDraftsClient.go @@ -46,12 +46,33 @@ func NewDefaultDraftsClient(connector client.Connector) *DefaultDraftsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDraftsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFederationConfigClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFederationConfigClient.go index 6cee26377..3fe396581 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFederationConfigClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFederationConfigClient.go @@ -41,12 +41,33 @@ func NewDefaultFederationConfigClient(connector client.Connector) *DefaultFedera } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFederationConfigClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["get"] = fIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSchedulersClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSchedulersClient.go index 0e8d361c7..eecccda1d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSchedulersClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSchedulersClient.go @@ -45,12 +45,33 @@ func NewDefaultFirewallSchedulersClient(connector client.Connector) *DefaultFire } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFirewallSchedulersClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSessionTimerProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSessionTimerProfilesClient.go index a6dda23b5..e61b23b1d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSessionTimerProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFirewallSessionTimerProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultFirewallSessionTimerProfilesClient(connector client.Connector) *D } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFirewallSessionTimerProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultFirewallSessionTimerProfilesClient(connector client.Connector) *D return &fIface } -func (fIface *DefaultFirewallSessionTimerProfilesClient) Delete(firewallSessionTimerProfileIdParam string, overrideParam *bool) error { +func (fIface *DefaultFirewallSessionTimerProfilesClient) Delete(firewallSessionTimerProfileIdParam string) error { typeConverter := fIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(fIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(firewallSessionTimerProfilesDeleteInputType(), typeConverter) sv.AddStructField("FirewallSessionTimerProfileId", firewallSessionTimerProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (fIface *DefaultFirewallSessionTimerProfilesClient) List(cursorParam *strin } } -func (fIface *DefaultFirewallSessionTimerProfilesClient) Patch(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile, overrideParam *bool) error { +func (fIface *DefaultFirewallSessionTimerProfilesClient) Patch(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile) error { typeConverter := fIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(fIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(firewallSessionTimerProfilesPatchInputType(), typeConverter) sv.AddStructField("FirewallSessionTimerProfileId", firewallSessionTimerProfileIdParam) sv.AddStructField("PolicyFirewallSessionTimerProfile", policyFirewallSessionTimerProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (fIface *DefaultFirewallSessionTimerProfilesClient) Patch(firewallSessionTi } } -func (fIface *DefaultFirewallSessionTimerProfilesClient) Update(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile, overrideParam *bool) (model.PolicyFirewallSessionTimerProfile, error) { +func (fIface *DefaultFirewallSessionTimerProfilesClient) Update(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile) (model.PolicyFirewallSessionTimerProfile, error) { typeConverter := fIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(fIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(firewallSessionTimerProfilesUpdateInputType(), typeConverter) sv.AddStructField("FirewallSessionTimerProfileId", firewallSessionTimerProfileIdParam) sv.AddStructField("PolicyFirewallSessionTimerProfile", policyFirewallSessionTimerProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.PolicyFirewallSessionTimerProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFloodProtectionProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFloodProtectionProfilesClient.go index 31ae7fadc..8e07feee9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFloodProtectionProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFloodProtectionProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultFloodProtectionProfilesClient(connector client.Connector) *Defaul } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFloodProtectionProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultFloodProtectionProfilesClient(connector client.Connector) *Defaul return &fIface } -func (fIface *DefaultFloodProtectionProfilesClient) Delete(floodProtectionProfileIdParam string, overrideParam *bool) error { +func (fIface *DefaultFloodProtectionProfilesClient) Delete(floodProtectionProfileIdParam string) error { typeConverter := fIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(fIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(floodProtectionProfilesDeleteInputType(), typeConverter) sv.AddStructField("FloodProtectionProfileId", floodProtectionProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (fIface *DefaultFloodProtectionProfilesClient) List(cursorParam *string, in } } -func (fIface *DefaultFloodProtectionProfilesClient) Patch(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue, overrideParam *bool) error { +func (fIface *DefaultFloodProtectionProfilesClient) Patch(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue) error { typeConverter := fIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(fIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(floodProtectionProfilesPatchInputType(), typeConverter) sv.AddStructField("FloodProtectionProfileId", floodProtectionProfileIdParam) sv.AddStructField("FloodProtectionProfile", floodProtectionProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (fIface *DefaultFloodProtectionProfilesClient) Patch(floodProtectionProfile } } -func (fIface *DefaultFloodProtectionProfilesClient) Update(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue, overrideParam *bool) (*data.StructValue, error) { +func (fIface *DefaultFloodProtectionProfilesClient) Update(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue) (*data.StructValue, error) { typeConverter := fIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(fIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(floodProtectionProfilesUpdateInputType(), typeConverter) sv.AddStructField("FloodProtectionProfileId", floodProtectionProfileIdParam) sv.AddStructField("FloodProtectionProfile", floodProtectionProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput *data.StructValue diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFullSyncStatesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFullSyncStatesClient.go index e6a210d93..4c47a8d1b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFullSyncStatesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultFullSyncStatesClient.go @@ -42,12 +42,33 @@ func NewDefaultFullSyncStatesClient(connector client.Connector) *DefaultFullSync } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFullSyncStatesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["get"] = fIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGatewayQosProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGatewayQosProfilesClient.go index b5c405fa1..fd19e0f2d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGatewayQosProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGatewayQosProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultGatewayQosProfilesClient(connector client.Connector) *DefaultGate } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGatewayQosProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["delete"] = gIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultGatewayQosProfilesClient(connector client.Connector) *DefaultGate return &gIface } -func (gIface *DefaultGatewayQosProfilesClient) Delete(qosProfileIdParam string, overrideParam *bool) error { +func (gIface *DefaultGatewayQosProfilesClient) Delete(qosProfileIdParam string) error { typeConverter := gIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(gatewayQosProfilesDeleteInputType(), typeConverter) sv.AddStructField("QosProfileId", qosProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (gIface *DefaultGatewayQosProfilesClient) List(cursorParam *string, include } } -func (gIface *DefaultGatewayQosProfilesClient) Patch(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile, overrideParam *bool) error { +func (gIface *DefaultGatewayQosProfilesClient) Patch(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile) error { typeConverter := gIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(gatewayQosProfilesPatchInputType(), typeConverter) sv.AddStructField("QosProfileId", qosProfileIdParam) sv.AddStructField("GatewayQosProfile", gatewayQosProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (gIface *DefaultGatewayQosProfilesClient) Patch(qosProfileIdParam string, g } } -func (gIface *DefaultGatewayQosProfilesClient) Update(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile, overrideParam *bool) (model.GatewayQosProfile, error) { +func (gIface *DefaultGatewayQosProfilesClient) Update(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile) (model.GatewayQosProfile, error) { typeConverter := gIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(gatewayQosProfilesUpdateInputType(), typeConverter) sv.AddStructField("QosProfileId", qosProfileIdParam) sv.AddStructField("GatewayQosProfile", gatewayQosProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.GatewayQosProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalConfigClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalConfigClient.go index 89b9ee9e5..c1815db9e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalConfigClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalConfigClient.go @@ -43,12 +43,33 @@ func NewDefaultGlobalConfigClient(connector client.Connector) *DefaultGlobalConf } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGlobalConfigClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["get"] = gIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalManagerConfigClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalManagerConfigClient.go new file mode 100644 index 000000000..161a1ac7a --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalManagerConfigClient.go @@ -0,0 +1,364 @@ + +/* Copyright © 2019 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +// Code generated. DO NOT EDIT. + +/* + * Client stubs for service: GlobalManagerConfig + * Functions that implement the generated GlobalManagerConfigClient interface + */ + + +package infra + +import ( + "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" + "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors" + "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" + "github.com/vmware/vsphere-automation-sdk-go/runtime/core" + "github.com/vmware/vsphere-automation-sdk-go/runtime/data" + "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" + "github.com/vmware/vsphere-automation-sdk-go/runtime/log" + "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" +) + +type DefaultGlobalManagerConfigClient struct { + interfaceName string + interfaceDefinition core.InterfaceDefinition + methodIdentifiers []core.MethodIdentifier + methodNameToDefMap map[string]*core.MethodDefinition + errorBindingMap map[string]bindings.BindingType + interfaceIdentifier core.InterfaceIdentifier + connector client.Connector +} + +func NewDefaultGlobalManagerConfigClient(connector client.Connector) *DefaultGlobalManagerConfigClient { + interfaceName := "com.vmware.nsx_policy.infra.global_manager_config" + interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) + methodIdentifiers := []core.MethodIdentifier{ + core.NewMethodIdentifier(interfaceIdentifier, "patch"), + core.NewMethodIdentifier(interfaceIdentifier, "showsensitivedata"), + core.NewMethodIdentifier(interfaceIdentifier, "update"), + } + interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) + errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() + errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() + errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() + errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + + gIface := DefaultGlobalManagerConfigClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} + gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) + gIface.methodNameToDefMap["patch"] = gIface.patchMethodDefinition() + gIface.methodNameToDefMap["showsensitivedata"] = gIface.showsensitivedataMethodDefinition() + gIface.methodNameToDefMap["update"] = gIface.updateMethodDefinition() + return &gIface +} + +func (gIface *DefaultGlobalManagerConfigClient) Patch(globalManagerConfigParam model.GlobalManagerConfig) error { + typeConverter := gIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "patch") + sv := bindings.NewStructValueBuilder(globalManagerConfigPatchInputType(), typeConverter) + sv.AddStructField("GlobalManagerConfig", globalManagerConfigParam) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + return bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := globalManagerConfigPatchRestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + gIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := gIface.connector.NewExecutionContext() + methodResult := gIface.Invoke(executionContext, methodIdentifier, inputDataValue) + if methodResult.IsSuccess() { + return nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), gIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return bindings.VAPIerrorsToError(errorInError) + } + return methodError.(error) + } +} + +func (gIface *DefaultGlobalManagerConfigClient) Showsensitivedata() (model.GlobalManagerConfig, error) { + typeConverter := gIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "showsensitivedata") + sv := bindings.NewStructValueBuilder(globalManagerConfigShowsensitivedataInputType(), typeConverter) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + var emptyOutput model.GlobalManagerConfig + return emptyOutput, bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := globalManagerConfigShowsensitivedataRestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + gIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := gIface.connector.NewExecutionContext() + methodResult := gIface.Invoke(executionContext, methodIdentifier, inputDataValue) + var emptyOutput model.GlobalManagerConfig + if methodResult.IsSuccess() { + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), globalManagerConfigShowsensitivedataOutputType()) + if errorInOutput != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) + } + return output.(model.GlobalManagerConfig), nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), gIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInError) + } + return emptyOutput, methodError.(error) + } +} + +func (gIface *DefaultGlobalManagerConfigClient) Update(globalManagerConfigParam model.GlobalManagerConfig) (model.GlobalManagerConfig, error) { + typeConverter := gIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "update") + sv := bindings.NewStructValueBuilder(globalManagerConfigUpdateInputType(), typeConverter) + sv.AddStructField("GlobalManagerConfig", globalManagerConfigParam) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + var emptyOutput model.GlobalManagerConfig + return emptyOutput, bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := globalManagerConfigUpdateRestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + gIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := gIface.connector.NewExecutionContext() + methodResult := gIface.Invoke(executionContext, methodIdentifier, inputDataValue) + var emptyOutput model.GlobalManagerConfig + if methodResult.IsSuccess() { + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), globalManagerConfigUpdateOutputType()) + if errorInOutput != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) + } + return output.(model.GlobalManagerConfig), nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), gIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInError) + } + return emptyOutput, methodError.(error) + } +} + + +func (gIface *DefaultGlobalManagerConfigClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { + methodResult := gIface.connector.GetApiProvider().Invoke(gIface.interfaceName, methodId.Name(), inputDataValue, ctx) + return methodResult +} + + +func (gIface *DefaultGlobalManagerConfigClient) patchMethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(gIface.interfaceName) + typeConverter := gIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(globalManagerConfigPatchInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(globalManagerConfigPatchOutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.patch method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.patch method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "patch") + errorDefinitions := make([]data.ErrorDefinition, 0) + gIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.patch method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.patch method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.patch method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.patch method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.patch method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} + +func (gIface *DefaultGlobalManagerConfigClient) showsensitivedataMethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(gIface.interfaceName) + typeConverter := gIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(globalManagerConfigShowsensitivedataInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(globalManagerConfigShowsensitivedataOutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.showsensitivedata method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.showsensitivedata method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "showsensitivedata") + errorDefinitions := make([]data.ErrorDefinition, 0) + gIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.showsensitivedata method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.showsensitivedata method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.showsensitivedata method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.showsensitivedata method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.showsensitivedata method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} + +func (gIface *DefaultGlobalManagerConfigClient) updateMethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(gIface.interfaceName) + typeConverter := gIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(globalManagerConfigUpdateInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(globalManagerConfigUpdateOutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.update method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.update method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "update") + errorDefinitions := make([]data.ErrorDefinition, 0) + gIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.update method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.update method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.update method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.update method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagerConfigClient.update method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalManagersClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalManagersClient.go index 30a2657be..e2d1b34cc 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalManagersClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGlobalManagersClient.go @@ -46,12 +46,33 @@ func NewDefaultGlobalManagersClient(connector client.Connector) *DefaultGlobalMa } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGlobalManagersClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["create"] = gIface.createMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGroupAssociationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGroupAssociationsClient.go index 1eea3e91b..84d625e1d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGroupAssociationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGroupAssociationsClient.go @@ -41,12 +41,33 @@ func NewDefaultGroupAssociationsClient(connector client.Connector) *DefaultGroup } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGroupAssociationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["list"] = gIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGroupServiceAssociationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGroupServiceAssociationsClient.go new file mode 100644 index 000000000..4532e2b8c --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultGroupServiceAssociationsClient.go @@ -0,0 +1,183 @@ + +/* Copyright © 2019 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +// Code generated. DO NOT EDIT. + +/* + * Client stubs for service: GroupServiceAssociations + * Functions that implement the generated GroupServiceAssociationsClient interface + */ + + +package infra + +import ( + "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" + "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors" + "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" + "github.com/vmware/vsphere-automation-sdk-go/runtime/core" + "github.com/vmware/vsphere-automation-sdk-go/runtime/data" + "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" + "github.com/vmware/vsphere-automation-sdk-go/runtime/log" + "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" +) + +type DefaultGroupServiceAssociationsClient struct { + interfaceName string + interfaceDefinition core.InterfaceDefinition + methodIdentifiers []core.MethodIdentifier + methodNameToDefMap map[string]*core.MethodDefinition + errorBindingMap map[string]bindings.BindingType + interfaceIdentifier core.InterfaceIdentifier + connector client.Connector +} + +func NewDefaultGroupServiceAssociationsClient(connector client.Connector) *DefaultGroupServiceAssociationsClient { + interfaceName := "com.vmware.nsx_policy.infra.group_service_associations" + interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) + methodIdentifiers := []core.MethodIdentifier{ + core.NewMethodIdentifier(interfaceIdentifier, "list"), + } + interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) + errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() + errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() + errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() + errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + + gIface := DefaultGroupServiceAssociationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} + gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) + gIface.methodNameToDefMap["list"] = gIface.listMethodDefinition() + return &gIface +} + +func (gIface *DefaultGroupServiceAssociationsClient) List(intentPathParam string, cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyResourceReferenceListResult, error) { + typeConverter := gIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "list") + sv := bindings.NewStructValueBuilder(groupServiceAssociationsListInputType(), typeConverter) + sv.AddStructField("IntentPath", intentPathParam) + sv.AddStructField("Cursor", cursorParam) + sv.AddStructField("IncludeMarkForDeleteObjects", includeMarkForDeleteObjectsParam) + sv.AddStructField("IncludedFields", includedFieldsParam) + sv.AddStructField("PageSize", pageSizeParam) + sv.AddStructField("SortAscending", sortAscendingParam) + sv.AddStructField("SortBy", sortByParam) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + var emptyOutput model.PolicyResourceReferenceListResult + return emptyOutput, bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := groupServiceAssociationsListRestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + gIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := gIface.connector.NewExecutionContext() + methodResult := gIface.Invoke(executionContext, methodIdentifier, inputDataValue) + var emptyOutput model.PolicyResourceReferenceListResult + if methodResult.IsSuccess() { + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), groupServiceAssociationsListOutputType()) + if errorInOutput != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) + } + return output.(model.PolicyResourceReferenceListResult), nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), gIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInError) + } + return emptyOutput, methodError.(error) + } +} + + +func (gIface *DefaultGroupServiceAssociationsClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { + methodResult := gIface.connector.GetApiProvider().Invoke(gIface.interfaceName, methodId.Name(), inputDataValue, ctx) + return methodResult +} + + +func (gIface *DefaultGroupServiceAssociationsClient) listMethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(gIface.interfaceName) + typeConverter := gIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(groupServiceAssociationsListInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(groupServiceAssociationsListOutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGroupServiceAssociationsClient.list method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGroupServiceAssociationsClient.list method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "list") + errorDefinitions := make([]data.ErrorDefinition, 0) + gIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGroupServiceAssociationsClient.list method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGroupServiceAssociationsClient.list method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGroupServiceAssociationsClient.list method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGroupServiceAssociationsClient.list method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + gIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultGroupServiceAssociationsClient.list method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIgmpConfigurationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIgmpProfilesClient.go similarity index 67% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIgmpConfigurationsClient.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIgmpProfilesClient.go index 2c0eaf20a..eea7cc5cb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIgmpConfigurationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIgmpProfilesClient.go @@ -5,8 +5,8 @@ // Code generated. DO NOT EDIT. /* - * Client stubs for service: IgmpConfigurations - * Functions that implement the generated IgmpConfigurationsClient interface + * Client stubs for service: IgmpProfiles + * Functions that implement the generated IgmpProfilesClient interface */ @@ -23,7 +23,7 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" ) -type DefaultIgmpConfigurationsClient struct { +type DefaultIgmpProfilesClient struct { interfaceName string interfaceDefinition core.InterfaceDefinition methodIdentifiers []core.MethodIdentifier @@ -33,8 +33,8 @@ type DefaultIgmpConfigurationsClient struct { connector client.Connector } -func NewDefaultIgmpConfigurationsClient(connector client.Connector) *DefaultIgmpConfigurationsClient { - interfaceName := "com.vmware.nsx_policy.infra.igmp_configurations" +func NewDefaultIgmpProfilesClient(connector client.Connector) *DefaultIgmpProfilesClient { + interfaceName := "com.vmware.nsx_policy.infra.igmp_profiles" interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) methodIdentifiers := []core.MethodIdentifier{ core.NewMethodIdentifier(interfaceIdentifier, "delete"), @@ -45,13 +45,34 @@ func NewDefaultIgmpConfigurationsClient(connector client.Connector) *DefaultIgmp } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() - iIface := DefaultIgmpConfigurationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + + iIface := DefaultIgmpProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() iIface.methodNameToDefMap["get"] = iIface.getMethodDefinition() @@ -61,16 +82,16 @@ func NewDefaultIgmpConfigurationsClient(connector client.Connector) *DefaultIgmp return &iIface } -func (iIface *DefaultIgmpConfigurationsClient) Delete(igmpConfigIdParam string) error { +func (iIface *DefaultIgmpProfilesClient) Delete(igmpProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") - sv := bindings.NewStructValueBuilder(igmpConfigurationsDeleteInputType(), typeConverter) - sv.AddStructField("IgmpConfigId", igmpConfigIdParam) + sv := bindings.NewStructValueBuilder(igmpProfilesDeleteInputType(), typeConverter) + sv.AddStructField("IgmpProfileId", igmpProfileIdParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := igmpConfigurationsDeleteRestMetadata() + operationRestMetaData := igmpProfilesDeleteRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false iIface.connector.SetConnectionMetadata(connectionMetadata) @@ -87,29 +108,29 @@ func (iIface *DefaultIgmpConfigurationsClient) Delete(igmpConfigIdParam string) } } -func (iIface *DefaultIgmpConfigurationsClient) Get(igmpConfigIdParam string) (model.PolicyIgmpConfig, error) { +func (iIface *DefaultIgmpProfilesClient) Get(igmpProfileIdParam string) (model.PolicyIgmpProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "get") - sv := bindings.NewStructValueBuilder(igmpConfigurationsGetInputType(), typeConverter) - sv.AddStructField("IgmpConfigId", igmpConfigIdParam) + sv := bindings.NewStructValueBuilder(igmpProfilesGetInputType(), typeConverter) + sv.AddStructField("IgmpProfileId", igmpProfileIdParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { - var emptyOutput model.PolicyIgmpConfig + var emptyOutput model.PolicyIgmpProfile return emptyOutput, bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := igmpConfigurationsGetRestMetadata() + operationRestMetaData := igmpProfilesGetRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false iIface.connector.SetConnectionMetadata(connectionMetadata) executionContext := iIface.connector.NewExecutionContext() methodResult := iIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyIgmpConfig + var emptyOutput model.PolicyIgmpProfile if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), igmpConfigurationsGetOutputType()) + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), igmpProfilesGetOutputType()) if errorInOutput != nil { return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) } - return output.(model.PolicyIgmpConfig), nil + return output.(model.PolicyIgmpProfile), nil } else { methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), iIface.errorBindingMap[methodResult.Error().Name()]) if errorInError != nil { @@ -119,10 +140,10 @@ func (iIface *DefaultIgmpConfigurationsClient) Get(igmpConfigIdParam string) (mo } } -func (iIface *DefaultIgmpConfigurationsClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyIgmpConfigListResult, error) { +func (iIface *DefaultIgmpProfilesClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyIgmpProfileListResult, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "list") - sv := bindings.NewStructValueBuilder(igmpConfigurationsListInputType(), typeConverter) + sv := bindings.NewStructValueBuilder(igmpProfilesListInputType(), typeConverter) sv.AddStructField("Cursor", cursorParam) sv.AddStructField("IncludeMarkForDeleteObjects", includeMarkForDeleteObjectsParam) sv.AddStructField("IncludedFields", includedFieldsParam) @@ -131,22 +152,22 @@ func (iIface *DefaultIgmpConfigurationsClient) List(cursorParam *string, include sv.AddStructField("SortBy", sortByParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { - var emptyOutput model.PolicyIgmpConfigListResult + var emptyOutput model.PolicyIgmpProfileListResult return emptyOutput, bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := igmpConfigurationsListRestMetadata() + operationRestMetaData := igmpProfilesListRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false iIface.connector.SetConnectionMetadata(connectionMetadata) executionContext := iIface.connector.NewExecutionContext() methodResult := iIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyIgmpConfigListResult + var emptyOutput model.PolicyIgmpProfileListResult if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), igmpConfigurationsListOutputType()) + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), igmpProfilesListOutputType()) if errorInOutput != nil { return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) } - return output.(model.PolicyIgmpConfigListResult), nil + return output.(model.PolicyIgmpProfileListResult), nil } else { methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), iIface.errorBindingMap[methodResult.Error().Name()]) if errorInError != nil { @@ -156,17 +177,17 @@ func (iIface *DefaultIgmpConfigurationsClient) List(cursorParam *string, include } } -func (iIface *DefaultIgmpConfigurationsClient) Patch(igmpConfigIdParam string, policyIgmpConfigParam model.PolicyIgmpConfig) error { +func (iIface *DefaultIgmpProfilesClient) Patch(igmpProfileIdParam string, policyIgmpProfileParam model.PolicyIgmpProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") - sv := bindings.NewStructValueBuilder(igmpConfigurationsPatchInputType(), typeConverter) - sv.AddStructField("IgmpConfigId", igmpConfigIdParam) - sv.AddStructField("PolicyIgmpConfig", policyIgmpConfigParam) + sv := bindings.NewStructValueBuilder(igmpProfilesPatchInputType(), typeConverter) + sv.AddStructField("IgmpProfileId", igmpProfileIdParam) + sv.AddStructField("PolicyIgmpProfile", policyIgmpProfileParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := igmpConfigurationsPatchRestMetadata() + operationRestMetaData := igmpProfilesPatchRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false iIface.connector.SetConnectionMetadata(connectionMetadata) @@ -183,30 +204,30 @@ func (iIface *DefaultIgmpConfigurationsClient) Patch(igmpConfigIdParam string, p } } -func (iIface *DefaultIgmpConfigurationsClient) Update(igmpConfigIdParam string, policyIgmpConfigParam model.PolicyIgmpConfig) (model.PolicyIgmpConfig, error) { +func (iIface *DefaultIgmpProfilesClient) Update(igmpProfileIdParam string, policyIgmpProfileParam model.PolicyIgmpProfile) (model.PolicyIgmpProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") - sv := bindings.NewStructValueBuilder(igmpConfigurationsUpdateInputType(), typeConverter) - sv.AddStructField("IgmpConfigId", igmpConfigIdParam) - sv.AddStructField("PolicyIgmpConfig", policyIgmpConfigParam) + sv := bindings.NewStructValueBuilder(igmpProfilesUpdateInputType(), typeConverter) + sv.AddStructField("IgmpProfileId", igmpProfileIdParam) + sv.AddStructField("PolicyIgmpProfile", policyIgmpProfileParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { - var emptyOutput model.PolicyIgmpConfig + var emptyOutput model.PolicyIgmpProfile return emptyOutput, bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := igmpConfigurationsUpdateRestMetadata() + operationRestMetaData := igmpProfilesUpdateRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false iIface.connector.SetConnectionMetadata(connectionMetadata) executionContext := iIface.connector.NewExecutionContext() methodResult := iIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyIgmpConfig + var emptyOutput model.PolicyIgmpProfile if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), igmpConfigurationsUpdateOutputType()) + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), igmpProfilesUpdateOutputType()) if errorInOutput != nil { return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) } - return output.(model.PolicyIgmpConfig), nil + return output.(model.PolicyIgmpProfile), nil } else { methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), iIface.errorBindingMap[methodResult.Error().Name()]) if errorInError != nil { @@ -217,25 +238,25 @@ func (iIface *DefaultIgmpConfigurationsClient) Update(igmpConfigIdParam string, } -func (iIface *DefaultIgmpConfigurationsClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { +func (iIface *DefaultIgmpProfilesClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { methodResult := iIface.connector.GetApiProvider().Invoke(iIface.interfaceName, methodId.Name(), inputDataValue, ctx) return methodResult } -func (iIface *DefaultIgmpConfigurationsClient) deleteMethodDefinition() *core.MethodDefinition { +func (iIface *DefaultIgmpProfilesClient) deleteMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(iIface.interfaceName) typeConverter := iIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsDeleteInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsDeleteOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(igmpProfilesDeleteInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(igmpProfilesDeleteOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.delete method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.delete method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.delete method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.delete method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -244,7 +265,7 @@ func (iIface *DefaultIgmpConfigurationsClient) deleteMethodDefinition() *core.Me iIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.delete method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.delete method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -252,7 +273,7 @@ func (iIface *DefaultIgmpConfigurationsClient) deleteMethodDefinition() *core.Me iIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.delete method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.delete method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -260,7 +281,7 @@ func (iIface *DefaultIgmpConfigurationsClient) deleteMethodDefinition() *core.Me iIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.delete method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.delete method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -268,7 +289,7 @@ func (iIface *DefaultIgmpConfigurationsClient) deleteMethodDefinition() *core.Me iIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.delete method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.delete method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -276,7 +297,7 @@ func (iIface *DefaultIgmpConfigurationsClient) deleteMethodDefinition() *core.Me iIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.delete method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.delete method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -286,19 +307,19 @@ func (iIface *DefaultIgmpConfigurationsClient) deleteMethodDefinition() *core.Me return &methodDefinition } -func (iIface *DefaultIgmpConfigurationsClient) getMethodDefinition() *core.MethodDefinition { +func (iIface *DefaultIgmpProfilesClient) getMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(iIface.interfaceName) typeConverter := iIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsGetInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsGetOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(igmpProfilesGetInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(igmpProfilesGetOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.get method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.get method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.get method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.get method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -307,7 +328,7 @@ func (iIface *DefaultIgmpConfigurationsClient) getMethodDefinition() *core.Metho iIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.get method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.get method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -315,7 +336,7 @@ func (iIface *DefaultIgmpConfigurationsClient) getMethodDefinition() *core.Metho iIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.get method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.get method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -323,7 +344,7 @@ func (iIface *DefaultIgmpConfigurationsClient) getMethodDefinition() *core.Metho iIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.get method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.get method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -331,7 +352,7 @@ func (iIface *DefaultIgmpConfigurationsClient) getMethodDefinition() *core.Metho iIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.get method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.get method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -339,7 +360,7 @@ func (iIface *DefaultIgmpConfigurationsClient) getMethodDefinition() *core.Metho iIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.get method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.get method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -349,19 +370,19 @@ func (iIface *DefaultIgmpConfigurationsClient) getMethodDefinition() *core.Metho return &methodDefinition } -func (iIface *DefaultIgmpConfigurationsClient) listMethodDefinition() *core.MethodDefinition { +func (iIface *DefaultIgmpProfilesClient) listMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(iIface.interfaceName) typeConverter := iIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsListInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsListOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(igmpProfilesListInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(igmpProfilesListOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.list method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.list method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.list method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.list method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -370,7 +391,7 @@ func (iIface *DefaultIgmpConfigurationsClient) listMethodDefinition() *core.Meth iIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.list method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.list method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -378,7 +399,7 @@ func (iIface *DefaultIgmpConfigurationsClient) listMethodDefinition() *core.Meth iIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.list method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.list method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -386,7 +407,7 @@ func (iIface *DefaultIgmpConfigurationsClient) listMethodDefinition() *core.Meth iIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.list method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.list method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -394,7 +415,7 @@ func (iIface *DefaultIgmpConfigurationsClient) listMethodDefinition() *core.Meth iIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.list method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.list method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -402,7 +423,7 @@ func (iIface *DefaultIgmpConfigurationsClient) listMethodDefinition() *core.Meth iIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.list method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.list method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -412,19 +433,19 @@ func (iIface *DefaultIgmpConfigurationsClient) listMethodDefinition() *core.Meth return &methodDefinition } -func (iIface *DefaultIgmpConfigurationsClient) patchMethodDefinition() *core.MethodDefinition { +func (iIface *DefaultIgmpProfilesClient) patchMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(iIface.interfaceName) typeConverter := iIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsPatchInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsPatchOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(igmpProfilesPatchInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(igmpProfilesPatchOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.patch method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.patch method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.patch method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.patch method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -433,7 +454,7 @@ func (iIface *DefaultIgmpConfigurationsClient) patchMethodDefinition() *core.Met iIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.patch method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.patch method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -441,7 +462,7 @@ func (iIface *DefaultIgmpConfigurationsClient) patchMethodDefinition() *core.Met iIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.patch method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.patch method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -449,7 +470,7 @@ func (iIface *DefaultIgmpConfigurationsClient) patchMethodDefinition() *core.Met iIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.patch method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.patch method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -457,7 +478,7 @@ func (iIface *DefaultIgmpConfigurationsClient) patchMethodDefinition() *core.Met iIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.patch method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.patch method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -465,7 +486,7 @@ func (iIface *DefaultIgmpConfigurationsClient) patchMethodDefinition() *core.Met iIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.patch method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.patch method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -475,19 +496,19 @@ func (iIface *DefaultIgmpConfigurationsClient) patchMethodDefinition() *core.Met return &methodDefinition } -func (iIface *DefaultIgmpConfigurationsClient) updateMethodDefinition() *core.MethodDefinition { +func (iIface *DefaultIgmpProfilesClient) updateMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(iIface.interfaceName) typeConverter := iIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsUpdateInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(igmpConfigurationsUpdateOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(igmpProfilesUpdateInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(igmpProfilesUpdateOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.update method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.update method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.update method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.update method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -496,7 +517,7 @@ func (iIface *DefaultIgmpConfigurationsClient) updateMethodDefinition() *core.Me iIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.update method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.update method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -504,7 +525,7 @@ func (iIface *DefaultIgmpConfigurationsClient) updateMethodDefinition() *core.Me iIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.update method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.update method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -512,7 +533,7 @@ func (iIface *DefaultIgmpConfigurationsClient) updateMethodDefinition() *core.Me iIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.update method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.update method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -520,7 +541,7 @@ func (iIface *DefaultIgmpConfigurationsClient) updateMethodDefinition() *core.Me iIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.update method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.update method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -528,7 +549,7 @@ func (iIface *DefaultIgmpConfigurationsClient) updateMethodDefinition() *core.Me iIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpConfigurationsClient.update method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultIgmpProfilesClient.update method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpAddressGroupAssociationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpAddressGroupAssociationsClient.go index f4dd0e2a5..2cac1260e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpAddressGroupAssociationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpAddressGroupAssociationsClient.go @@ -41,12 +41,33 @@ func NewDefaultIpAddressGroupAssociationsClient(connector client.Connector) *Def } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpAddressGroupAssociationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["list"] = iIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpBlocksClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpBlocksClient.go index d051d19f9..421368ea3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpBlocksClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpBlocksClient.go @@ -45,12 +45,33 @@ func NewDefaultIpBlocksClient(connector client.Connector) *DefaultIpBlocksClient } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpBlocksClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpDiscoveryProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpDiscoveryProfilesClient.go index 1e83188fa..33f4f97bf 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpDiscoveryProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpDiscoveryProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpDiscoveryProfilesClient(connector client.Connector) *DefaultIpD } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpDiscoveryProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpDiscoveryProfilesClient(connector client.Connector) *DefaultIpD return &iIface } -func (iIface *DefaultIpDiscoveryProfilesClient) Delete(ipDiscoveryProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpDiscoveryProfilesClient) Delete(ipDiscoveryProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipDiscoveryProfilesDeleteInputType(), typeConverter) sv.AddStructField("IpDiscoveryProfileId", ipDiscoveryProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpDiscoveryProfilesClient) List(cursorParam *string, includ } } -func (iIface *DefaultIpDiscoveryProfilesClient) Patch(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile, overrideParam *bool) error { +func (iIface *DefaultIpDiscoveryProfilesClient) Patch(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipDiscoveryProfilesPatchInputType(), typeConverter) sv.AddStructField("IpDiscoveryProfileId", ipDiscoveryProfileIdParam) sv.AddStructField("IpDiscoveryProfile", ipDiscoveryProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpDiscoveryProfilesClient) Patch(ipDiscoveryProfileIdParam } } -func (iIface *DefaultIpDiscoveryProfilesClient) Update(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile, overrideParam *bool) (model.IPDiscoveryProfile, error) { +func (iIface *DefaultIpDiscoveryProfilesClient) Update(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile) (model.IPDiscoveryProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipDiscoveryProfilesUpdateInputType(), typeConverter) sv.AddStructField("IpDiscoveryProfileId", ipDiscoveryProfileIdParam) sv.AddStructField("IpDiscoveryProfile", ipDiscoveryProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.IPDiscoveryProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpPoolsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpPoolsClient.go index 584d75387..46f982018 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpPoolsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpPoolsClient.go @@ -45,12 +45,33 @@ func NewDefaultIpPoolsClient(connector client.Connector) *DefaultIpPoolsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpPoolsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixCollectorProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixCollectorProfilesClient.go index 0c32c06ee..e381c132c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixCollectorProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixCollectorProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpfixCollectorProfilesClient(connector client.Connector) *Default } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpfixCollectorProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpfixCollectorProfilesClient(connector client.Connector) *Default return &iIface } -func (iIface *DefaultIpfixCollectorProfilesClient) Delete(ipfixCollectorProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpfixCollectorProfilesClient) Delete(ipfixCollectorProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipfixCollectorProfilesDeleteInputType(), typeConverter) sv.AddStructField("IpfixCollectorProfileId", ipfixCollectorProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpfixCollectorProfilesClient) List(cursorParam *string, inc } } -func (iIface *DefaultIpfixCollectorProfilesClient) Patch(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile, overrideParam *bool) error { +func (iIface *DefaultIpfixCollectorProfilesClient) Patch(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipfixCollectorProfilesPatchInputType(), typeConverter) sv.AddStructField("IpfixCollectorProfileId", ipfixCollectorProfileIdParam) sv.AddStructField("IPFIXCollectorProfile", iPFIXCollectorProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpfixCollectorProfilesClient) Patch(ipfixCollectorProfileId } } -func (iIface *DefaultIpfixCollectorProfilesClient) Update(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile, overrideParam *bool) (model.IPFIXCollectorProfile, error) { +func (iIface *DefaultIpfixCollectorProfilesClient) Update(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile) (model.IPFIXCollectorProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipfixCollectorProfilesUpdateInputType(), typeConverter) sv.AddStructField("IpfixCollectorProfileId", ipfixCollectorProfileIdParam) sv.AddStructField("IPFIXCollectorProfile", iPFIXCollectorProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.IPFIXCollectorProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwCollectorProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwCollectorProfilesClient.go index 1e69a43cd..29ea07ca2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwCollectorProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwCollectorProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpfixDfwCollectorProfilesClient(connector client.Connector) *Defa } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpfixDfwCollectorProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpfixDfwCollectorProfilesClient(connector client.Connector) *Defa return &iIface } -func (iIface *DefaultIpfixDfwCollectorProfilesClient) Delete(ipfixDfwCollectorProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpfixDfwCollectorProfilesClient) Delete(ipfixDfwCollectorProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipfixDfwCollectorProfilesDeleteInputType(), typeConverter) sv.AddStructField("IpfixDfwCollectorProfileId", ipfixDfwCollectorProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpfixDfwCollectorProfilesClient) List(cursorParam *string, } } -func (iIface *DefaultIpfixDfwCollectorProfilesClient) Patch(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile, overrideParam *bool) error { +func (iIface *DefaultIpfixDfwCollectorProfilesClient) Patch(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipfixDfwCollectorProfilesPatchInputType(), typeConverter) sv.AddStructField("IpfixDfwCollectorProfileId", ipfixDfwCollectorProfileIdParam) sv.AddStructField("IPFIXDFWCollectorProfile", iPFIXDFWCollectorProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpfixDfwCollectorProfilesClient) Patch(ipfixDfwCollectorPro } } -func (iIface *DefaultIpfixDfwCollectorProfilesClient) Update(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile, overrideParam *bool) (model.IPFIXDFWCollectorProfile, error) { +func (iIface *DefaultIpfixDfwCollectorProfilesClient) Update(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile) (model.IPFIXDFWCollectorProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipfixDfwCollectorProfilesUpdateInputType(), typeConverter) sv.AddStructField("IpfixDfwCollectorProfileId", ipfixDfwCollectorProfileIdParam) sv.AddStructField("IPFIXDFWCollectorProfile", iPFIXDFWCollectorProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.IPFIXDFWCollectorProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwProfilesClient.go index 56383b02d..772136cd1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixDfwProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpfixDfwProfilesClient(connector client.Connector) *DefaultIpfixD } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpfixDfwProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpfixDfwProfilesClient(connector client.Connector) *DefaultIpfixD return &iIface } -func (iIface *DefaultIpfixDfwProfilesClient) Delete(ipfixDfwProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpfixDfwProfilesClient) Delete(ipfixDfwProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipfixDfwProfilesDeleteInputType(), typeConverter) sv.AddStructField("IpfixDfwProfileId", ipfixDfwProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpfixDfwProfilesClient) List(cursorParam *string, includeMa } } -func (iIface *DefaultIpfixDfwProfilesClient) Patch(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile, overrideParam *bool) error { +func (iIface *DefaultIpfixDfwProfilesClient) Patch(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipfixDfwProfilesPatchInputType(), typeConverter) sv.AddStructField("IpfixDfwProfileId", ipfixDfwProfileIdParam) sv.AddStructField("IPFIXDFWProfile", iPFIXDFWProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpfixDfwProfilesClient) Patch(ipfixDfwProfileIdParam string } } -func (iIface *DefaultIpfixDfwProfilesClient) Update(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile, overrideParam *bool) (model.IPFIXDFWProfile, error) { +func (iIface *DefaultIpfixDfwProfilesClient) Update(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile) (model.IPFIXDFWProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipfixDfwProfilesUpdateInputType(), typeConverter) sv.AddStructField("IpfixDfwProfileId", ipfixDfwProfileIdParam) sv.AddStructField("IPFIXDFWProfile", iPFIXDFWProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.IPFIXDFWProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2CollectorProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2CollectorProfilesClient.go index 5d4effef3..aa33447f2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2CollectorProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2CollectorProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpfixL2CollectorProfilesClient(connector client.Connector) *Defau } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpfixL2CollectorProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpfixL2CollectorProfilesClient(connector client.Connector) *Defau return &iIface } -func (iIface *DefaultIpfixL2CollectorProfilesClient) Delete(ipfixL2CollectorProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpfixL2CollectorProfilesClient) Delete(ipfixL2CollectorProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipfixL2CollectorProfilesDeleteInputType(), typeConverter) sv.AddStructField("IpfixL2CollectorProfileId", ipfixL2CollectorProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpfixL2CollectorProfilesClient) List(cursorParam *string, i } } -func (iIface *DefaultIpfixL2CollectorProfilesClient) Patch(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile, overrideParam *bool) error { +func (iIface *DefaultIpfixL2CollectorProfilesClient) Patch(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipfixL2CollectorProfilesPatchInputType(), typeConverter) sv.AddStructField("IpfixL2CollectorProfileId", ipfixL2CollectorProfileIdParam) sv.AddStructField("IPFIXL2CollectorProfile", iPFIXL2CollectorProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpfixL2CollectorProfilesClient) Patch(ipfixL2CollectorProfi } } -func (iIface *DefaultIpfixL2CollectorProfilesClient) Update(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile, overrideParam *bool) (model.IPFIXL2CollectorProfile, error) { +func (iIface *DefaultIpfixL2CollectorProfilesClient) Update(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile) (model.IPFIXL2CollectorProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipfixL2CollectorProfilesUpdateInputType(), typeConverter) sv.AddStructField("IpfixL2CollectorProfileId", ipfixL2CollectorProfileIdParam) sv.AddStructField("IPFIXL2CollectorProfile", iPFIXL2CollectorProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.IPFIXL2CollectorProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2ProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2ProfilesClient.go index 66d0ed387..1cbaabd03 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2ProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpfixL2ProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpfixL2ProfilesClient(connector client.Connector) *DefaultIpfixL2 } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpfixL2ProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpfixL2ProfilesClient(connector client.Connector) *DefaultIpfixL2 return &iIface } -func (iIface *DefaultIpfixL2ProfilesClient) Delete(ipfixL2ProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpfixL2ProfilesClient) Delete(ipfixL2ProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipfixL2ProfilesDeleteInputType(), typeConverter) sv.AddStructField("IpfixL2ProfileId", ipfixL2ProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpfixL2ProfilesClient) List(cursorParam *string, includeMar } } -func (iIface *DefaultIpfixL2ProfilesClient) Patch(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile, overrideParam *bool) error { +func (iIface *DefaultIpfixL2ProfilesClient) Patch(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipfixL2ProfilesPatchInputType(), typeConverter) sv.AddStructField("IpfixL2ProfileId", ipfixL2ProfileIdParam) sv.AddStructField("IPFIXL2Profile", iPFIXL2ProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpfixL2ProfilesClient) Patch(ipfixL2ProfileIdParam string, } } -func (iIface *DefaultIpfixL2ProfilesClient) Update(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile, overrideParam *bool) (model.IPFIXL2Profile, error) { +func (iIface *DefaultIpfixL2ProfilesClient) Update(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile) (model.IPFIXL2Profile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipfixL2ProfilesUpdateInputType(), typeConverter) sv.AddStructField("IpfixL2ProfileId", ipfixL2ProfileIdParam) sv.AddStructField("IPFIXL2Profile", iPFIXL2ProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.IPFIXL2Profile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnDpdProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnDpdProfilesClient.go index 760c65cd4..1f7317c0d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnDpdProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnDpdProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpsecVpnDpdProfilesClient(connector client.Connector) *DefaultIps } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpsecVpnDpdProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnIkeProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnIkeProfilesClient.go index b16820fc2..a04564bd3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnIkeProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnIkeProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpsecVpnIkeProfilesClient(connector client.Connector) *DefaultIps } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpsecVpnIkeProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnTunnelProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnTunnelProfilesClient.go index e983db388..b283577af 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnTunnelProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpsecVpnTunnelProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpsecVpnTunnelProfilesClient(connector client.Connector) *Default } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpsecVpnTunnelProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6DadProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6DadProfilesClient.go index c81246e3b..59d30e42f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6DadProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6DadProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpv6DadProfilesClient(connector client.Connector) *DefaultIpv6Dad } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpv6DadProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpv6DadProfilesClient(connector client.Connector) *DefaultIpv6Dad return &iIface } -func (iIface *DefaultIpv6DadProfilesClient) Delete(dadProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpv6DadProfilesClient) Delete(dadProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipv6DadProfilesDeleteInputType(), typeConverter) sv.AddStructField("DadProfileId", dadProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpv6DadProfilesClient) List(cursorParam *string, includeMar } } -func (iIface *DefaultIpv6DadProfilesClient) Patch(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile, overrideParam *bool) error { +func (iIface *DefaultIpv6DadProfilesClient) Patch(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipv6DadProfilesPatchInputType(), typeConverter) sv.AddStructField("DadProfileId", dadProfileIdParam) sv.AddStructField("Ipv6DadProfile", ipv6DadProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpv6DadProfilesClient) Patch(dadProfileIdParam string, ipv6 } } -func (iIface *DefaultIpv6DadProfilesClient) Update(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile, overrideParam *bool) (model.Ipv6DadProfile, error) { +func (iIface *DefaultIpv6DadProfilesClient) Update(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile) (model.Ipv6DadProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipv6DadProfilesUpdateInputType(), typeConverter) sv.AddStructField("DadProfileId", dadProfileIdParam) sv.AddStructField("Ipv6DadProfile", ipv6DadProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.Ipv6DadProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6NdraProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6NdraProfilesClient.go index 1f51d57fa..7588b743c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6NdraProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultIpv6NdraProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpv6NdraProfilesClient(connector client.Connector) *DefaultIpv6Nd } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpv6NdraProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultIpv6NdraProfilesClient(connector client.Connector) *DefaultIpv6Nd return &iIface } -func (iIface *DefaultIpv6NdraProfilesClient) Delete(ndraProfileIdParam string, overrideParam *bool) error { +func (iIface *DefaultIpv6NdraProfilesClient) Delete(ndraProfileIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(ipv6NdraProfilesDeleteInputType(), typeConverter) sv.AddStructField("NdraProfileId", ndraProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (iIface *DefaultIpv6NdraProfilesClient) List(cursorParam *string, includeMa } } -func (iIface *DefaultIpv6NdraProfilesClient) Patch(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile, overrideParam *bool) error { +func (iIface *DefaultIpv6NdraProfilesClient) Patch(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(ipv6NdraProfilesPatchInputType(), typeConverter) sv.AddStructField("NdraProfileId", ndraProfileIdParam) sv.AddStructField("Ipv6NdraProfile", ipv6NdraProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (iIface *DefaultIpv6NdraProfilesClient) Patch(ndraProfileIdParam string, ip } } -func (iIface *DefaultIpv6NdraProfilesClient) Update(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile, overrideParam *bool) (model.Ipv6NdraProfile, error) { +func (iIface *DefaultIpv6NdraProfilesClient) Update(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile) (model.Ipv6NdraProfile, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(ipv6NdraProfilesUpdateInputType(), typeConverter) sv.AddStructField("NdraProfileId", ndraProfileIdParam) sv.AddStructField("Ipv6NdraProfile", ipv6NdraProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.Ipv6NdraProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLabelsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLabelsClient.go index 04534dbb5..07e0fcb80 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLabelsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLabelsClient.go @@ -45,12 +45,33 @@ func NewDefaultLabelsClient(connector client.Connector) *DefaultLabelsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLabelsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbAppProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbAppProfilesClient.go index b8ca78ce3..6f4404d30 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbAppProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbAppProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultLbAppProfilesClient(connector client.Connector) *DefaultLbAppProf } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbAppProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbClientSslProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbClientSslProfilesClient.go index f2b9b4170..ac5097d02 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbClientSslProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbClientSslProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultLbClientSslProfilesClient(connector client.Connector) *DefaultLbC } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbClientSslProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbMonitorProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbMonitorProfilesClient.go index cb73c520a..55180b41d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbMonitorProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbMonitorProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultLbMonitorProfilesClient(connector client.Connector) *DefaultLbMon } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbMonitorProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageClient.go index b8a46e217..d1f850010 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageClient.go @@ -40,12 +40,33 @@ func NewDefaultLbNodeUsageClient(connector client.Connector) *DefaultLbNodeUsage } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbNodeUsageClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["get"] = lIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageSummaryClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageSummaryClient.go index 6b058bbed..118a4b169 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageSummaryClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbNodeUsageSummaryClient.go @@ -41,12 +41,33 @@ func NewDefaultLbNodeUsageSummaryClient(connector client.Connector) *DefaultLbNo } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbNodeUsageSummaryClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["get"] = lIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPersistenceProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPersistenceProfilesClient.go index 2cd1f0ef2..294af4533 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPersistenceProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPersistenceProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultLbPersistenceProfilesClient(connector client.Connector) *DefaultL } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbPersistenceProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPoolsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPoolsClient.go index 50ef68275..f054865d6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPoolsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbPoolsClient.go @@ -45,12 +45,33 @@ func NewDefaultLbPoolsClient(connector client.Connector) *DefaultLbPoolsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbPoolsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServerSslProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServerSslProfilesClient.go index 7cad0af7d..41e8ae5de 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServerSslProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServerSslProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultLbServerSslProfilesClient(connector client.Connector) *DefaultLbS } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbServerSslProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServiceUsageSummaryClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServiceUsageSummaryClient.go index 3620c1124..9bde39920 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServiceUsageSummaryClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServiceUsageSummaryClient.go @@ -41,12 +41,33 @@ func NewDefaultLbServiceUsageSummaryClient(connector client.Connector) *DefaultL } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbServiceUsageSummaryClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["get"] = lIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServicesClient.go index 89e597607..22eb9051b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultLbServicesClient(connector client.Connector) *DefaultLbServicesCl } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbSslCiphersAndProtocolsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbSslCiphersAndProtocolsClient.go index 464926923..0b61c39f7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbSslCiphersAndProtocolsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbSslCiphersAndProtocolsClient.go @@ -41,12 +41,33 @@ func NewDefaultLbSslCiphersAndProtocolsClient(connector client.Connector) *Defau } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbSslCiphersAndProtocolsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["list"] = lIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbVirtualServersClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbVirtualServersClient.go index 016b7075f..6efe601d6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbVirtualServersClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultLbVirtualServersClient.go @@ -45,12 +45,33 @@ func NewDefaultLbVirtualServersClient(connector client.Connector) *DefaultLbVirt } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLbVirtualServersClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMacDiscoveryProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMacDiscoveryProfilesClient.go index fe7429dcf..0fb7c4f45 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMacDiscoveryProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMacDiscoveryProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultMacDiscoveryProfilesClient(connector client.Connector) *DefaultMa } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + mIface := DefaultMacDiscoveryProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} mIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) mIface.methodNameToDefMap["delete"] = mIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultMacDiscoveryProfilesClient(connector client.Connector) *DefaultMa return &mIface } -func (mIface *DefaultMacDiscoveryProfilesClient) Delete(macDiscoveryProfileIdParam string, overrideParam *bool) error { +func (mIface *DefaultMacDiscoveryProfilesClient) Delete(macDiscoveryProfileIdParam string) error { typeConverter := mIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(mIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(macDiscoveryProfilesDeleteInputType(), typeConverter) sv.AddStructField("MacDiscoveryProfileId", macDiscoveryProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (mIface *DefaultMacDiscoveryProfilesClient) List(cursorParam *string, inclu } } -func (mIface *DefaultMacDiscoveryProfilesClient) Patch(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile, overrideParam *bool) error { +func (mIface *DefaultMacDiscoveryProfilesClient) Patch(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile) error { typeConverter := mIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(mIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(macDiscoveryProfilesPatchInputType(), typeConverter) sv.AddStructField("MacDiscoveryProfileId", macDiscoveryProfileIdParam) sv.AddStructField("MacDiscoveryProfile", macDiscoveryProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (mIface *DefaultMacDiscoveryProfilesClient) Patch(macDiscoveryProfileIdPara } } -func (mIface *DefaultMacDiscoveryProfilesClient) Update(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile, overrideParam *bool) (model.MacDiscoveryProfile, error) { +func (mIface *DefaultMacDiscoveryProfilesClient) Update(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile) (model.MacDiscoveryProfile, error) { typeConverter := mIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(mIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(macDiscoveryProfilesUpdateInputType(), typeConverter) sv.AddStructField("MacDiscoveryProfileId", macDiscoveryProfileIdParam) sv.AddStructField("MacDiscoveryProfile", macDiscoveryProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.MacDiscoveryProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMetadataProxiesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMetadataProxiesClient.go index b4d3bd3d6..b346b0fd6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMetadataProxiesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultMetadataProxiesClient.go @@ -45,12 +45,33 @@ func NewDefaultMetadataProxiesClient(connector client.Connector) *DefaultMetadat } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + mIface := DefaultMetadataProxiesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} mIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) mIface.methodNameToDefMap["delete"] = mIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultOnboardingCheckCompatibilityClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultOnboardingCheckCompatibilityClient.go deleted file mode 100644 index 719b59617..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultOnboardingCheckCompatibilityClient.go +++ /dev/null @@ -1,156 +0,0 @@ - -/* Copyright © 2019 VMware, Inc. All Rights Reserved. - SPDX-License-Identifier: BSD-2-Clause */ - -// Code generated. DO NOT EDIT. - -/* - * Client stubs for service: OnboardingCheckCompatibility - * Functions that implement the generated OnboardingCheckCompatibilityClient interface - */ - - -package infra - -import ( - "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" - "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors" - "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" - "github.com/vmware/vsphere-automation-sdk-go/runtime/core" - "github.com/vmware/vsphere-automation-sdk-go/runtime/data" - "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" - "github.com/vmware/vsphere-automation-sdk-go/runtime/log" - "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" -) - -type DefaultOnboardingCheckCompatibilityClient struct { - interfaceName string - interfaceDefinition core.InterfaceDefinition - methodIdentifiers []core.MethodIdentifier - methodNameToDefMap map[string]*core.MethodDefinition - errorBindingMap map[string]bindings.BindingType - interfaceIdentifier core.InterfaceIdentifier - connector client.Connector -} - -func NewDefaultOnboardingCheckCompatibilityClient(connector client.Connector) *DefaultOnboardingCheckCompatibilityClient { - interfaceName := "com.vmware.nsx_policy.infra.onboarding_check_compatibility" - interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) - methodIdentifiers := []core.MethodIdentifier{ - core.NewMethodIdentifier(interfaceIdentifier, "create"), - } - interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) - errorBindingMap := make(map[string]bindings.BindingType) - errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() - errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() - errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() - oIface := DefaultOnboardingCheckCompatibilityClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} - oIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) - oIface.methodNameToDefMap["create"] = oIface.createMethodDefinition() - return &oIface -} - -func (oIface *DefaultOnboardingCheckCompatibilityClient) Create(siteNodeConnectionInfoParam model.SiteNodeConnectionInfo) (model.CompatibilityCheckResult, error) { - typeConverter := oIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(oIface.interfaceIdentifier, "create") - sv := bindings.NewStructValueBuilder(onboardingCheckCompatibilityCreateInputType(), typeConverter) - sv.AddStructField("SiteNodeConnectionInfo", siteNodeConnectionInfoParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - var emptyOutput model.CompatibilityCheckResult - return emptyOutput, bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := onboardingCheckCompatibilityCreateRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - oIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := oIface.connector.NewExecutionContext() - methodResult := oIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.CompatibilityCheckResult - if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), onboardingCheckCompatibilityCreateOutputType()) - if errorInOutput != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) - } - return output.(model.CompatibilityCheckResult), nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), oIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInError) - } - return emptyOutput, methodError.(error) - } -} - - -func (oIface *DefaultOnboardingCheckCompatibilityClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { - methodResult := oIface.connector.GetApiProvider().Invoke(oIface.interfaceName, methodId.Name(), inputDataValue, ctx) - return methodResult -} - - -func (oIface *DefaultOnboardingCheckCompatibilityClient) createMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(oIface.interfaceName) - typeConverter := oIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(onboardingCheckCompatibilityCreateInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(onboardingCheckCompatibilityCreateOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultOnboardingCheckCompatibilityClient.create method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultOnboardingCheckCompatibilityClient.create method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "create") - errorDefinitions := make([]data.ErrorDefinition, 0) - oIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultOnboardingCheckCompatibilityClient.create method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - oIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultOnboardingCheckCompatibilityClient.create method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - oIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultOnboardingCheckCompatibilityClient.create method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - oIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultOnboardingCheckCompatibilityClient.create method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - oIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultOnboardingCheckCompatibilityClient.create method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultOverriddenResourcesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultOverriddenResourcesClient.go index 785343d34..101faa2e2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultOverriddenResourcesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultOverriddenResourcesClient.go @@ -41,12 +41,33 @@ func NewDefaultOverriddenResourcesClient(connector client.Connector) *DefaultOve } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + oIface := DefaultOverriddenResourcesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} oIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) oIface.methodNameToDefMap["list"] = oIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPartnerServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPartnerServicesClient.go index eefd39414..3f12e58dd 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPartnerServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPartnerServicesClient.go @@ -42,12 +42,33 @@ func NewDefaultPartnerServicesClient(connector client.Connector) *DefaultPartner } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + pIface := DefaultPartnerServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} pIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) pIface.methodNameToDefMap["get"] = pIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPimConfigurationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPimProfilesClient.go similarity index 67% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPimConfigurationsClient.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPimProfilesClient.go index c11fa8d60..80efd9ac0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPimConfigurationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPimProfilesClient.go @@ -5,8 +5,8 @@ // Code generated. DO NOT EDIT. /* - * Client stubs for service: PimConfigurations - * Functions that implement the generated PimConfigurationsClient interface + * Client stubs for service: PimProfiles + * Functions that implement the generated PimProfilesClient interface */ @@ -23,7 +23,7 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" ) -type DefaultPimConfigurationsClient struct { +type DefaultPimProfilesClient struct { interfaceName string interfaceDefinition core.InterfaceDefinition methodIdentifiers []core.MethodIdentifier @@ -33,8 +33,8 @@ type DefaultPimConfigurationsClient struct { connector client.Connector } -func NewDefaultPimConfigurationsClient(connector client.Connector) *DefaultPimConfigurationsClient { - interfaceName := "com.vmware.nsx_policy.infra.pim_configurations" +func NewDefaultPimProfilesClient(connector client.Connector) *DefaultPimProfilesClient { + interfaceName := "com.vmware.nsx_policy.infra.pim_profiles" interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) methodIdentifiers := []core.MethodIdentifier{ core.NewMethodIdentifier(interfaceIdentifier, "delete"), @@ -45,13 +45,34 @@ func NewDefaultPimConfigurationsClient(connector client.Connector) *DefaultPimCo } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() - pIface := DefaultPimConfigurationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + + pIface := DefaultPimProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} pIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) pIface.methodNameToDefMap["delete"] = pIface.deleteMethodDefinition() pIface.methodNameToDefMap["get"] = pIface.getMethodDefinition() @@ -61,16 +82,16 @@ func NewDefaultPimConfigurationsClient(connector client.Connector) *DefaultPimCo return &pIface } -func (pIface *DefaultPimConfigurationsClient) Delete(pimConfigIdParam string) error { +func (pIface *DefaultPimProfilesClient) Delete(pimProfileIdParam string) error { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "delete") - sv := bindings.NewStructValueBuilder(pimConfigurationsDeleteInputType(), typeConverter) - sv.AddStructField("PimConfigId", pimConfigIdParam) + sv := bindings.NewStructValueBuilder(pimProfilesDeleteInputType(), typeConverter) + sv.AddStructField("PimProfileId", pimProfileIdParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := pimConfigurationsDeleteRestMetadata() + operationRestMetaData := pimProfilesDeleteRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false pIface.connector.SetConnectionMetadata(connectionMetadata) @@ -87,29 +108,29 @@ func (pIface *DefaultPimConfigurationsClient) Delete(pimConfigIdParam string) er } } -func (pIface *DefaultPimConfigurationsClient) Get(pimConfigIdParam string) (model.PolicyPimConfig, error) { +func (pIface *DefaultPimProfilesClient) Get(pimProfileIdParam string) (model.PolicyPimProfile, error) { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "get") - sv := bindings.NewStructValueBuilder(pimConfigurationsGetInputType(), typeConverter) - sv.AddStructField("PimConfigId", pimConfigIdParam) + sv := bindings.NewStructValueBuilder(pimProfilesGetInputType(), typeConverter) + sv.AddStructField("PimProfileId", pimProfileIdParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { - var emptyOutput model.PolicyPimConfig + var emptyOutput model.PolicyPimProfile return emptyOutput, bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := pimConfigurationsGetRestMetadata() + operationRestMetaData := pimProfilesGetRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false pIface.connector.SetConnectionMetadata(connectionMetadata) executionContext := pIface.connector.NewExecutionContext() methodResult := pIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyPimConfig + var emptyOutput model.PolicyPimProfile if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), pimConfigurationsGetOutputType()) + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), pimProfilesGetOutputType()) if errorInOutput != nil { return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) } - return output.(model.PolicyPimConfig), nil + return output.(model.PolicyPimProfile), nil } else { methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), pIface.errorBindingMap[methodResult.Error().Name()]) if errorInError != nil { @@ -119,10 +140,10 @@ func (pIface *DefaultPimConfigurationsClient) Get(pimConfigIdParam string) (mode } } -func (pIface *DefaultPimConfigurationsClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyPimConfigListResult, error) { +func (pIface *DefaultPimProfilesClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyPimProfileListResult, error) { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "list") - sv := bindings.NewStructValueBuilder(pimConfigurationsListInputType(), typeConverter) + sv := bindings.NewStructValueBuilder(pimProfilesListInputType(), typeConverter) sv.AddStructField("Cursor", cursorParam) sv.AddStructField("IncludeMarkForDeleteObjects", includeMarkForDeleteObjectsParam) sv.AddStructField("IncludedFields", includedFieldsParam) @@ -131,22 +152,22 @@ func (pIface *DefaultPimConfigurationsClient) List(cursorParam *string, includeM sv.AddStructField("SortBy", sortByParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { - var emptyOutput model.PolicyPimConfigListResult + var emptyOutput model.PolicyPimProfileListResult return emptyOutput, bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := pimConfigurationsListRestMetadata() + operationRestMetaData := pimProfilesListRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false pIface.connector.SetConnectionMetadata(connectionMetadata) executionContext := pIface.connector.NewExecutionContext() methodResult := pIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyPimConfigListResult + var emptyOutput model.PolicyPimProfileListResult if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), pimConfigurationsListOutputType()) + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), pimProfilesListOutputType()) if errorInOutput != nil { return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) } - return output.(model.PolicyPimConfigListResult), nil + return output.(model.PolicyPimProfileListResult), nil } else { methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), pIface.errorBindingMap[methodResult.Error().Name()]) if errorInError != nil { @@ -156,17 +177,17 @@ func (pIface *DefaultPimConfigurationsClient) List(cursorParam *string, includeM } } -func (pIface *DefaultPimConfigurationsClient) Patch(pimConfigIdParam string, policyPimConfigParam model.PolicyPimConfig) error { +func (pIface *DefaultPimProfilesClient) Patch(pimProfileIdParam string, policyPimProfileParam model.PolicyPimProfile) error { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "patch") - sv := bindings.NewStructValueBuilder(pimConfigurationsPatchInputType(), typeConverter) - sv.AddStructField("PimConfigId", pimConfigIdParam) - sv.AddStructField("PolicyPimConfig", policyPimConfigParam) + sv := bindings.NewStructValueBuilder(pimProfilesPatchInputType(), typeConverter) + sv.AddStructField("PimProfileId", pimProfileIdParam) + sv.AddStructField("PolicyPimProfile", policyPimProfileParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := pimConfigurationsPatchRestMetadata() + operationRestMetaData := pimProfilesPatchRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false pIface.connector.SetConnectionMetadata(connectionMetadata) @@ -183,30 +204,30 @@ func (pIface *DefaultPimConfigurationsClient) Patch(pimConfigIdParam string, pol } } -func (pIface *DefaultPimConfigurationsClient) Update(pimConfigIdParam string, policyPimConfigParam model.PolicyPimConfig) (model.PolicyPimConfig, error) { +func (pIface *DefaultPimProfilesClient) Update(pimProfileIdParam string, policyPimProfileParam model.PolicyPimProfile) (model.PolicyPimProfile, error) { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "update") - sv := bindings.NewStructValueBuilder(pimConfigurationsUpdateInputType(), typeConverter) - sv.AddStructField("PimConfigId", pimConfigIdParam) - sv.AddStructField("PolicyPimConfig", policyPimConfigParam) + sv := bindings.NewStructValueBuilder(pimProfilesUpdateInputType(), typeConverter) + sv.AddStructField("PimProfileId", pimProfileIdParam) + sv.AddStructField("PolicyPimProfile", policyPimProfileParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { - var emptyOutput model.PolicyPimConfig + var emptyOutput model.PolicyPimProfile return emptyOutput, bindings.VAPIerrorsToError(inputError) } - operationRestMetaData := pimConfigurationsUpdateRestMetadata() + operationRestMetaData := pimProfilesUpdateRestMetadata() connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} connectionMetadata["isStreamingResponse"] = false pIface.connector.SetConnectionMetadata(connectionMetadata) executionContext := pIface.connector.NewExecutionContext() methodResult := pIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyPimConfig + var emptyOutput model.PolicyPimProfile if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), pimConfigurationsUpdateOutputType()) + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), pimProfilesUpdateOutputType()) if errorInOutput != nil { return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) } - return output.(model.PolicyPimConfig), nil + return output.(model.PolicyPimProfile), nil } else { methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), pIface.errorBindingMap[methodResult.Error().Name()]) if errorInError != nil { @@ -217,25 +238,25 @@ func (pIface *DefaultPimConfigurationsClient) Update(pimConfigIdParam string, po } -func (pIface *DefaultPimConfigurationsClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { +func (pIface *DefaultPimProfilesClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { methodResult := pIface.connector.GetApiProvider().Invoke(pIface.interfaceName, methodId.Name(), inputDataValue, ctx) return methodResult } -func (pIface *DefaultPimConfigurationsClient) deleteMethodDefinition() *core.MethodDefinition { +func (pIface *DefaultPimProfilesClient) deleteMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(pIface.interfaceName) typeConverter := pIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(pimConfigurationsDeleteInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(pimConfigurationsDeleteOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(pimProfilesDeleteInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(pimProfilesDeleteOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.delete method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.delete method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.delete method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.delete method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -244,7 +265,7 @@ func (pIface *DefaultPimConfigurationsClient) deleteMethodDefinition() *core.Met pIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.delete method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.delete method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -252,7 +273,7 @@ func (pIface *DefaultPimConfigurationsClient) deleteMethodDefinition() *core.Met pIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.delete method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.delete method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -260,7 +281,7 @@ func (pIface *DefaultPimConfigurationsClient) deleteMethodDefinition() *core.Met pIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.delete method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.delete method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -268,7 +289,7 @@ func (pIface *DefaultPimConfigurationsClient) deleteMethodDefinition() *core.Met pIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.delete method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.delete method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -276,7 +297,7 @@ func (pIface *DefaultPimConfigurationsClient) deleteMethodDefinition() *core.Met pIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.delete method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.delete method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -286,19 +307,19 @@ func (pIface *DefaultPimConfigurationsClient) deleteMethodDefinition() *core.Met return &methodDefinition } -func (pIface *DefaultPimConfigurationsClient) getMethodDefinition() *core.MethodDefinition { +func (pIface *DefaultPimProfilesClient) getMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(pIface.interfaceName) typeConverter := pIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(pimConfigurationsGetInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(pimConfigurationsGetOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(pimProfilesGetInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(pimProfilesGetOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.get method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.get method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.get method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.get method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -307,7 +328,7 @@ func (pIface *DefaultPimConfigurationsClient) getMethodDefinition() *core.Method pIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.get method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.get method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -315,7 +336,7 @@ func (pIface *DefaultPimConfigurationsClient) getMethodDefinition() *core.Method pIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.get method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.get method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -323,7 +344,7 @@ func (pIface *DefaultPimConfigurationsClient) getMethodDefinition() *core.Method pIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.get method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.get method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -331,7 +352,7 @@ func (pIface *DefaultPimConfigurationsClient) getMethodDefinition() *core.Method pIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.get method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.get method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -339,7 +360,7 @@ func (pIface *DefaultPimConfigurationsClient) getMethodDefinition() *core.Method pIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.get method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.get method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -349,19 +370,19 @@ func (pIface *DefaultPimConfigurationsClient) getMethodDefinition() *core.Method return &methodDefinition } -func (pIface *DefaultPimConfigurationsClient) listMethodDefinition() *core.MethodDefinition { +func (pIface *DefaultPimProfilesClient) listMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(pIface.interfaceName) typeConverter := pIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(pimConfigurationsListInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(pimConfigurationsListOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(pimProfilesListInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(pimProfilesListOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.list method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.list method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.list method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.list method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -370,7 +391,7 @@ func (pIface *DefaultPimConfigurationsClient) listMethodDefinition() *core.Metho pIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.list method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.list method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -378,7 +399,7 @@ func (pIface *DefaultPimConfigurationsClient) listMethodDefinition() *core.Metho pIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.list method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.list method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -386,7 +407,7 @@ func (pIface *DefaultPimConfigurationsClient) listMethodDefinition() *core.Metho pIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.list method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.list method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -394,7 +415,7 @@ func (pIface *DefaultPimConfigurationsClient) listMethodDefinition() *core.Metho pIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.list method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.list method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -402,7 +423,7 @@ func (pIface *DefaultPimConfigurationsClient) listMethodDefinition() *core.Metho pIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.list method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.list method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -412,19 +433,19 @@ func (pIface *DefaultPimConfigurationsClient) listMethodDefinition() *core.Metho return &methodDefinition } -func (pIface *DefaultPimConfigurationsClient) patchMethodDefinition() *core.MethodDefinition { +func (pIface *DefaultPimProfilesClient) patchMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(pIface.interfaceName) typeConverter := pIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(pimConfigurationsPatchInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(pimConfigurationsPatchOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(pimProfilesPatchInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(pimProfilesPatchOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.patch method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.patch method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.patch method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.patch method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -433,7 +454,7 @@ func (pIface *DefaultPimConfigurationsClient) patchMethodDefinition() *core.Meth pIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.patch method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.patch method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -441,7 +462,7 @@ func (pIface *DefaultPimConfigurationsClient) patchMethodDefinition() *core.Meth pIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.patch method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.patch method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -449,7 +470,7 @@ func (pIface *DefaultPimConfigurationsClient) patchMethodDefinition() *core.Meth pIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.patch method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.patch method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -457,7 +478,7 @@ func (pIface *DefaultPimConfigurationsClient) patchMethodDefinition() *core.Meth pIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.patch method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.patch method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -465,7 +486,7 @@ func (pIface *DefaultPimConfigurationsClient) patchMethodDefinition() *core.Meth pIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.patch method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.patch method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } @@ -475,19 +496,19 @@ func (pIface *DefaultPimConfigurationsClient) patchMethodDefinition() *core.Meth return &methodDefinition } -func (pIface *DefaultPimConfigurationsClient) updateMethodDefinition() *core.MethodDefinition { +func (pIface *DefaultPimProfilesClient) updateMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(pIface.interfaceName) typeConverter := pIface.connector.TypeConverter() - input, inputError := typeConverter.ConvertToDataDefinition(pimConfigurationsUpdateInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(pimConfigurationsUpdateOutputType()) + input, inputError := typeConverter.ConvertToDataDefinition(pimProfilesUpdateInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(pimProfilesUpdateOutputType()) if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.update method's input - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.update method's input - %s", bindings.VAPIerrorsToError(inputError).Error()) return nil } if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.update method's output - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.update method's output - %s", bindings.VAPIerrorsToError(outputError).Error()) return nil } @@ -496,7 +517,7 @@ func (pIface *DefaultPimConfigurationsClient) updateMethodDefinition() *core.Met pIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.update method's errors.InvalidRequest error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.update method's errors.InvalidRequest error - %s", bindings.VAPIerrorsToError(errError1).Error()) return nil } @@ -504,7 +525,7 @@ func (pIface *DefaultPimConfigurationsClient) updateMethodDefinition() *core.Met pIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.update method's errors.Unauthorized error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.update method's errors.Unauthorized error - %s", bindings.VAPIerrorsToError(errError2).Error()) return nil } @@ -512,7 +533,7 @@ func (pIface *DefaultPimConfigurationsClient) updateMethodDefinition() *core.Met pIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.update method's errors.ServiceUnavailable error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.update method's errors.ServiceUnavailable error - %s", bindings.VAPIerrorsToError(errError3).Error()) return nil } @@ -520,7 +541,7 @@ func (pIface *DefaultPimConfigurationsClient) updateMethodDefinition() *core.Met pIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.update method's errors.InternalServerError error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.update method's errors.InternalServerError error - %s", bindings.VAPIerrorsToError(errError4).Error()) return nil } @@ -528,7 +549,7 @@ func (pIface *DefaultPimConfigurationsClient) updateMethodDefinition() *core.Met pIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultPimConfigurationsClient.update method's errors.NotFound error - %s", + log.Errorf("Error in ConvertToDataDefinition for DefaultPimProfilesClient.update method's errors.NotFound error - %s", bindings.VAPIerrorsToError(errError5).Error()) return nil } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPortMirroringProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPortMirroringProfilesClient.go index b1251d9fe..13745f33f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPortMirroringProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultPortMirroringProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultPortMirroringProfilesClient(connector client.Connector) *DefaultP } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + pIface := DefaultPortMirroringProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} pIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) pIface.methodNameToDefMap["delete"] = pIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultPortMirroringProfilesClient(connector client.Connector) *DefaultP return &pIface } -func (pIface *DefaultPortMirroringProfilesClient) Delete(portMirroringProfileIdParam string, overrideParam *bool) error { +func (pIface *DefaultPortMirroringProfilesClient) Delete(portMirroringProfileIdParam string) error { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(portMirroringProfilesDeleteInputType(), typeConverter) sv.AddStructField("PortMirroringProfileId", portMirroringProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -156,13 +176,12 @@ func (pIface *DefaultPortMirroringProfilesClient) List(cursorParam *string, incl } } -func (pIface *DefaultPortMirroringProfilesClient) Patch(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile, overrideParam *bool) error { +func (pIface *DefaultPortMirroringProfilesClient) Patch(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile) error { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(portMirroringProfilesPatchInputType(), typeConverter) sv.AddStructField("PortMirroringProfileId", portMirroringProfileIdParam) sv.AddStructField("PortMirroringProfile", portMirroringProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -184,13 +203,12 @@ func (pIface *DefaultPortMirroringProfilesClient) Patch(portMirroringProfileIdPa } } -func (pIface *DefaultPortMirroringProfilesClient) Update(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile, overrideParam *bool) (model.PortMirroringProfile, error) { +func (pIface *DefaultPortMirroringProfilesClient) Update(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile) (model.PortMirroringProfile, error) { typeConverter := pIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(pIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(portMirroringProfilesUpdateInputType(), typeConverter) sv.AddStructField("PortMirroringProfileId", portMirroringProfileIdParam) sv.AddStructField("PortMirroringProfile", portMirroringProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.PortMirroringProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultQosProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultQosProfilesClient.go index ed1e0f5f7..3923c00bc 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultQosProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultQosProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultQosProfilesClient(connector client.Connector) *DefaultQosProfiles } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + qIface := DefaultQosProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} qIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) qIface.methodNameToDefMap["delete"] = qIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultQosProfilesClient(connector client.Connector) *DefaultQosProfiles return &qIface } -func (qIface *DefaultQosProfilesClient) Delete(qosProfileIdParam string, overrideParam *bool) error { +func (qIface *DefaultQosProfilesClient) Delete(qosProfileIdParam string) error { typeConverter := qIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(qIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(qosProfilesDeleteInputType(), typeConverter) sv.AddStructField("QosProfileId", qosProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -156,13 +176,12 @@ func (qIface *DefaultQosProfilesClient) List(cursorParam *string, includedFields } } -func (qIface *DefaultQosProfilesClient) Patch(qosProfileIdParam string, qosProfileParam model.QosProfile, overrideParam *bool) error { +func (qIface *DefaultQosProfilesClient) Patch(qosProfileIdParam string, qosProfileParam model.QosProfile) error { typeConverter := qIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(qIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(qosProfilesPatchInputType(), typeConverter) sv.AddStructField("QosProfileId", qosProfileIdParam) sv.AddStructField("QosProfile", qosProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -184,13 +203,12 @@ func (qIface *DefaultQosProfilesClient) Patch(qosProfileIdParam string, qosProfi } } -func (qIface *DefaultQosProfilesClient) Update(qosProfileIdParam string, qosProfileParam model.QosProfile, overrideParam *bool) (model.QosProfile, error) { +func (qIface *DefaultQosProfilesClient) Update(qosProfileIdParam string, qosProfileParam model.QosProfile) (model.QosProfile, error) { typeConverter := qIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(qIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(qosProfilesUpdateInputType(), typeConverter) sv.AddStructField("QosProfileId", qosProfileIdParam) sv.AddStructField("QosProfile", qosProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.QosProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultReactionsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultReactionsClient.go index 45490fd15..8d00bb7c2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultReactionsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultReactionsClient.go @@ -45,12 +45,33 @@ func NewDefaultReactionsClient(connector client.Connector) *DefaultReactionsClie } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + rIface := DefaultReactionsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} rIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) rIface.methodNameToDefMap["delete"] = rIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentSecurityProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentSecurityProfilesClient.go index 0cac5b319..4633fae6c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentSecurityProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentSecurityProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultSegmentSecurityProfilesClient(connector client.Connector) *Defaul } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSegmentSecurityProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultSegmentSecurityProfilesClient(connector client.Connector) *Defaul return &sIface } -func (sIface *DefaultSegmentSecurityProfilesClient) Delete(segmentSecurityProfileIdParam string, overrideParam *bool) error { +func (sIface *DefaultSegmentSecurityProfilesClient) Delete(segmentSecurityProfileIdParam string) error { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(segmentSecurityProfilesDeleteInputType(), typeConverter) sv.AddStructField("SegmentSecurityProfileId", segmentSecurityProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (sIface *DefaultSegmentSecurityProfilesClient) List(cursorParam *string, in } } -func (sIface *DefaultSegmentSecurityProfilesClient) Patch(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile, overrideParam *bool) error { +func (sIface *DefaultSegmentSecurityProfilesClient) Patch(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile) error { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(segmentSecurityProfilesPatchInputType(), typeConverter) sv.AddStructField("SegmentSecurityProfileId", segmentSecurityProfileIdParam) sv.AddStructField("SegmentSecurityProfile", segmentSecurityProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (sIface *DefaultSegmentSecurityProfilesClient) Patch(segmentSecurityProfile } } -func (sIface *DefaultSegmentSecurityProfilesClient) Update(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile, overrideParam *bool) (model.SegmentSecurityProfile, error) { +func (sIface *DefaultSegmentSecurityProfilesClient) Update(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile) (model.SegmentSecurityProfile, error) { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(segmentSecurityProfilesUpdateInputType(), typeConverter) sv.AddStructField("SegmentSecurityProfileId", segmentSecurityProfileIdParam) sv.AddStructField("SegmentSecurityProfile", segmentSecurityProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.SegmentSecurityProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentsClient.go index 4374a7303..aff528b85 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSegmentsClient.go @@ -42,16 +42,39 @@ func NewDefaultSegmentsClient(connector client.Connector) *DefaultSegmentsClient core.NewMethodIdentifier(interfaceIdentifier, "get"), core.NewMethodIdentifier(interfaceIdentifier, "list"), core.NewMethodIdentifier(interfaceIdentifier, "patch"), + core.NewMethodIdentifier(interfaceIdentifier, "patch_0"), core.NewMethodIdentifier(interfaceIdentifier, "update"), + core.NewMethodIdentifier(interfaceIdentifier, "update_0"), } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSegmentsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() @@ -59,7 +82,9 @@ func NewDefaultSegmentsClient(connector client.Connector) *DefaultSegmentsClient sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() sIface.methodNameToDefMap["list"] = sIface.listMethodDefinition() sIface.methodNameToDefMap["patch"] = sIface.patchMethodDefinition() + sIface.methodNameToDefMap["patch_0"] = sIface.patch_0MethodDefinition() sIface.methodNameToDefMap["update"] = sIface.updateMethodDefinition() + sIface.methodNameToDefMap["update_0"] = sIface.update_0MethodDefinition() return &sIface } @@ -211,6 +236,33 @@ func (sIface *DefaultSegmentsClient) Patch(segmentIdParam string, segmentParam m } } +func (sIface *DefaultSegmentsClient) Patch0(segmentIdParam string, segmentParam model.Segment) error { + typeConverter := sIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "patch_0") + sv := bindings.NewStructValueBuilder(segmentsPatch0InputType(), typeConverter) + sv.AddStructField("SegmentId", segmentIdParam) + sv.AddStructField("Segment", segmentParam) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + return bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := segmentsPatch0RestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + sIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := sIface.connector.NewExecutionContext() + methodResult := sIface.Invoke(executionContext, methodIdentifier, inputDataValue) + if methodResult.IsSuccess() { + return nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), sIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return bindings.VAPIerrorsToError(errorInError) + } + return methodError.(error) + } +} + func (sIface *DefaultSegmentsClient) Update(segmentIdParam string, segmentParam model.Segment) (model.Segment, error) { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "update") @@ -244,6 +296,39 @@ func (sIface *DefaultSegmentsClient) Update(segmentIdParam string, segmentParam } } +func (sIface *DefaultSegmentsClient) Update0(segmentIdParam string, segmentParam model.Segment) (model.Segment, error) { + typeConverter := sIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "update_0") + sv := bindings.NewStructValueBuilder(segmentsUpdate0InputType(), typeConverter) + sv.AddStructField("SegmentId", segmentIdParam) + sv.AddStructField("Segment", segmentParam) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + var emptyOutput model.Segment + return emptyOutput, bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := segmentsUpdate0RestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + sIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := sIface.connector.NewExecutionContext() + methodResult := sIface.Invoke(executionContext, methodIdentifier, inputDataValue) + var emptyOutput model.Segment + if methodResult.IsSuccess() { + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), segmentsUpdate0OutputType()) + if errorInOutput != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) + } + return output.(model.Segment), nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), sIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInError) + } + return emptyOutput, methodError.(error) + } +} + func (sIface *DefaultSegmentsClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { methodResult := sIface.connector.GetApiProvider().Invoke(sIface.interfaceName, methodId.Name(), inputDataValue, ctx) @@ -566,6 +651,69 @@ func (sIface *DefaultSegmentsClient) patchMethodDefinition() *core.MethodDefinit return &methodDefinition } +func (sIface *DefaultSegmentsClient) patch_0MethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(sIface.interfaceName) + typeConverter := sIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(segmentsPatch0InputType()) + output, outputError := typeConverter.ConvertToDataDefinition(segmentsPatch0OutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.patch_0 method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.patch_0 method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "patch_0") + errorDefinitions := make([]data.ErrorDefinition, 0) + sIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.patch_0 method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.patch_0 method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.patch_0 method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.patch_0 method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.patch_0 method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} + func (sIface *DefaultSegmentsClient) updateMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(sIface.interfaceName) typeConverter := sIface.connector.TypeConverter() @@ -628,3 +776,66 @@ func (sIface *DefaultSegmentsClient) updateMethodDefinition() *core.MethodDefini methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) return &methodDefinition } + +func (sIface *DefaultSegmentsClient) update_0MethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(sIface.interfaceName) + typeConverter := sIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(segmentsUpdate0InputType()) + output, outputError := typeConverter.ConvertToDataDefinition(segmentsUpdate0OutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.update_0 method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.update_0 method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "update_0") + errorDefinitions := make([]data.ErrorDefinition, 0) + sIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.update_0 method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.update_0 method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.update_0 method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.update_0 method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSegmentsClient.update_0 method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceChainsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceChainsClient.go index 1e215dc26..0de477fb1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceChainsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceChainsClient.go @@ -45,12 +45,33 @@ func NewDefaultServiceChainsClient(connector client.Connector) *DefaultServiceCh } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultServiceChainsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceReferencesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceReferencesClient.go index c8a797451..0e5fee45d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceReferencesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServiceReferencesClient.go @@ -45,12 +45,33 @@ func NewDefaultServiceReferencesClient(connector client.Connector) *DefaultServi } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultServiceReferencesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServicesClient.go index 51b4030c4..1bbc882fb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultServicesClient(connector client.Connector) *DefaultServicesClient } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSiteClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSiteClient.go new file mode 100644 index 000000000..0109e7b9d --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSiteClient.go @@ -0,0 +1,176 @@ + +/* Copyright © 2019 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +// Code generated. DO NOT EDIT. + +/* + * Client stubs for service: Site + * Functions that implement the generated SiteClient interface + */ + + +package infra + +import ( + "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" + "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors" + "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" + "github.com/vmware/vsphere-automation-sdk-go/runtime/core" + "github.com/vmware/vsphere-automation-sdk-go/runtime/data" + "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" + "github.com/vmware/vsphere-automation-sdk-go/runtime/log" + "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" +) + +type DefaultSiteClient struct { + interfaceName string + interfaceDefinition core.InterfaceDefinition + methodIdentifiers []core.MethodIdentifier + methodNameToDefMap map[string]*core.MethodDefinition + errorBindingMap map[string]bindings.BindingType + interfaceIdentifier core.InterfaceIdentifier + connector client.Connector +} + +func NewDefaultSiteClient(connector client.Connector) *DefaultSiteClient { + interfaceName := "com.vmware.nsx_policy.infra.site" + interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) + methodIdentifiers := []core.MethodIdentifier{ + core.NewMethodIdentifier(interfaceIdentifier, "offboard"), + } + interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) + errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() + errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() + errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() + errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + + sIface := DefaultSiteClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} + sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) + sIface.methodNameToDefMap["offboard"] = sIface.offboardMethodDefinition() + return &sIface +} + +func (sIface *DefaultSiteClient) Offboard() (model.SiteOffBoardingState, error) { + typeConverter := sIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "offboard") + sv := bindings.NewStructValueBuilder(siteOffboardInputType(), typeConverter) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + var emptyOutput model.SiteOffBoardingState + return emptyOutput, bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := siteOffboardRestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + sIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := sIface.connector.NewExecutionContext() + methodResult := sIface.Invoke(executionContext, methodIdentifier, inputDataValue) + var emptyOutput model.SiteOffBoardingState + if methodResult.IsSuccess() { + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), siteOffboardOutputType()) + if errorInOutput != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) + } + return output.(model.SiteOffBoardingState), nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), sIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInError) + } + return emptyOutput, methodError.(error) + } +} + + +func (sIface *DefaultSiteClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { + methodResult := sIface.connector.GetApiProvider().Invoke(sIface.interfaceName, methodId.Name(), inputDataValue, ctx) + return methodResult +} + + +func (sIface *DefaultSiteClient) offboardMethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(sIface.interfaceName) + typeConverter := sIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(siteOffboardInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(siteOffboardOutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSiteClient.offboard method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSiteClient.offboard method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "offboard") + errorDefinitions := make([]data.ErrorDefinition, 0) + sIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSiteClient.offboard method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSiteClient.offboard method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSiteClient.offboard method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSiteClient.offboard method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + sIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultSiteClient.offboard method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSitesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSitesClient.go index cafd8f434..4dba8fb1f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSitesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSitesClient.go @@ -45,12 +45,33 @@ func NewDefaultSitesClient(connector client.Connector) *DefaultSitesClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSitesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() @@ -61,11 +82,12 @@ func NewDefaultSitesClient(connector client.Connector) *DefaultSitesClient { return &sIface } -func (sIface *DefaultSitesClient) Delete(siteIdParam string) error { +func (sIface *DefaultSitesClient) Delete(siteIdParam string, forceParam *bool) error { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(sitesDeleteInputType(), typeConverter) sv.AddStructField("SiteId", siteIdParam) + sv.AddStructField("Force", forceParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpanClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpanClient.go index 4461663d8..289f820a7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpanClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpanClient.go @@ -41,23 +41,45 @@ func NewDefaultSpanClient(connector client.Connector) *DefaultSpanClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSpanClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() return &sIface } -func (sIface *DefaultSpanClient) Get(intentPathParam string) (model.Span, error) { +func (sIface *DefaultSpanClient) Get(intentPathParam string, sitePathParam *string) (model.Span, error) { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "get") sv := bindings.NewStructValueBuilder(spanGetInputType(), typeConverter) sv.AddStructField("IntentPath", intentPathParam) + sv.AddStructField("SitePath", sitePathParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.Span diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpoofguardProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpoofguardProfilesClient.go index 49e988f16..f0ed555bb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpoofguardProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultSpoofguardProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultSpoofguardProfilesClient(connector client.Connector) *DefaultSpoo } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSpoofguardProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() @@ -61,12 +82,11 @@ func NewDefaultSpoofguardProfilesClient(connector client.Connector) *DefaultSpoo return &sIface } -func (sIface *DefaultSpoofguardProfilesClient) Delete(spoofguardProfileIdParam string, overrideParam *bool) error { +func (sIface *DefaultSpoofguardProfilesClient) Delete(spoofguardProfileIdParam string) error { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(spoofguardProfilesDeleteInputType(), typeConverter) sv.AddStructField("SpoofguardProfileId", spoofguardProfileIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -157,13 +177,12 @@ func (sIface *DefaultSpoofguardProfilesClient) List(cursorParam *string, include } } -func (sIface *DefaultSpoofguardProfilesClient) Patch(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile, overrideParam *bool) error { +func (sIface *DefaultSpoofguardProfilesClient) Patch(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile) error { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(spoofguardProfilesPatchInputType(), typeConverter) sv.AddStructField("SpoofguardProfileId", spoofguardProfileIdParam) sv.AddStructField("SpoofGuardProfile", spoofGuardProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -185,13 +204,12 @@ func (sIface *DefaultSpoofguardProfilesClient) Patch(spoofguardProfileIdParam st } } -func (sIface *DefaultSpoofguardProfilesClient) Update(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile, overrideParam *bool) (model.SpoofGuardProfile, error) { +func (sIface *DefaultSpoofguardProfilesClient) Update(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile) (model.SpoofGuardProfile, error) { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(spoofguardProfilesUpdateInputType(), typeConverter) sv.AddStructField("SpoofguardProfileId", spoofguardProfileIdParam) sv.AddStructField("SpoofGuardProfile", spoofGuardProfileParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.SpoofGuardProfile diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTagsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTagsClient.go index b786c7f1f..7ec551bc3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTagsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTagsClient.go @@ -41,12 +41,33 @@ func NewDefaultTagsClient(connector client.Connector) *DefaultTagsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + tIface := DefaultTagsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} tIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) tIface.methodNameToDefMap["list"] = tIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier0sClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier0sClient.go index 3fba494dd..28372233a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier0sClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier0sClient.go @@ -46,12 +46,33 @@ func NewDefaultTier0sClient(connector client.Connector) *DefaultTier0sClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + tIface := DefaultTier0sClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} tIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) tIface.methodNameToDefMap["delete"] = tIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier1sClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier1sClient.go index 434a9b062..c5a60f3c3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier1sClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTier1sClient.go @@ -46,12 +46,33 @@ func NewDefaultTier1sClient(connector client.Connector) *DefaultTier1sClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + tIface := DefaultTier1sClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} tIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) tIface.methodNameToDefMap["delete"] = tIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTraceflowsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTraceflowsClient.go index d733dff25..02d11c81e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTraceflowsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultTraceflowsClient.go @@ -37,6 +37,7 @@ func NewDefaultTraceflowsClient(connector client.Connector) *DefaultTraceflowsCl interfaceName := "com.vmware.nsx_policy.infra.traceflows" interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) methodIdentifiers := []core.MethodIdentifier{ + core.NewMethodIdentifier(interfaceIdentifier, "create"), core.NewMethodIdentifier(interfaceIdentifier, "delete"), core.NewMethodIdentifier(interfaceIdentifier, "get"), core.NewMethodIdentifier(interfaceIdentifier, "list"), @@ -45,14 +46,36 @@ func NewDefaultTraceflowsClient(connector client.Connector) *DefaultTraceflowsCl } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + tIface := DefaultTraceflowsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} tIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) + tIface.methodNameToDefMap["create"] = tIface.createMethodDefinition() tIface.methodNameToDefMap["delete"] = tIface.deleteMethodDefinition() tIface.methodNameToDefMap["get"] = tIface.getMethodDefinition() tIface.methodNameToDefMap["list"] = tIface.listMethodDefinition() @@ -61,6 +84,39 @@ func NewDefaultTraceflowsClient(connector client.Connector) *DefaultTraceflowsCl return &tIface } +func (tIface *DefaultTraceflowsClient) Create(traceflowIdParam string, actionParam *string) (model.TraceflowConfig, error) { + typeConverter := tIface.connector.TypeConverter() + methodIdentifier := core.NewMethodIdentifier(tIface.interfaceIdentifier, "create") + sv := bindings.NewStructValueBuilder(traceflowsCreateInputType(), typeConverter) + sv.AddStructField("TraceflowId", traceflowIdParam) + sv.AddStructField("Action", actionParam) + inputDataValue, inputError := sv.GetStructValue() + if inputError != nil { + var emptyOutput model.TraceflowConfig + return emptyOutput, bindings.VAPIerrorsToError(inputError) + } + operationRestMetaData := traceflowsCreateRestMetadata() + connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} + connectionMetadata["isStreamingResponse"] = false + tIface.connector.SetConnectionMetadata(connectionMetadata) + executionContext := tIface.connector.NewExecutionContext() + methodResult := tIface.Invoke(executionContext, methodIdentifier, inputDataValue) + var emptyOutput model.TraceflowConfig + if methodResult.IsSuccess() { + output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), traceflowsCreateOutputType()) + if errorInOutput != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) + } + return output.(model.TraceflowConfig), nil + } else { + methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), tIface.errorBindingMap[methodResult.Error().Name()]) + if errorInError != nil { + return emptyOutput, bindings.VAPIerrorsToError(errorInError) + } + return emptyOutput, methodError.(error) + } +} + func (tIface *DefaultTraceflowsClient) Delete(traceflowIdParam string) error { typeConverter := tIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(tIface.interfaceIdentifier, "delete") @@ -223,6 +279,69 @@ func (tIface *DefaultTraceflowsClient) Invoke(ctx *core.ExecutionContext, method } +func (tIface *DefaultTraceflowsClient) createMethodDefinition() *core.MethodDefinition { + interfaceIdentifier := core.NewInterfaceIdentifier(tIface.interfaceName) + typeConverter := tIface.connector.TypeConverter() + + input, inputError := typeConverter.ConvertToDataDefinition(traceflowsCreateInputType()) + output, outputError := typeConverter.ConvertToDataDefinition(traceflowsCreateOutputType()) + if inputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultTraceflowsClient.create method's input - %s", + bindings.VAPIerrorsToError(inputError).Error()) + return nil + } + if outputError != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultTraceflowsClient.create method's output - %s", + bindings.VAPIerrorsToError(outputError).Error()) + return nil + } + methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "create") + errorDefinitions := make([]data.ErrorDefinition, 0) + tIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) + if errError1 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultTraceflowsClient.create method's errors.InvalidRequest error - %s", + bindings.VAPIerrorsToError(errError1).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) + tIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) + if errError2 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultTraceflowsClient.create method's errors.Unauthorized error - %s", + bindings.VAPIerrorsToError(errError2).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) + tIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() + errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) + if errError3 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultTraceflowsClient.create method's errors.ServiceUnavailable error - %s", + bindings.VAPIerrorsToError(errError3).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) + tIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() + errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) + if errError4 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultTraceflowsClient.create method's errors.InternalServerError error - %s", + bindings.VAPIerrorsToError(errError4).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) + tIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) + if errError5 != nil { + log.Errorf("Error in ConvertToDataDefinition for DefaultTraceflowsClient.create method's errors.NotFound error - %s", + bindings.VAPIerrorsToError(errError5).Error()) + return nil + } + errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) + + methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) + return &methodDefinition +} + func (tIface *DefaultTraceflowsClient) deleteMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(tIface.interfaceName) typeConverter := tIface.connector.TypeConverter() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUpgradeSummaryClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUpgradeSummaryClient.go index 495ec195b..22e8f8278 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUpgradeSummaryClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUpgradeSummaryClient.go @@ -41,12 +41,33 @@ func NewDefaultUpgradeSummaryClient(connector client.Connector) *DefaultUpgradeS } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + uIface := DefaultUpgradeSummaryClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} uIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) uIface.methodNameToDefMap["list"] = uIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlCategoriesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlCategoriesClient.go index a627ffbb4..a8eb43eb8 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlCategoriesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlCategoriesClient.go @@ -37,56 +37,43 @@ func NewDefaultUrlCategoriesClient(connector client.Connector) *DefaultUrlCatego interfaceName := "com.vmware.nsx_policy.infra.url_categories" interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) methodIdentifiers := []core.MethodIdentifier{ - core.NewMethodIdentifier(interfaceIdentifier, "get"), core.NewMethodIdentifier(interfaceIdentifier, "list"), } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + uIface := DefaultUrlCategoriesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} uIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) - uIface.methodNameToDefMap["get"] = uIface.getMethodDefinition() uIface.methodNameToDefMap["list"] = uIface.listMethodDefinition() return &uIface } -func (uIface *DefaultUrlCategoriesClient) Get(categoryIdParam string) (model.PolicyUrlCategory, error) { - typeConverter := uIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(uIface.interfaceIdentifier, "get") - sv := bindings.NewStructValueBuilder(urlCategoriesGetInputType(), typeConverter) - sv.AddStructField("CategoryId", categoryIdParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - var emptyOutput model.PolicyUrlCategory - return emptyOutput, bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := urlCategoriesGetRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - uIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := uIface.connector.NewExecutionContext() - methodResult := uIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyUrlCategory - if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), urlCategoriesGetOutputType()) - if errorInOutput != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) - } - return output.(model.PolicyUrlCategory), nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), uIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInError) - } - return emptyOutput, methodError.(error) - } -} - func (uIface *DefaultUrlCategoriesClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyUrlCategoryListResult, error) { typeConverter := uIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(uIface.interfaceIdentifier, "list") @@ -131,69 +118,6 @@ func (uIface *DefaultUrlCategoriesClient) Invoke(ctx *core.ExecutionContext, met } -func (uIface *DefaultUrlCategoriesClient) getMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(uIface.interfaceName) - typeConverter := uIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(urlCategoriesGetInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(urlCategoriesGetOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlCategoriesClient.get method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlCategoriesClient.get method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "get") - errorDefinitions := make([]data.ErrorDefinition, 0) - uIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlCategoriesClient.get method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlCategoriesClient.get method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlCategoriesClient.get method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlCategoriesClient.get method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlCategoriesClient.get method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} - func (uIface *DefaultUrlCategoriesClient) listMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(uIface.interfaceName) typeConverter := uIface.connector.TypeConverter() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlReputationSeveritiesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlReputationSeveritiesClient.go index c7eeeb65b..242361024 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlReputationSeveritiesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultUrlReputationSeveritiesClient.go @@ -37,56 +37,43 @@ func NewDefaultUrlReputationSeveritiesClient(connector client.Connector) *Defaul interfaceName := "com.vmware.nsx_policy.infra.url_reputation_severities" interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) methodIdentifiers := []core.MethodIdentifier{ - core.NewMethodIdentifier(interfaceIdentifier, "get"), core.NewMethodIdentifier(interfaceIdentifier, "list"), } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + uIface := DefaultUrlReputationSeveritiesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} uIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) - uIface.methodNameToDefMap["get"] = uIface.getMethodDefinition() uIface.methodNameToDefMap["list"] = uIface.listMethodDefinition() return &uIface } -func (uIface *DefaultUrlReputationSeveritiesClient) Get(reputationSeverityIdParam string) (model.PolicyUrlReputationSeverity, error) { - typeConverter := uIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(uIface.interfaceIdentifier, "get") - sv := bindings.NewStructValueBuilder(urlReputationSeveritiesGetInputType(), typeConverter) - sv.AddStructField("ReputationSeverityId", reputationSeverityIdParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - var emptyOutput model.PolicyUrlReputationSeverity - return emptyOutput, bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := urlReputationSeveritiesGetRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - uIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := uIface.connector.NewExecutionContext() - methodResult := uIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.PolicyUrlReputationSeverity - if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), urlReputationSeveritiesGetOutputType()) - if errorInOutput != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) - } - return output.(model.PolicyUrlReputationSeverity), nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), uIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInError) - } - return emptyOutput, methodError.(error) - } -} - func (uIface *DefaultUrlReputationSeveritiesClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyUrlReputationSeverityListResult, error) { typeConverter := uIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(uIface.interfaceIdentifier, "list") @@ -131,69 +118,6 @@ func (uIface *DefaultUrlReputationSeveritiesClient) Invoke(ctx *core.ExecutionCo } -func (uIface *DefaultUrlReputationSeveritiesClient) getMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(uIface.interfaceName) - typeConverter := uIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(urlReputationSeveritiesGetInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(urlReputationSeveritiesGetOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlReputationSeveritiesClient.get method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlReputationSeveritiesClient.get method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "get") - errorDefinitions := make([]data.ErrorDefinition, 0) - uIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlReputationSeveritiesClient.get method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlReputationSeveritiesClient.get method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlReputationSeveritiesClient.get method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlReputationSeveritiesClient.get method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - uIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultUrlReputationSeveritiesClient.get method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} - func (uIface *DefaultUrlReputationSeveritiesClient) listMethodDefinition() *core.MethodDefinition { interfaceIdentifier := core.NewInterfaceIdentifier(uIface.interfaceName) typeConverter := uIface.connector.TypeConverter() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualMachineGroupAssociationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualMachineGroupAssociationsClient.go index 23d0bd3e3..3f447648d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualMachineGroupAssociationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualMachineGroupAssociationsClient.go @@ -41,12 +41,33 @@ func NewDefaultVirtualMachineGroupAssociationsClient(connector client.Connector) } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + vIface := DefaultVirtualMachineGroupAssociationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} vIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) vIface.methodNameToDefMap["list"] = vIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualNetworkInterfaceGroupAssociationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualNetworkInterfaceGroupAssociationsClient.go index a69a003c0..65fda8210 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualNetworkInterfaceGroupAssociationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVirtualNetworkInterfaceGroupAssociationsClient.go @@ -41,12 +41,33 @@ func NewDefaultVirtualNetworkInterfaceGroupAssociationsClient(connector client.C } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + vIface := DefaultVirtualNetworkInterfaceGroupAssociationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} vIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) vIface.methodNameToDefMap["list"] = vIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVniPoolsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVniPoolsClient.go index 6d7b4dd36..5c218f55d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVniPoolsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DefaultVniPoolsClient.go @@ -45,12 +45,33 @@ func NewDefaultVniPoolsClient(connector client.Connector) *DefaultVniPoolsClient } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + vIface := DefaultVniPoolsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} vIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) vIface.methodNameToDefMap["delete"] = vIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DeploymentZonesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DeploymentZonesTypes.go index d53f4ebc2..b45fd7a08 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DeploymentZonesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DeploymentZonesTypes.go @@ -44,6 +44,8 @@ func deploymentZonesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["deployment_zone_id"] = bindings.NewStringType() fieldNameMap["deployment_zone_id"] = "DeploymentZoneId" paramsTypeMap["deployment_zone_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func deploymentZonesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/deployment-zones/{deploymentZoneId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func deploymentZonesListInputType() bindings.StructType { @@ -98,6 +104,8 @@ func deploymentZonesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -131,14 +139,18 @@ func deploymentZonesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/deployment-zones", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpRelayConfigsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpRelayConfigsTypes.go index d9c9e1a7c..19b55f32a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpRelayConfigsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpRelayConfigsTypes.go @@ -44,6 +44,8 @@ func dhcpRelayConfigsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_relay_config_id"] = bindings.NewStringType() fieldNameMap["dhcp_relay_config_id"] = "DhcpRelayConfigId" paramsTypeMap["dhcp_relay_config_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func dhcpRelayConfigsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/dhcp-relay-configs/{dhcpRelayConfigId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpRelayConfigsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func dhcpRelayConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_relay_config_id"] = bindings.NewStringType() fieldNameMap["dhcp_relay_config_id"] = "DhcpRelayConfigId" paramsTypeMap["dhcp_relay_config_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func dhcpRelayConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dhcp-relay-configs/{dhcpRelayConfigId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpRelayConfigsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func dhcpRelayConfigsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func dhcpRelayConfigsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dhcp-relay-configs", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpRelayConfigsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func dhcpRelayConfigsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_relay_config_id"] = bindings.NewStringType() fields["dhcp_relay_config"] = bindings.NewReferenceType(model.DhcpRelayConfigBindingType) fieldNameMap["dhcp_relay_config_id"] = "DhcpRelayConfigId" @@ -224,14 +244,18 @@ func dhcpRelayConfigsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dhcp_relay_config", "PATCH", "/policy/api/v1/infra/dhcp-relay-configs/{dhcpRelayConfigId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpRelayConfigsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func dhcpRelayConfigsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_relay_config_id"] = bindings.NewStringType() fields["dhcp_relay_config"] = bindings.NewReferenceType(model.DhcpRelayConfigBindingType) fieldNameMap["dhcp_relay_config_id"] = "DhcpRelayConfigId" @@ -273,14 +299,18 @@ func dhcpRelayConfigsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dhcp_relay_config", "PUT", "/policy/api/v1/infra/dhcp-relay-configs/{dhcpRelayConfigId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpServerConfigsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpServerConfigsTypes.go index 3d87c25e7..7b8d08714 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpServerConfigsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DhcpServerConfigsTypes.go @@ -44,6 +44,8 @@ func dhcpServerConfigsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_server_config_id"] = bindings.NewStringType() fieldNameMap["dhcp_server_config_id"] = "DhcpServerConfigId" paramsTypeMap["dhcp_server_config_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func dhcpServerConfigsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/dhcp-server-configs/{dhcpServerConfigId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpServerConfigsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func dhcpServerConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_server_config_id"] = bindings.NewStringType() fieldNameMap["dhcp_server_config_id"] = "DhcpServerConfigId" paramsTypeMap["dhcp_server_config_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func dhcpServerConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dhcp-server-configs/{dhcpServerConfigId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpServerConfigsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func dhcpServerConfigsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func dhcpServerConfigsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dhcp-server-configs", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpServerConfigsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func dhcpServerConfigsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_server_config_id"] = bindings.NewStringType() fields["dhcp_server_config"] = bindings.NewReferenceType(model.DhcpServerConfigBindingType) fieldNameMap["dhcp_server_config_id"] = "DhcpServerConfigId" @@ -224,14 +244,18 @@ func dhcpServerConfigsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dhcp_server_config", "PATCH", "/policy/api/v1/infra/dhcp-server-configs/{dhcpServerConfigId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpServerConfigsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func dhcpServerConfigsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dhcp_server_config_id"] = bindings.NewStringType() fields["dhcp_server_config"] = bindings.NewReferenceType(model.DhcpServerConfigBindingType) fieldNameMap["dhcp_server_config_id"] = "DhcpServerConfigId" @@ -273,14 +299,18 @@ func dhcpServerConfigsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dhcp_server_config", "PUT", "/policy/api/v1/infra/dhcp-server-configs/{dhcpServerConfigId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsForwarderZonesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsForwarderZonesTypes.go index a28ab432f..d8a326595 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsForwarderZonesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsForwarderZonesTypes.go @@ -44,6 +44,8 @@ func dnsForwarderZonesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dns_forwarder_zone_id"] = bindings.NewStringType() fieldNameMap["dns_forwarder_zone_id"] = "DnsForwarderZoneId" paramsTypeMap["dns_forwarder_zone_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func dnsForwarderZonesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/dns-forwarder-zones/{dnsForwarderZoneId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderZonesGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func dnsForwarderZonesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dns_forwarder_zone_id"] = bindings.NewStringType() fieldNameMap["dns_forwarder_zone_id"] = "DnsForwarderZoneId" paramsTypeMap["dns_forwarder_zone_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func dnsForwarderZonesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dns-forwarder-zones/{dnsForwarderZoneId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderZonesListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func dnsForwarderZonesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func dnsForwarderZonesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dns-forwarder-zones", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderZonesPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func dnsForwarderZonesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dns_forwarder_zone_id"] = bindings.NewStringType() fields["policy_dns_forwarder_zone"] = bindings.NewReferenceType(model.PolicyDnsForwarderZoneBindingType) fieldNameMap["dns_forwarder_zone_id"] = "DnsForwarderZoneId" @@ -224,14 +244,18 @@ func dnsForwarderZonesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_dns_forwarder_zone", "PATCH", "/policy/api/v1/infra/dns-forwarder-zones/{dnsForwarderZoneId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderZonesUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func dnsForwarderZonesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dns_forwarder_zone_id"] = bindings.NewStringType() fields["policy_dns_forwarder_zone"] = bindings.NewReferenceType(model.PolicyDnsForwarderZoneBindingType) fieldNameMap["dns_forwarder_zone_id"] = "DnsForwarderZoneId" @@ -273,14 +299,18 @@ func dnsForwarderZonesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_dns_forwarder_zone", "PUT", "/policy/api/v1/infra/dns-forwarder-zones/{dnsForwarderZoneId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesClient.go index 5494689b6..ddaecf841 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesClient.go @@ -19,13 +19,12 @@ type DnsSecurityProfilesClient interface { // Delete DNS security profile // // @param profileIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(profileIdParam string, overrideParam *bool) error + Delete(profileIdParam string) error // Read the DNS Forwarder for the given tier-0 instance // @@ -58,24 +57,22 @@ type DnsSecurityProfilesClient interface { // // @param profileIdParam (required) // @param dnsSecurityProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile, overrideParam *bool) error + Patch(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile) error // Create or update DNS security profile // // @param profileIdParam (required) // @param dnsSecurityProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.DnsSecurityProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile, overrideParam *bool) (model.DnsSecurityProfile, error) + Update(profileIdParam string, dnsSecurityProfileParam model.DnsSecurityProfile) (model.DnsSecurityProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesTypes.go index 6c4c0280a..da972e964 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DnsSecurityProfilesTypes.go @@ -28,9 +28,7 @@ func dnsSecurityProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["profile_id"] = "ProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func dnsSecurityProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["profile_id"] = "ProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["profileId"] = bindings.NewStringType() pathParams["profile_id"] = "profileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func dnsSecurityProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/dns-security-profiles/{profileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsSecurityProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func dnsSecurityProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["profile_id"] = bindings.NewStringType() fieldNameMap["profile_id"] = "ProfileId" paramsTypeMap["profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func dnsSecurityProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dns-security-profiles/{profileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsSecurityProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func dnsSecurityProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func dnsSecurityProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/dns-security-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsSecurityProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func dnsSecurityProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["profile_id"] = bindings.NewStringType() fields["dns_security_profile"] = bindings.NewReferenceType(model.DnsSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["profile_id"] = "ProfileId" fieldNameMap["dns_security_profile"] = "DnsSecurityProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func dnsSecurityProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["profile_id"] = bindings.NewStringType() fields["dns_security_profile"] = bindings.NewReferenceType(model.DnsSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["profile_id"] = "ProfileId" fieldNameMap["dns_security_profile"] = "DnsSecurityProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["dns_security_profile"] = bindings.NewReferenceType(model.DnsSecurityProfileBindingType) paramsTypeMap["profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["profileId"] = bindings.NewStringType() pathParams["profile_id"] = "profileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func dnsSecurityProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dns_security_profile", "PATCH", "/policy/api/v1/infra/dns-security-profiles/{profileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsSecurityProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func dnsSecurityProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["profile_id"] = bindings.NewStringType() fields["dns_security_profile"] = bindings.NewReferenceType(model.DnsSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["profile_id"] = "ProfileId" fieldNameMap["dns_security_profile"] = "DnsSecurityProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func dnsSecurityProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["profile_id"] = bindings.NewStringType() fields["dns_security_profile"] = bindings.NewReferenceType(model.DnsSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["profile_id"] = "ProfileId" fieldNameMap["dns_security_profile"] = "DnsSecurityProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["dns_security_profile"] = bindings.NewReferenceType(model.DnsSecurityProfileBindingType) paramsTypeMap["profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["profileId"] = bindings.NewStringType() pathParams["profile_id"] = "profileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func dnsSecurityProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dns_security_profile", "PUT", "/policy/api/v1/infra/dns-security-profiles/{profileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DomainsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DomainsTypes.go index 47f14462e..9691574d2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DomainsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DomainsTypes.go @@ -44,6 +44,8 @@ func domainsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" paramsTypeMap["domain_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func domainsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func domainsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" paramsTypeMap["domain_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func domainsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func domainsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func domainsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func domainsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["domain"] = bindings.NewReferenceType(model.DomainBindingType) fieldNameMap["domain_id"] = "DomainId" @@ -224,14 +244,18 @@ func domainsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "domain", "PATCH", "/policy/api/v1/infra/domains/{domainId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func domainsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["domain"] = bindings.NewReferenceType(model.DomainBindingType) fieldNameMap["domain_id"] = "DomainId" @@ -273,14 +299,18 @@ func domainsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "domain", "PUT", "/policy/api/v1/infra/domains/{domainId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DraftsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DraftsTypes.go index 2f305095c..518f4b8e1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DraftsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/DraftsTypes.go @@ -44,6 +44,8 @@ func draftsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["draft_id"] = bindings.NewStringType() fieldNameMap["draft_id"] = "DraftId" paramsTypeMap["draft_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func draftsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/drafts/{draftId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func draftsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func draftsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["draft_id"] = bindings.NewStringType() fieldNameMap["draft_id"] = "DraftId" paramsTypeMap["draft_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func draftsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/drafts/{draftId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func draftsListInputType() bindings.StructType { @@ -144,6 +156,8 @@ func draftsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["auto_drafts"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -181,14 +195,18 @@ func draftsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/drafts", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func draftsPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func draftsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["draft_id"] = bindings.NewStringType() fields["policy_draft"] = bindings.NewReferenceType(model.PolicyDraftBindingType) fieldNameMap["draft_id"] = "DraftId" @@ -230,14 +250,18 @@ func draftsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_draft", "PATCH", "/policy/api/v1/infra/drafts/{draftId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func draftsPublishInputType() bindings.StructType { @@ -262,6 +286,8 @@ func draftsPublishRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["draft_id"] = bindings.NewStringType() fields["infra"] = bindings.NewReferenceType(model.InfraBindingType) fieldNameMap["draft_id"] = "DraftId" @@ -279,14 +305,18 @@ func draftsPublishRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=publish", "infra", "POST", "/policy/api/v1/infra/drafts/{draftId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func draftsUpdateInputType() bindings.StructType { @@ -311,6 +341,8 @@ func draftsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["draft_id"] = bindings.NewStringType() fields["policy_draft"] = bindings.NewReferenceType(model.PolicyDraftBindingType) fieldNameMap["draft_id"] = "DraftId" @@ -328,14 +360,18 @@ func draftsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_draft", "PUT", "/policy/api/v1/infra/drafts/{draftId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FederationConfigTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FederationConfigTypes.go index 53daf2914..121c34a56 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FederationConfigTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FederationConfigTypes.go @@ -42,6 +42,8 @@ func federationConfigGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -51,14 +53,18 @@ func federationConfigGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/federation-config", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSchedulersTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSchedulersTypes.go index bce6cdc0b..3926631d0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSchedulersTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSchedulersTypes.go @@ -46,6 +46,8 @@ func firewallSchedulersDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_scheduler_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["firewall_scheduler_id"] = "FirewallSchedulerId" @@ -64,14 +66,18 @@ func firewallSchedulersDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/firewall-schedulers/{firewallSchedulerId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSchedulersGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func firewallSchedulersGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_scheduler_id"] = bindings.NewStringType() fieldNameMap["firewall_scheduler_id"] = "FirewallSchedulerId" paramsTypeMap["firewall_scheduler_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func firewallSchedulersGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/firewall-schedulers/{firewallSchedulerId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSchedulersListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func firewallSchedulersListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func firewallSchedulersListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/firewall-schedulers", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSchedulersPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func firewallSchedulersPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_scheduler_id"] = bindings.NewStringType() fields["policy_firewall_scheduler"] = bindings.NewReferenceType(model.PolicyFirewallSchedulerBindingType) fieldNameMap["firewall_scheduler_id"] = "FirewallSchedulerId" @@ -230,14 +250,18 @@ func firewallSchedulersPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_firewall_scheduler", "PATCH", "/policy/api/v1/infra/firewall-schedulers/{firewallSchedulerId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSchedulersUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func firewallSchedulersUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_scheduler_id"] = bindings.NewStringType() fields["policy_firewall_scheduler"] = bindings.NewReferenceType(model.PolicyFirewallSchedulerBindingType) fieldNameMap["firewall_scheduler_id"] = "FirewallSchedulerId" @@ -279,14 +305,18 @@ func firewallSchedulersUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_firewall_scheduler", "PUT", "/policy/api/v1/infra/firewall-schedulers/{firewallSchedulerId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesClient.go index cdae59c8d..6be9740f4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesClient.go @@ -19,13 +19,12 @@ type FirewallSessionTimerProfilesClient interface { // API will delete Firewall Session Timer Profile // // @param firewallSessionTimerProfileIdParam Firewall Session Timer Profile ID (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(firewallSessionTimerProfileIdParam string, overrideParam *bool) error + Delete(firewallSessionTimerProfileIdParam string) error // API will get Firewall Session Timer Profile // @@ -58,24 +57,22 @@ type FirewallSessionTimerProfilesClient interface { // // @param firewallSessionTimerProfileIdParam Firewall Session Timer Profile ID (required) // @param policyFirewallSessionTimerProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile, overrideParam *bool) error + Patch(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile) error // API will update Firewall Session Timer Profile // // @param firewallSessionTimerProfileIdParam Firewall Session Timer Profile ID (required) // @param policyFirewallSessionTimerProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.PolicyFirewallSessionTimerProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile, overrideParam *bool) (model.PolicyFirewallSessionTimerProfile, error) + Update(firewallSessionTimerProfileIdParam string, policyFirewallSessionTimerProfileParam model.PolicyFirewallSessionTimerProfile) (model.PolicyFirewallSessionTimerProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesTypes.go index 3509fe78c..60fb5efff 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FirewallSessionTimerProfilesTypes.go @@ -28,9 +28,7 @@ func firewallSessionTimerProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["firewall_session_timer_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["firewall_session_timer_profile_id"] = "FirewallSessionTimerProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func firewallSessionTimerProfilesDeleteRestMetadata() protocol.OperationRestMeta pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_session_timer_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["firewall_session_timer_profile_id"] = "FirewallSessionTimerProfileId" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["firewall_session_timer_profile_id"] = bindings.NewStringType() paramsTypeMap["firewallSessionTimerProfileId"] = bindings.NewStringType() pathParams["firewall_session_timer_profile_id"] = "firewallSessionTimerProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func firewallSessionTimerProfilesDeleteRestMetadata() protocol.OperationRestMeta pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/firewall-session-timer-profiles/{firewallSessionTimerProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSessionTimerProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func firewallSessionTimerProfilesGetRestMetadata() protocol.OperationRestMetadat pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_session_timer_profile_id"] = bindings.NewStringType() fieldNameMap["firewall_session_timer_profile_id"] = "FirewallSessionTimerProfileId" paramsTypeMap["firewall_session_timer_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func firewallSessionTimerProfilesGetRestMetadata() protocol.OperationRestMetadat pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/firewall-session-timer-profiles/{firewallSessionTimerProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSessionTimerProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func firewallSessionTimerProfilesListRestMetadata() protocol.OperationRestMetada pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func firewallSessionTimerProfilesListRestMetadata() protocol.OperationRestMetada pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/firewall-session-timer-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSessionTimerProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func firewallSessionTimerProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["firewall_session_timer_profile_id"] = bindings.NewStringType() fields["policy_firewall_session_timer_profile"] = bindings.NewReferenceType(model.PolicyFirewallSessionTimerProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["firewall_session_timer_profile_id"] = "FirewallSessionTimerProfileId" fieldNameMap["policy_firewall_session_timer_profile"] = "PolicyFirewallSessionTimerProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func firewallSessionTimerProfilesPatchRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_session_timer_profile_id"] = bindings.NewStringType() fields["policy_firewall_session_timer_profile"] = bindings.NewReferenceType(model.PolicyFirewallSessionTimerProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["firewall_session_timer_profile_id"] = "FirewallSessionTimerProfileId" fieldNameMap["policy_firewall_session_timer_profile"] = "PolicyFirewallSessionTimerProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["firewall_session_timer_profile_id"] = bindings.NewStringType() paramsTypeMap["policy_firewall_session_timer_profile"] = bindings.NewReferenceType(model.PolicyFirewallSessionTimerProfileBindingType) paramsTypeMap["firewallSessionTimerProfileId"] = bindings.NewStringType() pathParams["firewall_session_timer_profile_id"] = "firewallSessionTimerProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func firewallSessionTimerProfilesPatchRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_firewall_session_timer_profile", "PATCH", "/policy/api/v1/infra/firewall-session-timer-profiles/{firewallSessionTimerProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func firewallSessionTimerProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func firewallSessionTimerProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["firewall_session_timer_profile_id"] = bindings.NewStringType() fields["policy_firewall_session_timer_profile"] = bindings.NewReferenceType(model.PolicyFirewallSessionTimerProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["firewall_session_timer_profile_id"] = "FirewallSessionTimerProfileId" fieldNameMap["policy_firewall_session_timer_profile"] = "PolicyFirewallSessionTimerProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func firewallSessionTimerProfilesUpdateRestMetadata() protocol.OperationRestMeta pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["firewall_session_timer_profile_id"] = bindings.NewStringType() fields["policy_firewall_session_timer_profile"] = bindings.NewReferenceType(model.PolicyFirewallSessionTimerProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["firewall_session_timer_profile_id"] = "FirewallSessionTimerProfileId" fieldNameMap["policy_firewall_session_timer_profile"] = "PolicyFirewallSessionTimerProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["firewall_session_timer_profile_id"] = bindings.NewStringType() paramsTypeMap["policy_firewall_session_timer_profile"] = bindings.NewReferenceType(model.PolicyFirewallSessionTimerProfileBindingType) paramsTypeMap["firewallSessionTimerProfileId"] = bindings.NewStringType() pathParams["firewall_session_timer_profile_id"] = "firewallSessionTimerProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func firewallSessionTimerProfilesUpdateRestMetadata() protocol.OperationRestMeta pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_firewall_session_timer_profile", "PUT", "/policy/api/v1/infra/firewall-session-timer-profiles/{firewallSessionTimerProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesClient.go index 8686cf6b0..6275059b7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesClient.go @@ -20,13 +20,12 @@ type FloodProtectionProfilesClient interface { // API will delete Flood Protection Profile // // @param floodProtectionProfileIdParam Flood Protection Profile ID (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(floodProtectionProfileIdParam string, overrideParam *bool) error + Delete(floodProtectionProfileIdParam string) error // API will get Flood Protection Profile // @@ -61,20 +60,18 @@ type FloodProtectionProfilesClient interface { // @param floodProtectionProfileIdParam Firewall Flood Protection Profile ID (required) // @param floodProtectionProfileParam (required) // The parameter must contain all the properties defined in model.FloodProtectionProfile. - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue, overrideParam *bool) error + Patch(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue) error // API will update Firewall Flood Protection Profile // // @param floodProtectionProfileIdParam Flood Protection Profile ID (required) // @param floodProtectionProfileParam (required) // The parameter must contain all the properties defined in model.FloodProtectionProfile. - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.FloodProtectionProfile // The return value will contain all the properties defined in model.FloodProtectionProfile. // @throws InvalidRequest Bad Request, Precondition Failed @@ -82,5 +79,5 @@ type FloodProtectionProfilesClient interface { // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue, overrideParam *bool) (*data.StructValue, error) + Update(floodProtectionProfileIdParam string, floodProtectionProfileParam *data.StructValue) (*data.StructValue, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesTypes.go index 7398171e0..93041d55f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FloodProtectionProfilesTypes.go @@ -28,9 +28,7 @@ func floodProtectionProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["flood_protection_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["flood_protection_profile_id"] = "FloodProtectionProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func floodProtectionProfilesDeleteRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["flood_protection_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["flood_protection_profile_id"] = "FloodProtectionProfileId" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["flood_protection_profile_id"] = bindings.NewStringType() paramsTypeMap["floodProtectionProfileId"] = bindings.NewStringType() pathParams["flood_protection_profile_id"] = "floodProtectionProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func floodProtectionProfilesDeleteRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/flood-protection-profiles/{floodProtectionProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func floodProtectionProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["flood_protection_profile_id"] = bindings.NewStringType() fieldNameMap["flood_protection_profile_id"] = "FloodProtectionProfileId" paramsTypeMap["flood_protection_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func floodProtectionProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/flood-protection-profiles/{floodProtectionProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func floodProtectionProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func floodProtectionProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/flood-protection-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func floodProtectionProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["flood_protection_profile_id"] = bindings.NewStringType() fields["flood_protection_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.FloodProtectionProfileBindingType),}, bindings.REST) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["flood_protection_profile_id"] = "FloodProtectionProfileId" fieldNameMap["flood_protection_profile"] = "FloodProtectionProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func floodProtectionProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["flood_protection_profile_id"] = bindings.NewStringType() fields["flood_protection_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.FloodProtectionProfileBindingType),}, bindings.REST) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["flood_protection_profile_id"] = "FloodProtectionProfileId" fieldNameMap["flood_protection_profile"] = "FloodProtectionProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["flood_protection_profile_id"] = bindings.NewStringType() paramsTypeMap["flood_protection_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.FloodProtectionProfileBindingType),}, bindings.REST) paramsTypeMap["floodProtectionProfileId"] = bindings.NewStringType() pathParams["flood_protection_profile_id"] = "floodProtectionProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func floodProtectionProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile", "PATCH", "/policy/api/v1/infra/flood-protection-profiles/{floodProtectionProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func floodProtectionProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["flood_protection_profile_id"] = bindings.NewStringType() fields["flood_protection_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.FloodProtectionProfileBindingType),}, bindings.REST) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["flood_protection_profile_id"] = "FloodProtectionProfileId" fieldNameMap["flood_protection_profile"] = "FloodProtectionProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func floodProtectionProfilesUpdateRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["flood_protection_profile_id"] = bindings.NewStringType() fields["flood_protection_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.FloodProtectionProfileBindingType),}, bindings.REST) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["flood_protection_profile_id"] = "FloodProtectionProfileId" fieldNameMap["flood_protection_profile"] = "FloodProtectionProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["flood_protection_profile_id"] = bindings.NewStringType() paramsTypeMap["flood_protection_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.FloodProtectionProfileBindingType),}, bindings.REST) paramsTypeMap["floodProtectionProfileId"] = bindings.NewStringType() pathParams["flood_protection_profile_id"] = "floodProtectionProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func floodProtectionProfilesUpdateRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile", "PUT", "/policy/api/v1/infra/flood-protection-profiles/{floodProtectionProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FullSyncStatesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FullSyncStatesTypes.go index 7439431cc..7ec09b4bf 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FullSyncStatesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/FullSyncStatesTypes.go @@ -44,6 +44,8 @@ func fullSyncStatesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["full_sync_id"] = bindings.NewStringType() fieldNameMap["full_sync_id"] = "FullSyncId" paramsTypeMap["full_sync_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func fullSyncStatesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/full-sync-states/{fullSyncId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func fullSyncStatesListInputType() bindings.StructType { @@ -98,6 +104,8 @@ func fullSyncStatesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -131,14 +139,18 @@ func fullSyncStatesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/full-sync-states", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesClient.go index b8b8c44d5..c65d5e822 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesClient.go @@ -19,13 +19,12 @@ type GatewayQosProfilesClient interface { // Delete QoS profile // // @param qosProfileIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(qosProfileIdParam string, overrideParam *bool) error + Delete(qosProfileIdParam string) error // Read gateway QoS profile // @@ -58,24 +57,22 @@ type GatewayQosProfilesClient interface { // // @param qosProfileIdParam (required) // @param gatewayQosProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile, overrideParam *bool) error + Patch(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile) error // If profile with the qos-profile-id is not already present, create a new gateway QoS profile instance. If it already exists, replace the gateway QoS profile instance with this object. // // @param qosProfileIdParam (required) // @param gatewayQosProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.GatewayQosProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile, overrideParam *bool) (model.GatewayQosProfile, error) + Update(qosProfileIdParam string, gatewayQosProfileParam model.GatewayQosProfile) (model.GatewayQosProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesTypes.go index 2157fe17f..ddc67c052 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GatewayQosProfilesTypes.go @@ -28,9 +28,7 @@ func gatewayQosProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["qos_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func gatewayQosProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["qosProfileId"] = bindings.NewStringType() pathParams["qos_profile_id"] = "qosProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func gatewayQosProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/gateway-qos-profiles/{qosProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayQosProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func gatewayQosProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() fieldNameMap["qos_profile_id"] = "QosProfileId" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func gatewayQosProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/gateway-qos-profiles/{qosProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayQosProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func gatewayQosProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func gatewayQosProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/gateway-qos-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayQosProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func gatewayQosProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["qos_profile_id"] = bindings.NewStringType() fields["gateway_qos_profile"] = bindings.NewReferenceType(model.GatewayQosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["gateway_qos_profile"] = "GatewayQosProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func gatewayQosProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() fields["gateway_qos_profile"] = bindings.NewReferenceType(model.GatewayQosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["gateway_qos_profile"] = "GatewayQosProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["gateway_qos_profile"] = bindings.NewReferenceType(model.GatewayQosProfileBindingType) paramsTypeMap["qosProfileId"] = bindings.NewStringType() pathParams["qos_profile_id"] = "qosProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func gatewayQosProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "gateway_qos_profile", "PATCH", "/policy/api/v1/infra/gateway-qos-profiles/{qosProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayQosProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func gatewayQosProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["qos_profile_id"] = bindings.NewStringType() fields["gateway_qos_profile"] = bindings.NewReferenceType(model.GatewayQosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["gateway_qos_profile"] = "GatewayQosProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func gatewayQosProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() fields["gateway_qos_profile"] = bindings.NewReferenceType(model.GatewayQosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["gateway_qos_profile"] = "GatewayQosProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["gateway_qos_profile"] = bindings.NewReferenceType(model.GatewayQosProfileBindingType) paramsTypeMap["qosProfileId"] = bindings.NewStringType() pathParams["qos_profile_id"] = "qosProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func gatewayQosProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "gateway_qos_profile", "PUT", "/policy/api/v1/infra/gateway-qos-profiles/{qosProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalConfigTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalConfigTypes.go index e2ee9958e..97c549b90 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalConfigTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalConfigTypes.go @@ -42,6 +42,8 @@ func globalConfigGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -51,14 +53,18 @@ func globalConfigGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/global-config", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalConfigPatchInputType() bindings.StructType { @@ -81,6 +87,8 @@ func globalConfigPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["global_config"] = bindings.NewReferenceType(model.GlobalConfigBindingType) fieldNameMap["global_config"] = "GlobalConfig" paramsTypeMap["global_config"] = bindings.NewReferenceType(model.GlobalConfigBindingType) @@ -93,14 +101,18 @@ func globalConfigPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "global_config", "PATCH", "/policy/api/v1/infra/global-config", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalConfigUpdateInputType() bindings.StructType { @@ -123,6 +135,8 @@ func globalConfigUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["global_config"] = bindings.NewReferenceType(model.GlobalConfigBindingType) fieldNameMap["global_config"] = "GlobalConfig" paramsTypeMap["global_config"] = bindings.NewReferenceType(model.GlobalConfigBindingType) @@ -135,14 +149,18 @@ func globalConfigUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "global_config", "PUT", "/policy/api/v1/infra/global-config", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagerConfigClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagerConfigClient.go new file mode 100644 index 000000000..abdf27094 --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagerConfigClient.go @@ -0,0 +1,48 @@ +/* Copyright © 2019 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +// Code generated. DO NOT EDIT. + +/* + * Interface file for service: GlobalManagerConfig + * Used by client-side stubs. + */ + +package infra + +import ( + "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" +) + +type GlobalManagerConfigClient interface { + + // Create or patch a Global Manager Config + // + // @param globalManagerConfigParam (required) + // @throws InvalidRequest Bad Request, Precondition Failed + // @throws Unauthorized Forbidden + // @throws ServiceUnavailable Service Unavailable + // @throws InternalServerError Internal Server Error + // @throws NotFound Not Found + Patch(globalManagerConfigParam model.GlobalManagerConfig) error + + // Read a Global Manager config along with sensitive data. For example - rtep_config.ibgp_password + // @return com.vmware.nsx_policy.model.GlobalManagerConfig + // @throws InvalidRequest Bad Request, Precondition Failed + // @throws Unauthorized Forbidden + // @throws ServiceUnavailable Service Unavailable + // @throws InternalServerError Internal Server Error + // @throws NotFound Not Found + Showsensitivedata() (model.GlobalManagerConfig, error) + + // Create or fully replace a Global Manager Config. Revision is optional for creation and required for update. + // + // @param globalManagerConfigParam (required) + // @return com.vmware.nsx_policy.model.GlobalManagerConfig + // @throws InvalidRequest Bad Request, Precondition Failed + // @throws Unauthorized Forbidden + // @throws ServiceUnavailable Service Unavailable + // @throws InternalServerError Internal Server Error + // @throws NotFound Not Found + Update(globalManagerConfigParam model.GlobalManagerConfig) (model.GlobalManagerConfig, error) +} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagerConfigTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagerConfigTypes.go new file mode 100644 index 000000000..ca7de8ab0 --- /dev/null +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagerConfigTypes.go @@ -0,0 +1,166 @@ +/* Copyright © 2019 VMware, Inc. All Rights Reserved. + SPDX-License-Identifier: BSD-2-Clause */ + +// Code generated. DO NOT EDIT. + +/* + * Data type definitions file for service: GlobalManagerConfig. + * Includes binding types of a structures and enumerations defined in the service. + * Shared by client-side stubs and server-side skeletons to ensure type + * compatibility. + */ + +package infra + +import ( + "reflect" + "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" + "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" + "github.com/vmware/vsphere-automation-sdk-go/runtime/data" + "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol" +) + + + + + +func globalManagerConfigPatchInputType() bindings.StructType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["global_manager_config"] = bindings.NewReferenceType(model.GlobalManagerConfigBindingType) + fieldNameMap["global_manager_config"] = "GlobalManagerConfig" + var validators = []bindings.Validator{} + return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) +} + +func globalManagerConfigPatchOutputType() bindings.BindingType { + return bindings.NewVoidType() +} + +func globalManagerConfigPatchRestMetadata() protocol.OperationRestMetadata { + fields := map[string]bindings.BindingType{} + fieldNameMap := map[string]string{} + paramsTypeMap := map[string]bindings.BindingType{} + pathParams := map[string]string{} + queryParams := map[string]string{} + headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["global_manager_config"] = bindings.NewReferenceType(model.GlobalManagerConfigBindingType) + fieldNameMap["global_manager_config"] = "GlobalManagerConfig" + paramsTypeMap["global_manager_config"] = bindings.NewReferenceType(model.GlobalManagerConfigBindingType) + resultHeaders := map[string]string{} + errorHeaders := map[string]string{} + return protocol.NewOperationRestMetadata( + fields, + fieldNameMap, + paramsTypeMap, + pathParams, + queryParams, + headerParams, + dispatchHeaderParams, + bodyFieldsMap, + "", + "global_manager_config", + "PATCH", + "/policy/api/v1/infra/global-manager-config", + "", + resultHeaders, + 204, + "", + errorHeaders, + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) +} + +func globalManagerConfigShowsensitivedataInputType() bindings.StructType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + var validators = []bindings.Validator{} + return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) +} + +func globalManagerConfigShowsensitivedataOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.GlobalManagerConfigBindingType) +} + +func globalManagerConfigShowsensitivedataRestMetadata() protocol.OperationRestMetadata { + fields := map[string]bindings.BindingType{} + fieldNameMap := map[string]string{} + paramsTypeMap := map[string]bindings.BindingType{} + pathParams := map[string]string{} + queryParams := map[string]string{} + headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + resultHeaders := map[string]string{} + errorHeaders := map[string]string{} + return protocol.NewOperationRestMetadata( + fields, + fieldNameMap, + paramsTypeMap, + pathParams, + queryParams, + headerParams, + dispatchHeaderParams, + bodyFieldsMap, + "action=show-sensitive-data", + "", + "GET", + "/policy/api/v1/infra/global-manager-config", + "", + resultHeaders, + 200, + "", + errorHeaders, + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) +} + +func globalManagerConfigUpdateInputType() bindings.StructType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["global_manager_config"] = bindings.NewReferenceType(model.GlobalManagerConfigBindingType) + fieldNameMap["global_manager_config"] = "GlobalManagerConfig" + var validators = []bindings.Validator{} + return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) +} + +func globalManagerConfigUpdateOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.GlobalManagerConfigBindingType) +} + +func globalManagerConfigUpdateRestMetadata() protocol.OperationRestMetadata { + fields := map[string]bindings.BindingType{} + fieldNameMap := map[string]string{} + paramsTypeMap := map[string]bindings.BindingType{} + pathParams := map[string]string{} + queryParams := map[string]string{} + headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["global_manager_config"] = bindings.NewReferenceType(model.GlobalManagerConfigBindingType) + fieldNameMap["global_manager_config"] = "GlobalManagerConfig" + paramsTypeMap["global_manager_config"] = bindings.NewReferenceType(model.GlobalManagerConfigBindingType) + resultHeaders := map[string]string{} + errorHeaders := map[string]string{} + return protocol.NewOperationRestMetadata( + fields, + fieldNameMap, + paramsTypeMap, + pathParams, + queryParams, + headerParams, + dispatchHeaderParams, + bodyFieldsMap, + "", + "global_manager_config", + "PUT", + "/policy/api/v1/infra/global-manager-config", + "", + resultHeaders, + 200, + "", + errorHeaders, + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) +} + + diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagersTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagersTypes.go index e6f93abed..fc0390b4b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagersTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GlobalManagersTypes.go @@ -48,6 +48,8 @@ func globalManagersCreateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["action"] = bindings.NewStringType() fieldNameMap["action"] = "Action" paramsTypeMap["action"] = bindings.NewStringType() @@ -61,14 +63,18 @@ func globalManagersCreateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "POST", "/policy/api/v1/infra/global-managers", + "", resultHeaders, 201, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalManagersDeleteInputType() bindings.StructType { @@ -91,6 +97,8 @@ func globalManagersDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["global_manager_id"] = bindings.NewStringType() fieldNameMap["global_manager_id"] = "GlobalManagerId" paramsTypeMap["global_manager_id"] = bindings.NewStringType() @@ -105,14 +113,18 @@ func globalManagersDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/global-managers/{globalManagerId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalManagersGetInputType() bindings.StructType { @@ -135,6 +147,8 @@ func globalManagersGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["global_manager_id"] = bindings.NewStringType() fieldNameMap["global_manager_id"] = "GlobalManagerId" paramsTypeMap["global_manager_id"] = bindings.NewStringType() @@ -149,14 +163,18 @@ func globalManagersGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/global-managers/{globalManagerId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalManagersListInputType() bindings.StructType { @@ -189,6 +207,8 @@ func globalManagersListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -222,14 +242,18 @@ func globalManagersListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/global-managers", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalManagersPatchInputType() bindings.StructType { @@ -254,6 +278,8 @@ func globalManagersPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["global_manager_id"] = bindings.NewStringType() fields["global_manager"] = bindings.NewReferenceType(model.GlobalManagerBindingType) fieldNameMap["global_manager_id"] = "GlobalManagerId" @@ -271,14 +297,18 @@ func globalManagersPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "global_manager", "PATCH", "/policy/api/v1/infra/global-managers/{globalManagerId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func globalManagersUpdateInputType() bindings.StructType { @@ -303,6 +333,8 @@ func globalManagersUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["global_manager_id"] = bindings.NewStringType() fields["global_manager"] = bindings.NewReferenceType(model.GlobalManagerBindingType) fieldNameMap["global_manager_id"] = "GlobalManagerId" @@ -320,14 +352,18 @@ func globalManagersUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "global_manager", "PUT", "/policy/api/v1/infra/global-managers/{globalManagerId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupAssociationsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupAssociationsTypes.go index 67449e545..3d9455dba 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupAssociationsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupAssociationsTypes.go @@ -58,6 +58,8 @@ func groupAssociationsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["intent_path"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -99,14 +101,18 @@ func groupAssociationsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/group-associations", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/GlobalManagersClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupServiceAssociationsClient.go similarity index 53% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/GlobalManagersClient.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupServiceAssociationsClient.go index df4aceb21..f4baa5e1f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/GlobalManagersClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupServiceAssociationsClient.go @@ -4,42 +4,32 @@ // Code generated. DO NOT EDIT. /* - * Interface file for service: GlobalManagers + * Interface file for service: GroupServiceAssociations * Used by client-side stubs. */ -package realized_state +package infra import ( "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" ) -type GlobalManagersClient interface { +type GroupServiceAssociationsClient interface { - // Returns realized states associated with all global managers. - // - // @param globalManagerIdParam (required) - // @return com.vmware.nsx_policy.model.RealizedGlobalManager - // @throws InvalidRequest Bad Request, Precondition Failed - // @throws Unauthorized Forbidden - // @throws ServiceUnavailable Service Unavailable - // @throws InternalServerError Internal Server Error - // @throws NotFound Not Found - Get(globalManagerIdParam string) (model.RealizedGlobalManager, error) - - // Returns realized state associated with all global managers. + // The API returns all the services associated with the given Group. It also returns the services associated with the parent groups of the given group. // + // @param intentPathParam Path of the entity (required) // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) // @param includeMarkForDeleteObjectsParam Include objects that are marked for deletion in results (optional, default to false) // @param includedFieldsParam Comma separated list of fields that should be included in query result (optional) // @param pageSizeParam Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) // @param sortAscendingParam (optional) // @param sortByParam Field by which records are sorted (optional) - // @return com.vmware.nsx_policy.model.RealizedGlobalManagerListResult + // @return com.vmware.nsx_policy.model.PolicyResourceReferenceListResult // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.RealizedGlobalManagerListResult, error) + List(intentPathParam string, cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyResourceReferenceListResult, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/GlobalManagersTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupServiceAssociationsTypes.go similarity index 63% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/GlobalManagersTypes.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupServiceAssociationsTypes.go index 3398c8d2a..811f313fa 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/GlobalManagersTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/GroupServiceAssociationsTypes.go @@ -4,13 +4,13 @@ // Code generated. DO NOT EDIT. /* - * Data type definitions file for service: GlobalManagers. + * Data type definitions file for service: GroupServiceAssociations. * Includes binding types of a structures and enumerations defined in the service. * Shared by client-side stubs and server-side skeletons to ensure type * compatibility. */ -package realized_state +package infra import ( "reflect" @@ -24,59 +24,17 @@ import ( -func globalManagersGetInputType() bindings.StructType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["global_manager_id"] = bindings.NewStringType() - fieldNameMap["global_manager_id"] = "GlobalManagerId" - var validators = []bindings.Validator{} - return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) -} - -func globalManagersGetOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.RealizedGlobalManagerBindingType) -} - -func globalManagersGetRestMetadata() protocol.OperationRestMetadata { - fields := map[string]bindings.BindingType{} - fieldNameMap := map[string]string{} - paramsTypeMap := map[string]bindings.BindingType{} - pathParams := map[string]string{} - queryParams := map[string]string{} - headerParams := map[string]string{} - fields["global_manager_id"] = bindings.NewStringType() - fieldNameMap["global_manager_id"] = "GlobalManagerId" - paramsTypeMap["global_manager_id"] = bindings.NewStringType() - paramsTypeMap["globalManagerId"] = bindings.NewStringType() - pathParams["global_manager_id"] = "globalManagerId" - resultHeaders := map[string]string{} - errorHeaders := map[string]string{} - return protocol.NewOperationRestMetadata( - fields, - fieldNameMap, - paramsTypeMap, - pathParams, - queryParams, - headerParams, - "", - "", - "GET", - "/policy/api/v1/infra/realized-state/global-managers/{globalManagerId}", - resultHeaders, - 200, - errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) -} - -func globalManagersListInputType() bindings.StructType { +func groupServiceAssociationsListInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) + fields["intent_path"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["intent_path"] = "IntentPath" fieldNameMap["cursor"] = "Cursor" fieldNameMap["include_mark_for_delete_objects"] = "IncludeMarkForDeleteObjects" fieldNameMap["included_fields"] = "IncludedFields" @@ -87,23 +45,27 @@ func globalManagersListInputType() bindings.StructType { return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func globalManagersListOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.RealizedGlobalManagerListResultBindingType) +func groupServiceAssociationsListOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.PolicyResourceReferenceListResultBindingType) } -func globalManagersListRestMetadata() protocol.OperationRestMetadata { +func groupServiceAssociationsListRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["intent_path"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["intent_path"] = "IntentPath" fieldNameMap["cursor"] = "Cursor" fieldNameMap["include_mark_for_delete_objects"] = "IncludeMarkForDeleteObjects" fieldNameMap["included_fields"] = "IncludedFields" @@ -114,11 +76,13 @@ func globalManagersListRestMetadata() protocol.OperationRestMetadata { paramsTypeMap["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) paramsTypeMap["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) + paramsTypeMap["intent_path"] = bindings.NewStringType() paramsTypeMap["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) paramsTypeMap["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) queryParams["cursor"] = "cursor" queryParams["sort_ascending"] = "sort_ascending" queryParams["included_fields"] = "included_fields" + queryParams["intent_path"] = "intent_path" queryParams["sort_by"] = "sort_by" queryParams["include_mark_for_delete_objects"] = "include_mark_for_delete_objects" queryParams["page_size"] = "page_size" @@ -131,14 +95,18 @@ func globalManagersListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", - "/policy/api/v1/infra/realized-state/global-managers", + "/policy/api/v1/infra/group-service-associations", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimConfigurationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpProfilesClient.go similarity index 65% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimConfigurationsClient.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpProfilesClient.go index d14ef9c0f..8080ede0f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimConfigurationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpProfilesClient.go @@ -4,7 +4,7 @@ // Code generated. DO NOT EDIT. /* - * Interface file for service: PimConfigurations + * Interface file for service: IgmpProfiles * Used by client-side stubs. */ @@ -14,30 +14,30 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" ) -type PimConfigurationsClient interface { +type IgmpProfilesClient interface { - // Delete Pim Config. + // Delete Igmp Profile. // - // @param pimConfigIdParam pim config id (required) + // @param igmpProfileIdParam igmp profile id (required) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(pimConfigIdParam string) error + Delete(igmpProfileIdParam string) error - // Read Pim Config. + // Read Igmp Profile. // - // @param pimConfigIdParam pim config id (required) - // @return com.vmware.nsx_policy.model.PolicyPimConfig + // @param igmpProfileIdParam igmp profile id (required) + // @return com.vmware.nsx_policy.model.PolicyIgmpProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Get(pimConfigIdParam string) (model.PolicyPimConfig, error) + Get(igmpProfileIdParam string) (model.PolicyIgmpProfile, error) - // List all pim config. + // List all igmp profile. // // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) // @param includeMarkForDeleteObjectsParam Include objects that are marked for deletion in results (optional, default to false) @@ -45,34 +45,34 @@ type PimConfigurationsClient interface { // @param pageSizeParam Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) // @param sortAscendingParam (optional) // @param sortByParam Field by which records are sorted (optional) - // @return com.vmware.nsx_policy.model.PolicyPimConfigListResult + // @return com.vmware.nsx_policy.model.PolicyIgmpProfileListResult // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyPimConfigListResult, error) + List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyIgmpProfileListResult, error) - // Create a pim config with the pim-config-id is not already present, otherwise update the pim config. + // Create a igmp profile with the igmp-profile-id is not already present, otherwise update the igmp profile. // - // @param pimConfigIdParam pim config id (required) - // @param policyPimConfigParam (required) + // @param igmpProfileIdParam igmp profile id (required) + // @param policyIgmpProfileParam (required) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(pimConfigIdParam string, policyPimConfigParam model.PolicyPimConfig) error + Patch(igmpProfileIdParam string, policyIgmpProfileParam model.PolicyIgmpProfile) error - // Create or update pim config. + // Create or update igmp profile. // - // @param pimConfigIdParam pim config id (required) - // @param policyPimConfigParam (required) - // @return com.vmware.nsx_policy.model.PolicyPimConfig + // @param igmpProfileIdParam igmp profile id (required) + // @param policyIgmpProfileParam (required) + // @return com.vmware.nsx_policy.model.PolicyIgmpProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(pimConfigIdParam string, policyPimConfigParam model.PolicyPimConfig) (model.PolicyPimConfig, error) + Update(igmpProfileIdParam string, policyIgmpProfileParam model.PolicyIgmpProfile) (model.PolicyIgmpProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimConfigurationsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpProfilesTypes.go similarity index 53% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimConfigurationsTypes.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpProfilesTypes.go index eb2f977d7..8161f9c5a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimConfigurationsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpProfilesTypes.go @@ -4,7 +4,7 @@ // Code generated. DO NOT EDIT. /* - * Data type definitions file for service: PimConfigurations. + * Data type definitions file for service: IgmpProfiles. * Includes binding types of a structures and enumerations defined in the service. * Shared by client-side stubs and server-side skeletons to ensure type * compatibility. @@ -24,31 +24,33 @@ import ( -func pimConfigurationsDeleteInputType() bindings.StructType { +func igmpProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["pim_config_id"] = bindings.NewStringType() - fieldNameMap["pim_config_id"] = "PimConfigId" + fields["igmp_profile_id"] = bindings.NewStringType() + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func pimConfigurationsDeleteOutputType() bindings.BindingType { +func igmpProfilesDeleteOutputType() bindings.BindingType { return bindings.NewVoidType() } -func pimConfigurationsDeleteRestMetadata() protocol.OperationRestMetadata { +func igmpProfilesDeleteRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["pim_config_id"] = bindings.NewStringType() - fieldNameMap["pim_config_id"] = "PimConfigId" - paramsTypeMap["pim_config_id"] = bindings.NewStringType() - paramsTypeMap["pimConfigId"] = bindings.NewStringType() - pathParams["pim_config_id"] = "pimConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["igmp_profile_id"] = bindings.NewStringType() + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" + paramsTypeMap["igmp_profile_id"] = bindings.NewStringType() + paramsTypeMap["igmpProfileId"] = bindings.NewStringType() + pathParams["igmp_profile_id"] = "igmpProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -58,41 +60,47 @@ func pimConfigurationsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", - "/policy/api/v1/infra/pim-configurations/{pimConfigId}", + "/policy/api/v1/infra/igmp-profiles/{igmpProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func pimConfigurationsGetInputType() bindings.StructType { +func igmpProfilesGetInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["pim_config_id"] = bindings.NewStringType() - fieldNameMap["pim_config_id"] = "PimConfigId" + fields["igmp_profile_id"] = bindings.NewStringType() + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func pimConfigurationsGetOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyPimConfigBindingType) +func igmpProfilesGetOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) } -func pimConfigurationsGetRestMetadata() protocol.OperationRestMetadata { +func igmpProfilesGetRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["pim_config_id"] = bindings.NewStringType() - fieldNameMap["pim_config_id"] = "PimConfigId" - paramsTypeMap["pim_config_id"] = bindings.NewStringType() - paramsTypeMap["pimConfigId"] = bindings.NewStringType() - pathParams["pim_config_id"] = "pimConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["igmp_profile_id"] = bindings.NewStringType() + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" + paramsTypeMap["igmp_profile_id"] = bindings.NewStringType() + paramsTypeMap["igmpProfileId"] = bindings.NewStringType() + pathParams["igmp_profile_id"] = "igmpProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -102,17 +110,21 @@ func pimConfigurationsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", - "/policy/api/v1/infra/pim-configurations/{pimConfigId}", + "/policy/api/v1/infra/igmp-profiles/{igmpProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func pimConfigurationsListInputType() bindings.StructType { +func igmpProfilesListInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -131,17 +143,19 @@ func pimConfigurationsListInputType() bindings.StructType { return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func pimConfigurationsListOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyPimConfigListResultBindingType) +func igmpProfilesListOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.PolicyIgmpProfileListResultBindingType) } -func pimConfigurationsListRestMetadata() protocol.OperationRestMetadata { +func igmpProfilesListRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,46 +189,52 @@ func pimConfigurationsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", - "/policy/api/v1/infra/pim-configurations", + "/policy/api/v1/infra/igmp-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func pimConfigurationsPatchInputType() bindings.StructType { +func igmpProfilesPatchInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["pim_config_id"] = bindings.NewStringType() - fields["policy_pim_config"] = bindings.NewReferenceType(model.PolicyPimConfigBindingType) - fieldNameMap["pim_config_id"] = "PimConfigId" - fieldNameMap["policy_pim_config"] = "PolicyPimConfig" + fields["igmp_profile_id"] = bindings.NewStringType() + fields["policy_igmp_profile"] = bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" + fieldNameMap["policy_igmp_profile"] = "PolicyIgmpProfile" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func pimConfigurationsPatchOutputType() bindings.BindingType { +func igmpProfilesPatchOutputType() bindings.BindingType { return bindings.NewVoidType() } -func pimConfigurationsPatchRestMetadata() protocol.OperationRestMetadata { +func igmpProfilesPatchRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["pim_config_id"] = bindings.NewStringType() - fields["policy_pim_config"] = bindings.NewReferenceType(model.PolicyPimConfigBindingType) - fieldNameMap["pim_config_id"] = "PimConfigId" - fieldNameMap["policy_pim_config"] = "PolicyPimConfig" - paramsTypeMap["pim_config_id"] = bindings.NewStringType() - paramsTypeMap["policy_pim_config"] = bindings.NewReferenceType(model.PolicyPimConfigBindingType) - paramsTypeMap["pimConfigId"] = bindings.NewStringType() - pathParams["pim_config_id"] = "pimConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["igmp_profile_id"] = bindings.NewStringType() + fields["policy_igmp_profile"] = bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" + fieldNameMap["policy_igmp_profile"] = "PolicyIgmpProfile" + paramsTypeMap["policy_igmp_profile"] = bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) + paramsTypeMap["igmp_profile_id"] = bindings.NewStringType() + paramsTypeMap["igmpProfileId"] = bindings.NewStringType() + pathParams["igmp_profile_id"] = "igmpProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -224,46 +244,52 @@ func pimConfigurationsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", - "policy_pim_config", + "policy_igmp_profile", "PATCH", - "/policy/api/v1/infra/pim-configurations/{pimConfigId}", + "/policy/api/v1/infra/igmp-profiles/{igmpProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func pimConfigurationsUpdateInputType() bindings.StructType { +func igmpProfilesUpdateInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["pim_config_id"] = bindings.NewStringType() - fields["policy_pim_config"] = bindings.NewReferenceType(model.PolicyPimConfigBindingType) - fieldNameMap["pim_config_id"] = "PimConfigId" - fieldNameMap["policy_pim_config"] = "PolicyPimConfig" + fields["igmp_profile_id"] = bindings.NewStringType() + fields["policy_igmp_profile"] = bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" + fieldNameMap["policy_igmp_profile"] = "PolicyIgmpProfile" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func pimConfigurationsUpdateOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyPimConfigBindingType) +func igmpProfilesUpdateOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) } -func pimConfigurationsUpdateRestMetadata() protocol.OperationRestMetadata { +func igmpProfilesUpdateRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["pim_config_id"] = bindings.NewStringType() - fields["policy_pim_config"] = bindings.NewReferenceType(model.PolicyPimConfigBindingType) - fieldNameMap["pim_config_id"] = "PimConfigId" - fieldNameMap["policy_pim_config"] = "PolicyPimConfig" - paramsTypeMap["pim_config_id"] = bindings.NewStringType() - paramsTypeMap["policy_pim_config"] = bindings.NewReferenceType(model.PolicyPimConfigBindingType) - paramsTypeMap["pimConfigId"] = bindings.NewStringType() - pathParams["pim_config_id"] = "pimConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["igmp_profile_id"] = bindings.NewStringType() + fields["policy_igmp_profile"] = bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) + fieldNameMap["igmp_profile_id"] = "IgmpProfileId" + fieldNameMap["policy_igmp_profile"] = "PolicyIgmpProfile" + paramsTypeMap["policy_igmp_profile"] = bindings.NewReferenceType(model.PolicyIgmpProfileBindingType) + paramsTypeMap["igmp_profile_id"] = bindings.NewStringType() + paramsTypeMap["igmpProfileId"] = bindings.NewStringType() + pathParams["igmp_profile_id"] = "igmpProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -273,14 +299,18 @@ func pimConfigurationsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", - "policy_pim_config", + "policy_igmp_profile", "PUT", - "/policy/api/v1/infra/pim-configurations/{pimConfigId}", + "/policy/api/v1/infra/igmp-profiles/{igmpProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpAddressGroupAssociationsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpAddressGroupAssociationsTypes.go index 51e2db5b6..6172b298e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpAddressGroupAssociationsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpAddressGroupAssociationsTypes.go @@ -58,6 +58,8 @@ func ipAddressGroupAssociationsListRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_address"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -99,14 +101,18 @@ func ipAddressGroupAssociationsListRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-address-group-associations", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpBlocksTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpBlocksTypes.go index 192421a28..b0d3dc5b7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpBlocksTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpBlocksTypes.go @@ -44,6 +44,8 @@ func ipBlocksDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_block_id"] = bindings.NewStringType() fieldNameMap["ip_block_id"] = "IpBlockId" paramsTypeMap["ip_block_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func ipBlocksDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ip-blocks/{ipBlockId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipBlocksGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func ipBlocksGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_block_id"] = bindings.NewStringType() fieldNameMap["ip_block_id"] = "IpBlockId" paramsTypeMap["ip_block_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func ipBlocksGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-blocks/{ipBlockId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipBlocksListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func ipBlocksListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func ipBlocksListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-blocks", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipBlocksPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func ipBlocksPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_block_id"] = bindings.NewStringType() fields["ip_address_block"] = bindings.NewReferenceType(model.IpAddressBlockBindingType) fieldNameMap["ip_block_id"] = "IpBlockId" @@ -224,14 +244,18 @@ func ipBlocksPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_block", "PATCH", "/policy/api/v1/infra/ip-blocks/{ipBlockId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipBlocksUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func ipBlocksUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_block_id"] = bindings.NewStringType() fields["ip_address_block"] = bindings.NewReferenceType(model.IpAddressBlockBindingType) fieldNameMap["ip_block_id"] = "IpBlockId" @@ -273,14 +299,18 @@ func ipBlocksUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_block", "PUT", "/policy/api/v1/infra/ip-blocks/{ipBlockId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesClient.go index c1473794a..941c9a5a9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesClient.go @@ -19,13 +19,12 @@ type IpDiscoveryProfilesClient interface { // API will delete IP Discovery profile. // // @param ipDiscoveryProfileIdParam IP Discovery Profile ID (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(ipDiscoveryProfileIdParam string, overrideParam *bool) error + Delete(ipDiscoveryProfileIdParam string) error // API will get IP Discovery profile. // @@ -58,24 +57,22 @@ type IpDiscoveryProfilesClient interface { // // @param ipDiscoveryProfileIdParam IP Discovery Profile ID (required) // @param ipDiscoveryProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile, overrideParam *bool) error + Patch(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile) error // API will update IP Discovery profile. // // @param ipDiscoveryProfileIdParam IP Discovery Profile ID (required) // @param ipDiscoveryProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.IPDiscoveryProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile, overrideParam *bool) (model.IPDiscoveryProfile, error) + Update(ipDiscoveryProfileIdParam string, ipDiscoveryProfileParam model.IPDiscoveryProfile) (model.IPDiscoveryProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesTypes.go index 904d64977..f714cc36c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpDiscoveryProfilesTypes.go @@ -28,9 +28,7 @@ func ipDiscoveryProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["ip_discovery_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ip_discovery_profile_id"] = "IpDiscoveryProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipDiscoveryProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_discovery_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ip_discovery_profile_id"] = "IpDiscoveryProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["ip_discovery_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipDiscoveryProfileId"] = bindings.NewStringType() pathParams["ip_discovery_profile_id"] = "ipDiscoveryProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipDiscoveryProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ip-discovery-profiles/{ipDiscoveryProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipDiscoveryProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipDiscoveryProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_discovery_profile_id"] = bindings.NewStringType() fieldNameMap["ip_discovery_profile_id"] = "IpDiscoveryProfileId" paramsTypeMap["ip_discovery_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipDiscoveryProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-discovery-profiles/{ipDiscoveryProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipDiscoveryProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipDiscoveryProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipDiscoveryProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-discovery-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipDiscoveryProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipDiscoveryProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ip_discovery_profile_id"] = bindings.NewStringType() fields["ip_discovery_profile"] = bindings.NewReferenceType(model.IPDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ip_discovery_profile_id"] = "IpDiscoveryProfileId" fieldNameMap["ip_discovery_profile"] = "IpDiscoveryProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipDiscoveryProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_discovery_profile_id"] = bindings.NewStringType() fields["ip_discovery_profile"] = bindings.NewReferenceType(model.IPDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ip_discovery_profile_id"] = "IpDiscoveryProfileId" fieldNameMap["ip_discovery_profile"] = "IpDiscoveryProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["ip_discovery_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ip_discovery_profile"] = bindings.NewReferenceType(model.IPDiscoveryProfileBindingType) paramsTypeMap["ipDiscoveryProfileId"] = bindings.NewStringType() pathParams["ip_discovery_profile_id"] = "ipDiscoveryProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipDiscoveryProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_discovery_profile", "PATCH", "/policy/api/v1/infra/ip-discovery-profiles/{ipDiscoveryProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipDiscoveryProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipDiscoveryProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ip_discovery_profile_id"] = bindings.NewStringType() fields["ip_discovery_profile"] = bindings.NewReferenceType(model.IPDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ip_discovery_profile_id"] = "IpDiscoveryProfileId" fieldNameMap["ip_discovery_profile"] = "IpDiscoveryProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipDiscoveryProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_discovery_profile_id"] = bindings.NewStringType() fields["ip_discovery_profile"] = bindings.NewReferenceType(model.IPDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ip_discovery_profile_id"] = "IpDiscoveryProfileId" fieldNameMap["ip_discovery_profile"] = "IpDiscoveryProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["ip_discovery_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ip_discovery_profile"] = bindings.NewReferenceType(model.IPDiscoveryProfileBindingType) paramsTypeMap["ipDiscoveryProfileId"] = bindings.NewStringType() pathParams["ip_discovery_profile_id"] = "ipDiscoveryProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipDiscoveryProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_discovery_profile", "PUT", "/policy/api/v1/infra/ip-discovery-profiles/{ipDiscoveryProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpPoolsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpPoolsTypes.go index 989c30502..578de405e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpPoolsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpPoolsTypes.go @@ -44,6 +44,8 @@ func ipPoolsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fieldNameMap["ip_pool_id"] = "IpPoolId" paramsTypeMap["ip_pool_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func ipPoolsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ip-pools/{ipPoolId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipPoolsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func ipPoolsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fieldNameMap["ip_pool_id"] = "IpPoolId" paramsTypeMap["ip_pool_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func ipPoolsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-pools/{ipPoolId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipPoolsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func ipPoolsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func ipPoolsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-pools", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipPoolsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func ipPoolsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_address_pool"] = bindings.NewReferenceType(model.IpAddressPoolBindingType) fieldNameMap["ip_pool_id"] = "IpPoolId" @@ -224,14 +244,18 @@ func ipPoolsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_pool", "PATCH", "/policy/api/v1/infra/ip-pools/{ipPoolId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipPoolsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func ipPoolsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_address_pool"] = bindings.NewReferenceType(model.IpAddressPoolBindingType) fieldNameMap["ip_pool_id"] = "IpPoolId" @@ -273,14 +299,18 @@ func ipPoolsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_pool", "PUT", "/policy/api/v1/infra/ip-pools/{ipPoolId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesClient.go index 671d17218..f17434e04 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesClient.go @@ -19,13 +19,12 @@ type IpfixCollectorProfilesClient interface { // API deletes IPFIX collector profile. Flow forwarding to collector will be stopped. This API is deprecated. Please use the following API: https:///policy/api/v1/infra/ipfix-l2-collector-profiles // // @param ipfixCollectorProfileIdParam IPFIX collector Profile id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(ipfixCollectorProfileIdParam string, overrideParam *bool) error + Delete(ipfixCollectorProfileIdParam string) error // API will return details of IPFIX collector profile. If profile does not exist, it will return 404. This API is deprecated. Please use the following API: https:///policy/api/v1/infra/ipfix-l2-collector-profiles // @@ -58,24 +57,22 @@ type IpfixCollectorProfilesClient interface { // // @param ipfixCollectorProfileIdParam IPFIX collector profile id (required) // @param iPFIXCollectorProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile, overrideParam *bool) error + Patch(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile) error // Create or Replace IPFIX collector profile. IPFIX data will be sent to IPFIX collector port. This API is deprecated. Please use the following API: https:///policy/api/v1/infra/ipfix-l2-collector-profiles // // @param ipfixCollectorProfileIdParam IPFIX collector profile id (required) // @param iPFIXCollectorProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.IPFIXCollectorProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile, overrideParam *bool) (model.IPFIXCollectorProfile, error) + Update(ipfixCollectorProfileIdParam string, iPFIXCollectorProfileParam model.IPFIXCollectorProfile) (model.IPFIXCollectorProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesTypes.go index 39f385df2..698e9d4f6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixCollectorProfilesTypes.go @@ -28,9 +28,7 @@ func ipfixCollectorProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["ipfix_collector_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_collector_profile_id"] = "IpfixCollectorProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipfixCollectorProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_collector_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_collector_profile_id"] = "IpfixCollectorProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["ipfix_collector_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfixCollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_collector_profile_id"] = "ipfixCollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipfixCollectorProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipfix-collector-profiles/{ipfixCollectorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixCollectorProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipfixCollectorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_collector_profile_id"] = bindings.NewStringType() fieldNameMap["ipfix_collector_profile_id"] = "IpfixCollectorProfileId" paramsTypeMap["ipfix_collector_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipfixCollectorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-collector-profiles/{ipfixCollectorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixCollectorProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipfixCollectorProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipfixCollectorProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-collector-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixCollectorProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipfixCollectorProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_collector_profile"] = bindings.NewReferenceType(model.IPFIXCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_collector_profile_id"] = "IpfixCollectorProfileId" fieldNameMap["i_PFIX_collector_profile"] = "IPFIXCollectorProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipfixCollectorProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_collector_profile"] = bindings.NewReferenceType(model.IPFIXCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_collector_profile_id"] = "IpfixCollectorProfileId" fieldNameMap["i_PFIX_collector_profile"] = "IPFIXCollectorProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["i_PFIX_collector_profile"] = bindings.NewReferenceType(model.IPFIXCollectorProfileBindingType) paramsTypeMap["ipfix_collector_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfixCollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_collector_profile_id"] = "ipfixCollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipfixCollectorProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_collector_profile", "PATCH", "/policy/api/v1/infra/ipfix-collector-profiles/{ipfixCollectorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixCollectorProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipfixCollectorProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_collector_profile"] = bindings.NewReferenceType(model.IPFIXCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_collector_profile_id"] = "IpfixCollectorProfileId" fieldNameMap["i_PFIX_collector_profile"] = "IPFIXCollectorProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipfixCollectorProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_collector_profile"] = bindings.NewReferenceType(model.IPFIXCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_collector_profile_id"] = "IpfixCollectorProfileId" fieldNameMap["i_PFIX_collector_profile"] = "IPFIXCollectorProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["i_PFIX_collector_profile"] = bindings.NewReferenceType(model.IPFIXCollectorProfileBindingType) paramsTypeMap["ipfix_collector_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfixCollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_collector_profile_id"] = "ipfixCollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipfixCollectorProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_collector_profile", "PUT", "/policy/api/v1/infra/ipfix-collector-profiles/{ipfixCollectorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesClient.go index 519516226..ab89290d8 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesClient.go @@ -19,13 +19,12 @@ type IpfixDfwCollectorProfilesClient interface { // API deletes IPFIX dfw collector profile. Flow forwarding to collector will be stopped. // // @param ipfixDfwCollectorProfileIdParam IPFIX dfw collector Profile id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(ipfixDfwCollectorProfileIdParam string, overrideParam *bool) error + Delete(ipfixDfwCollectorProfileIdParam string) error // API will return details of IPFIX dfw collector profile. If profile does not exist, it will return 404. // @@ -58,24 +57,22 @@ type IpfixDfwCollectorProfilesClient interface { // // @param ipfixDfwCollectorProfileIdParam (required) // @param iPFIXDFWCollectorProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile, overrideParam *bool) error + Patch(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile) error // Create or Replace IPFIX dfw collector profile. IPFIX data will be sent to IPFIX collector port. // // @param ipfixDfwCollectorProfileIdParam IPFIX dfw collector profile id (required) // @param iPFIXDFWCollectorProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.IPFIXDFWCollectorProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile, overrideParam *bool) (model.IPFIXDFWCollectorProfile, error) + Update(ipfixDfwCollectorProfileIdParam string, iPFIXDFWCollectorProfileParam model.IPFIXDFWCollectorProfile) (model.IPFIXDFWCollectorProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesTypes.go index b5f105f68..9da82a4f7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwCollectorProfilesTypes.go @@ -28,9 +28,7 @@ func ipfixDfwCollectorProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_collector_profile_id"] = "IpfixDfwCollectorProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipfixDfwCollectorProfilesDeleteRestMetadata() protocol.OperationRestMetadat pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_collector_profile_id"] = "IpfixDfwCollectorProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfixDfwCollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_dfw_collector_profile_id"] = "ipfixDfwCollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipfixDfwCollectorProfilesDeleteRestMetadata() protocol.OperationRestMetadat pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipfix-dfw-collector-profiles/{ipfixDfwCollectorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwCollectorProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipfixDfwCollectorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() fieldNameMap["ipfix_dfw_collector_profile_id"] = "IpfixDfwCollectorProfileId" paramsTypeMap["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipfixDfwCollectorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-dfw-collector-profiles/{ipfixDfwCollectorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwCollectorProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipfixDfwCollectorProfilesListRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipfixDfwCollectorProfilesListRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-dfw-collector-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwCollectorProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipfixDfwCollectorProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_collector_profile"] = bindings.NewReferenceType(model.IPFIXDFWCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_collector_profile_id"] = "IpfixDfwCollectorProfileId" fieldNameMap["i_PFIXDFW_collector_profile"] = "IPFIXDFWCollectorProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipfixDfwCollectorProfilesPatchRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_collector_profile"] = bindings.NewReferenceType(model.IPFIXDFWCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_collector_profile_id"] = "IpfixDfwCollectorProfileId" fieldNameMap["i_PFIXDFW_collector_profile"] = "IPFIXDFWCollectorProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["i_PFIXDFW_collector_profile"] = bindings.NewReferenceType(model.IPFIXDFWCollectorProfileBindingType) paramsTypeMap["ipfixDfwCollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_dfw_collector_profile_id"] = "ipfixDfwCollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipfixDfwCollectorProfilesPatchRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIXDFW_collector_profile", "PATCH", "/policy/api/v1/infra/ipfix-dfw-collector-profiles/{ipfixDfwCollectorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwCollectorProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipfixDfwCollectorProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_collector_profile"] = bindings.NewReferenceType(model.IPFIXDFWCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_collector_profile_id"] = "IpfixDfwCollectorProfileId" fieldNameMap["i_PFIXDFW_collector_profile"] = "IPFIXDFWCollectorProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipfixDfwCollectorProfilesUpdateRestMetadata() protocol.OperationRestMetadat pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_collector_profile"] = bindings.NewReferenceType(model.IPFIXDFWCollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_collector_profile_id"] = "IpfixDfwCollectorProfileId" fieldNameMap["i_PFIXDFW_collector_profile"] = "IPFIXDFWCollectorProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["ipfix_dfw_collector_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["i_PFIXDFW_collector_profile"] = bindings.NewReferenceType(model.IPFIXDFWCollectorProfileBindingType) paramsTypeMap["ipfixDfwCollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_dfw_collector_profile_id"] = "ipfixDfwCollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipfixDfwCollectorProfilesUpdateRestMetadata() protocol.OperationRestMetadat pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIXDFW_collector_profile", "PUT", "/policy/api/v1/infra/ipfix-dfw-collector-profiles/{ipfixDfwCollectorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesClient.go index ad6ecae75..046a66f3f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesClient.go @@ -19,13 +19,12 @@ type IpfixDfwProfilesClient interface { // API deletes IPFIX DFW Profile. Selected IPFIX Collectors will stop receiving flows. // // @param ipfixDfwProfileIdParam IPFIX DFW Profile ID (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(ipfixDfwProfileIdParam string, overrideParam *bool) error + Delete(ipfixDfwProfileIdParam string) error // API will return details of IPFIX DFW profile. // @@ -58,24 +57,22 @@ type IpfixDfwProfilesClient interface { // // @param ipfixDfwProfileIdParam IPFIX DFW Profile ID (required) // @param iPFIXDFWProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile, overrideParam *bool) error + Patch(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile) error // Create or replace IPFIX DFW profile. Config will start forwarding data to provided IPFIX DFW collector. // // @param ipfixDfwProfileIdParam IPFIX DFW Profile ID (required) // @param iPFIXDFWProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.IPFIXDFWProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile, overrideParam *bool) (model.IPFIXDFWProfile, error) + Update(ipfixDfwProfileIdParam string, iPFIXDFWProfileParam model.IPFIXDFWProfile) (model.IPFIXDFWProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesTypes.go index 89fcf66ae..5a5cfb9ff 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixDfwProfilesTypes.go @@ -28,9 +28,7 @@ func ipfixDfwProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["ipfix_dfw_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_profile_id"] = "IpfixDfwProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipfixDfwProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_profile_id"] = "IpfixDfwProfileId" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfix_dfw_profile_id"] = bindings.NewStringType() paramsTypeMap["ipfixDfwProfileId"] = bindings.NewStringType() pathParams["ipfix_dfw_profile_id"] = "ipfixDfwProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipfixDfwProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipfix-dfw-profiles/{ipfixDfwProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipfixDfwProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_profile_id"] = bindings.NewStringType() fieldNameMap["ipfix_dfw_profile_id"] = "IpfixDfwProfileId" paramsTypeMap["ipfix_dfw_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipfixDfwProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-dfw-profiles/{ipfixDfwProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipfixDfwProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipfixDfwProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-dfw-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipfixDfwProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_dfw_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_profile"] = bindings.NewReferenceType(model.IPFIXDFWProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_profile_id"] = "IpfixDfwProfileId" fieldNameMap["i_PFIXDFW_profile"] = "IPFIXDFWProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipfixDfwProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_profile"] = bindings.NewReferenceType(model.IPFIXDFWProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_profile_id"] = "IpfixDfwProfileId" fieldNameMap["i_PFIXDFW_profile"] = "IPFIXDFWProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfix_dfw_profile_id"] = bindings.NewStringType() paramsTypeMap["i_PFIXDFW_profile"] = bindings.NewReferenceType(model.IPFIXDFWProfileBindingType) paramsTypeMap["ipfixDfwProfileId"] = bindings.NewStringType() pathParams["ipfix_dfw_profile_id"] = "ipfixDfwProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipfixDfwProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIXDFW_profile", "PATCH", "/policy/api/v1/infra/ipfix-dfw-profiles/{ipfixDfwProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixDfwProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipfixDfwProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_dfw_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_profile"] = bindings.NewReferenceType(model.IPFIXDFWProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_profile_id"] = "IpfixDfwProfileId" fieldNameMap["i_PFIXDFW_profile"] = "IPFIXDFWProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipfixDfwProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_dfw_profile_id"] = bindings.NewStringType() fields["i_PFIXDFW_profile"] = bindings.NewReferenceType(model.IPFIXDFWProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_dfw_profile_id"] = "IpfixDfwProfileId" fieldNameMap["i_PFIXDFW_profile"] = "IPFIXDFWProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfix_dfw_profile_id"] = bindings.NewStringType() paramsTypeMap["i_PFIXDFW_profile"] = bindings.NewReferenceType(model.IPFIXDFWProfileBindingType) paramsTypeMap["ipfixDfwProfileId"] = bindings.NewStringType() pathParams["ipfix_dfw_profile_id"] = "ipfixDfwProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipfixDfwProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIXDFW_profile", "PUT", "/policy/api/v1/infra/ipfix-dfw-profiles/{ipfixDfwProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesClient.go index 1b7cfab6f..2460e723f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesClient.go @@ -19,13 +19,12 @@ type IpfixL2CollectorProfilesClient interface { // API deletes IPFIX collector profile. Flow forwarding to collector will be stopped. // // @param ipfixL2CollectorProfileIdParam IPFIX collector Profile id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(ipfixL2CollectorProfileIdParam string, overrideParam *bool) error + Delete(ipfixL2CollectorProfileIdParam string) error // API will return details of IPFIX collector profile. // @@ -58,24 +57,22 @@ type IpfixL2CollectorProfilesClient interface { // // @param ipfixL2CollectorProfileIdParam IPFIX collector profile id (required) // @param iPFIXL2CollectorProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile, overrideParam *bool) error + Patch(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile) error // Create or Replace IPFIX collector profile. IPFIX data will be sent to IPFIX collector. // // @param ipfixL2CollectorProfileIdParam IPFIX collector profile id (required) // @param iPFIXL2CollectorProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.IPFIXL2CollectorProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile, overrideParam *bool) (model.IPFIXL2CollectorProfile, error) + Update(ipfixL2CollectorProfileIdParam string, iPFIXL2CollectorProfileParam model.IPFIXL2CollectorProfile) (model.IPFIXL2CollectorProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesTypes.go index 3b61ab684..ffdfff9a7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2CollectorProfilesTypes.go @@ -28,9 +28,7 @@ func ipfixL2CollectorProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["ipfix_l2_collector_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_collector_profile_id"] = "IpfixL2CollectorProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipfixL2CollectorProfilesDeleteRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_collector_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_collector_profile_id"] = "IpfixL2CollectorProfileId" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfix_l2_collector_profile_id"] = bindings.NewStringType() paramsTypeMap["ipfixL2CollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_l2_collector_profile_id"] = "ipfixL2CollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipfixL2CollectorProfilesDeleteRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipfix-l2-collector-profiles/{ipfixL2CollectorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2CollectorProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipfixL2CollectorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_collector_profile_id"] = bindings.NewStringType() fieldNameMap["ipfix_l2_collector_profile_id"] = "IpfixL2CollectorProfileId" paramsTypeMap["ipfix_l2_collector_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipfixL2CollectorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-l2-collector-profiles/{ipfixL2CollectorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2CollectorProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipfixL2CollectorProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipfixL2CollectorProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-l2-collector-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2CollectorProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipfixL2CollectorProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_l2_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_collector_profile"] = bindings.NewReferenceType(model.IPFIXL2CollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_collector_profile_id"] = "IpfixL2CollectorProfileId" fieldNameMap["i_PFIX_l2_collector_profile"] = "IPFIXL2CollectorProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipfixL2CollectorProfilesPatchRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_collector_profile"] = bindings.NewReferenceType(model.IPFIXL2CollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_collector_profile_id"] = "IpfixL2CollectorProfileId" fieldNameMap["i_PFIX_l2_collector_profile"] = "IPFIXL2CollectorProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["i_PFIX_l2_collector_profile"] = bindings.NewReferenceType(model.IPFIXL2CollectorProfileBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfix_l2_collector_profile_id"] = bindings.NewStringType() paramsTypeMap["ipfixL2CollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_l2_collector_profile_id"] = "ipfixL2CollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipfixL2CollectorProfilesPatchRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_l2_collector_profile", "PATCH", "/policy/api/v1/infra/ipfix-l2-collector-profiles/{ipfixL2CollectorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2CollectorProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipfixL2CollectorProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_l2_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_collector_profile"] = bindings.NewReferenceType(model.IPFIXL2CollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_collector_profile_id"] = "IpfixL2CollectorProfileId" fieldNameMap["i_PFIX_l2_collector_profile"] = "IPFIXL2CollectorProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipfixL2CollectorProfilesUpdateRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_collector_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_collector_profile"] = bindings.NewReferenceType(model.IPFIXL2CollectorProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_collector_profile_id"] = "IpfixL2CollectorProfileId" fieldNameMap["i_PFIX_l2_collector_profile"] = "IPFIXL2CollectorProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["i_PFIX_l2_collector_profile"] = bindings.NewReferenceType(model.IPFIXL2CollectorProfileBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfix_l2_collector_profile_id"] = bindings.NewStringType() paramsTypeMap["ipfixL2CollectorProfileId"] = bindings.NewStringType() pathParams["ipfix_l2_collector_profile_id"] = "ipfixL2CollectorProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipfixL2CollectorProfilesUpdateRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_l2_collector_profile", "PUT", "/policy/api/v1/infra/ipfix-l2-collector-profiles/{ipfixL2CollectorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesClient.go index 4888e86c3..37beec1de 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesClient.go @@ -19,13 +19,12 @@ type IpfixL2ProfilesClient interface { // API deletes IPFIX L2 Profile. Flow forwarding to selected collector will be stopped. // // @param ipfixL2ProfileIdParam IPFIX L2 Profile ID (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(ipfixL2ProfileIdParam string, overrideParam *bool) error + Delete(ipfixL2ProfileIdParam string) error // API will return details of IPFIX L2 profile. // @@ -58,24 +57,22 @@ type IpfixL2ProfilesClient interface { // // @param ipfixL2ProfileIdParam IPFIX L2 Profile ID (required) // @param iPFIXL2ProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile, overrideParam *bool) error + Patch(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile) error // Create or replace IPFIX L2 Profile. Profile is reusable entity. Single profile can attached multiple bindings e.g group, segment and port. // // @param ipfixL2ProfileIdParam IPFIX L2 Profile ID (required) // @param iPFIXL2ProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.IPFIXL2Profile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile, overrideParam *bool) (model.IPFIXL2Profile, error) + Update(ipfixL2ProfileIdParam string, iPFIXL2ProfileParam model.IPFIXL2Profile) (model.IPFIXL2Profile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesTypes.go index 1940e8a0c..cde451a88 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpfixL2ProfilesTypes.go @@ -28,9 +28,7 @@ func ipfixL2ProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["ipfix_l2_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_profile_id"] = "IpfixL2ProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipfixL2ProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_profile_id"] = "IpfixL2ProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["ipfix_l2_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipfixL2ProfileId"] = bindings.NewStringType() pathParams["ipfix_l2_profile_id"] = "ipfixL2ProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipfixL2ProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipfix-l2-profiles/{ipfixL2ProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2ProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipfixL2ProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_profile_id"] = bindings.NewStringType() fieldNameMap["ipfix_l2_profile_id"] = "IpfixL2ProfileId" paramsTypeMap["ipfix_l2_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipfixL2ProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-l2-profiles/{ipfixL2ProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2ProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipfixL2ProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipfixL2ProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipfix-l2-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2ProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipfixL2ProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_l2_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_profile"] = bindings.NewReferenceType(model.IPFIXL2ProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_profile_id"] = "IpfixL2ProfileId" fieldNameMap["i_PFIX_l2_profile"] = "IPFIXL2Profile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipfixL2ProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_profile"] = bindings.NewReferenceType(model.IPFIXL2ProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_profile_id"] = "IpfixL2ProfileId" fieldNameMap["i_PFIX_l2_profile"] = "IPFIXL2Profile" - fieldNameMap["override"] = "Override" paramsTypeMap["ipfix_l2_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["i_PFIX_l2_profile"] = bindings.NewReferenceType(model.IPFIXL2ProfileBindingType) paramsTypeMap["ipfixL2ProfileId"] = bindings.NewStringType() pathParams["ipfix_l2_profile_id"] = "ipfixL2ProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipfixL2ProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_l2_profile", "PATCH", "/policy/api/v1/infra/ipfix-l2-profiles/{ipfixL2ProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixL2ProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipfixL2ProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ipfix_l2_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_profile"] = bindings.NewReferenceType(model.IPFIXL2ProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_profile_id"] = "IpfixL2ProfileId" fieldNameMap["i_PFIX_l2_profile"] = "IPFIXL2Profile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipfixL2ProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ipfix_l2_profile_id"] = bindings.NewStringType() fields["i_PFIX_l2_profile"] = bindings.NewReferenceType(model.IPFIXL2ProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ipfix_l2_profile_id"] = "IpfixL2ProfileId" fieldNameMap["i_PFIX_l2_profile"] = "IPFIXL2Profile" - fieldNameMap["override"] = "Override" paramsTypeMap["ipfix_l2_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["i_PFIX_l2_profile"] = bindings.NewReferenceType(model.IPFIXL2ProfileBindingType) paramsTypeMap["ipfixL2ProfileId"] = bindings.NewStringType() pathParams["ipfix_l2_profile_id"] = "ipfixL2ProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipfixL2ProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_l2_profile", "PUT", "/policy/api/v1/infra/ipfix-l2-profiles/{ipfixL2ProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnDpdProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnDpdProfilesTypes.go index 656e3bfd0..ae05f6eb6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnDpdProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnDpdProfilesTypes.go @@ -44,6 +44,8 @@ func ipsecVpnDpdProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dpd_profile_id"] = bindings.NewStringType() fieldNameMap["dpd_profile_id"] = "DpdProfileId" paramsTypeMap["dpd_profile_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func ipsecVpnDpdProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipsec-vpn-dpd-profiles/{dpdProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnDpdProfilesGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func ipsecVpnDpdProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dpd_profile_id"] = bindings.NewStringType() fieldNameMap["dpd_profile_id"] = "DpdProfileId" paramsTypeMap["dpd_profile_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func ipsecVpnDpdProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipsec-vpn-dpd-profiles/{dpdProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnDpdProfilesListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func ipsecVpnDpdProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func ipsecVpnDpdProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipsec-vpn-dpd-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnDpdProfilesPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func ipsecVpnDpdProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dpd_profile_id"] = bindings.NewStringType() fields["ip_sec_vpn_dpd_profile"] = bindings.NewReferenceType(model.IPSecVpnDpdProfileBindingType) fieldNameMap["dpd_profile_id"] = "DpdProfileId" @@ -224,14 +244,18 @@ func ipsecVpnDpdProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_dpd_profile", "PATCH", "/policy/api/v1/infra/ipsec-vpn-dpd-profiles/{dpdProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnDpdProfilesUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func ipsecVpnDpdProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dpd_profile_id"] = bindings.NewStringType() fields["ip_sec_vpn_dpd_profile"] = bindings.NewReferenceType(model.IPSecVpnDpdProfileBindingType) fieldNameMap["dpd_profile_id"] = "DpdProfileId" @@ -273,14 +299,18 @@ func ipsecVpnDpdProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_dpd_profile", "PUT", "/policy/api/v1/infra/ipsec-vpn-dpd-profiles/{dpdProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnIkeProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnIkeProfilesTypes.go index 7a149eeb2..405be793a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnIkeProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnIkeProfilesTypes.go @@ -44,6 +44,8 @@ func ipsecVpnIkeProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ike_profile_id"] = bindings.NewStringType() fieldNameMap["ike_profile_id"] = "IkeProfileId" paramsTypeMap["ike_profile_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func ipsecVpnIkeProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipsec-vpn-ike-profiles/{ikeProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnIkeProfilesGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func ipsecVpnIkeProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ike_profile_id"] = bindings.NewStringType() fieldNameMap["ike_profile_id"] = "IkeProfileId" paramsTypeMap["ike_profile_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func ipsecVpnIkeProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipsec-vpn-ike-profiles/{ikeProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnIkeProfilesListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func ipsecVpnIkeProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func ipsecVpnIkeProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipsec-vpn-ike-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnIkeProfilesPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func ipsecVpnIkeProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ike_profile_id"] = bindings.NewStringType() fields["ip_sec_vpn_ike_profile"] = bindings.NewReferenceType(model.IPSecVpnIkeProfileBindingType) fieldNameMap["ike_profile_id"] = "IkeProfileId" @@ -224,14 +244,18 @@ func ipsecVpnIkeProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_ike_profile", "PATCH", "/policy/api/v1/infra/ipsec-vpn-ike-profiles/{ikeProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnIkeProfilesUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func ipsecVpnIkeProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ike_profile_id"] = bindings.NewStringType() fields["ip_sec_vpn_ike_profile"] = bindings.NewReferenceType(model.IPSecVpnIkeProfileBindingType) fieldNameMap["ike_profile_id"] = "IkeProfileId" @@ -273,14 +299,18 @@ func ipsecVpnIkeProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_ike_profile", "PUT", "/policy/api/v1/infra/ipsec-vpn-ike-profiles/{ikeProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnTunnelProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnTunnelProfilesTypes.go index f76bec11e..de5f5cfed 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnTunnelProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IpsecVpnTunnelProfilesTypes.go @@ -44,6 +44,8 @@ func ipsecVpnTunnelProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tunnel_profile_id"] = bindings.NewStringType() fieldNameMap["tunnel_profile_id"] = "TunnelProfileId" paramsTypeMap["tunnel_profile_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func ipsecVpnTunnelProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipsec-vpn-tunnel-profiles/{tunnelProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnTunnelProfilesGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func ipsecVpnTunnelProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tunnel_profile_id"] = bindings.NewStringType() fieldNameMap["tunnel_profile_id"] = "TunnelProfileId" paramsTypeMap["tunnel_profile_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func ipsecVpnTunnelProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipsec-vpn-tunnel-profiles/{tunnelProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnTunnelProfilesListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func ipsecVpnTunnelProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func ipsecVpnTunnelProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipsec-vpn-tunnel-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnTunnelProfilesPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func ipsecVpnTunnelProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tunnel_profile_id"] = bindings.NewStringType() fields["ip_sec_vpn_tunnel_profile"] = bindings.NewReferenceType(model.IPSecVpnTunnelProfileBindingType) fieldNameMap["tunnel_profile_id"] = "TunnelProfileId" @@ -224,14 +244,18 @@ func ipsecVpnTunnelProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_tunnel_profile", "PATCH", "/policy/api/v1/infra/ipsec-vpn-tunnel-profiles/{tunnelProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnTunnelProfilesUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func ipsecVpnTunnelProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tunnel_profile_id"] = bindings.NewStringType() fields["ip_sec_vpn_tunnel_profile"] = bindings.NewReferenceType(model.IPSecVpnTunnelProfileBindingType) fieldNameMap["tunnel_profile_id"] = "TunnelProfileId" @@ -273,14 +299,18 @@ func ipsecVpnTunnelProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_tunnel_profile", "PUT", "/policy/api/v1/infra/ipsec-vpn-tunnel-profiles/{tunnelProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesClient.go index d88381320..d391ed239 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesClient.go @@ -19,13 +19,12 @@ type Ipv6DadProfilesClient interface { // Delete IPv6 DAD profile // // @param dadProfileIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(dadProfileIdParam string, overrideParam *bool) error + Delete(dadProfileIdParam string) error // Read IPv6 DAD profile // @@ -58,24 +57,22 @@ type Ipv6DadProfilesClient interface { // // @param dadProfileIdParam (required) // @param ipv6DadProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile, overrideParam *bool) error + Patch(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile) error // If profile with the dad-profile-id is not already present, create a new IPv6 DAD profile instance. If it already exists, replace the IPv6 DAD profile instance with this object. // // @param dadProfileIdParam (required) // @param ipv6DadProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.Ipv6DadProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile, overrideParam *bool) (model.Ipv6DadProfile, error) + Update(dadProfileIdParam string, ipv6DadProfileParam model.Ipv6DadProfile) (model.Ipv6DadProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesTypes.go index 197675cc3..6a8cfd2d8 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6DadProfilesTypes.go @@ -28,9 +28,7 @@ func ipv6DadProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["dad_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["dad_profile_id"] = "DadProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipv6DadProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dad_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["dad_profile_id"] = "DadProfileId" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["dad_profile_id"] = bindings.NewStringType() paramsTypeMap["dadProfileId"] = bindings.NewStringType() pathParams["dad_profile_id"] = "dadProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipv6DadProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipv6-dad-profiles/{dadProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6DadProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipv6DadProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dad_profile_id"] = bindings.NewStringType() fieldNameMap["dad_profile_id"] = "DadProfileId" paramsTypeMap["dad_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipv6DadProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipv6-dad-profiles/{dadProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6DadProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipv6DadProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipv6DadProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipv6-dad-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6DadProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipv6DadProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["dad_profile_id"] = bindings.NewStringType() fields["ipv6_dad_profile"] = bindings.NewReferenceType(model.Ipv6DadProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["dad_profile_id"] = "DadProfileId" fieldNameMap["ipv6_dad_profile"] = "Ipv6DadProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipv6DadProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dad_profile_id"] = bindings.NewStringType() fields["ipv6_dad_profile"] = bindings.NewReferenceType(model.Ipv6DadProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["dad_profile_id"] = "DadProfileId" fieldNameMap["ipv6_dad_profile"] = "Ipv6DadProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["dad_profile_id"] = bindings.NewStringType() paramsTypeMap["ipv6_dad_profile"] = bindings.NewReferenceType(model.Ipv6DadProfileBindingType) paramsTypeMap["dadProfileId"] = bindings.NewStringType() pathParams["dad_profile_id"] = "dadProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipv6DadProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ipv6_dad_profile", "PATCH", "/policy/api/v1/infra/ipv6-dad-profiles/{dadProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6DadProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipv6DadProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["dad_profile_id"] = bindings.NewStringType() fields["ipv6_dad_profile"] = bindings.NewReferenceType(model.Ipv6DadProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["dad_profile_id"] = "DadProfileId" fieldNameMap["ipv6_dad_profile"] = "Ipv6DadProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipv6DadProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["dad_profile_id"] = bindings.NewStringType() fields["ipv6_dad_profile"] = bindings.NewReferenceType(model.Ipv6DadProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["dad_profile_id"] = "DadProfileId" fieldNameMap["ipv6_dad_profile"] = "Ipv6DadProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["dad_profile_id"] = bindings.NewStringType() paramsTypeMap["ipv6_dad_profile"] = bindings.NewReferenceType(model.Ipv6DadProfileBindingType) paramsTypeMap["dadProfileId"] = bindings.NewStringType() pathParams["dad_profile_id"] = "dadProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipv6DadProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ipv6_dad_profile", "PUT", "/policy/api/v1/infra/ipv6-dad-profiles/{dadProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesClient.go index 24fb07526..bec3b8311 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesClient.go @@ -19,13 +19,12 @@ type Ipv6NdraProfilesClient interface { // Delete IPv6 NDRA profile // // @param ndraProfileIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(ndraProfileIdParam string, overrideParam *bool) error + Delete(ndraProfileIdParam string) error // Read IPv6 NDRA profile // @@ -58,24 +57,22 @@ type Ipv6NdraProfilesClient interface { // // @param ndraProfileIdParam (required) // @param ipv6NdraProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile, overrideParam *bool) error + Patch(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile) error // If profile with the ndra-profile-id is not already present, create a new IPv6 NDRA profile instance. If it already exists, replace the IPv6 NDRA profile instance with this object. // // @param ndraProfileIdParam (required) // @param ipv6NdraProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.Ipv6NdraProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile, overrideParam *bool) (model.Ipv6NdraProfile, error) + Update(ndraProfileIdParam string, ipv6NdraProfileParam model.Ipv6NdraProfile) (model.Ipv6NdraProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesTypes.go index 67d1cddc0..a62399153 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Ipv6NdraProfilesTypes.go @@ -28,9 +28,7 @@ func ipv6NdraProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["ndra_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ndra_profile_id"] = "NdraProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func ipv6NdraProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ndra_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ndra_profile_id"] = "NdraProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["ndra_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ndraProfileId"] = bindings.NewStringType() pathParams["ndra_profile_id"] = "ndraProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func ipv6NdraProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ipv6-ndra-profiles/{ndraProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6NdraProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func ipv6NdraProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ndra_profile_id"] = bindings.NewStringType() fieldNameMap["ndra_profile_id"] = "NdraProfileId" paramsTypeMap["ndra_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func ipv6NdraProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipv6-ndra-profiles/{ndraProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6NdraProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func ipv6NdraProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func ipv6NdraProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ipv6-ndra-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6NdraProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func ipv6NdraProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ndra_profile_id"] = bindings.NewStringType() fields["ipv6_ndra_profile"] = bindings.NewReferenceType(model.Ipv6NdraProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ndra_profile_id"] = "NdraProfileId" fieldNameMap["ipv6_ndra_profile"] = "Ipv6NdraProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func ipv6NdraProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ndra_profile_id"] = bindings.NewStringType() fields["ipv6_ndra_profile"] = bindings.NewReferenceType(model.Ipv6NdraProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ndra_profile_id"] = "NdraProfileId" fieldNameMap["ipv6_ndra_profile"] = "Ipv6NdraProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["ndra_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipv6_ndra_profile"] = bindings.NewReferenceType(model.Ipv6NdraProfileBindingType) paramsTypeMap["ndraProfileId"] = bindings.NewStringType() pathParams["ndra_profile_id"] = "ndraProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func ipv6NdraProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ipv6_ndra_profile", "PATCH", "/policy/api/v1/infra/ipv6-ndra-profiles/{ndraProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipv6NdraProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func ipv6NdraProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["ndra_profile_id"] = bindings.NewStringType() fields["ipv6_ndra_profile"] = bindings.NewReferenceType(model.Ipv6NdraProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ndra_profile_id"] = "NdraProfileId" fieldNameMap["ipv6_ndra_profile"] = "Ipv6NdraProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func ipv6NdraProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ndra_profile_id"] = bindings.NewStringType() fields["ipv6_ndra_profile"] = bindings.NewReferenceType(model.Ipv6NdraProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ndra_profile_id"] = "NdraProfileId" fieldNameMap["ipv6_ndra_profile"] = "Ipv6NdraProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["ndra_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["ipv6_ndra_profile"] = bindings.NewReferenceType(model.Ipv6NdraProfileBindingType) paramsTypeMap["ndraProfileId"] = bindings.NewStringType() pathParams["ndra_profile_id"] = "ndraProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func ipv6NdraProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ipv6_ndra_profile", "PUT", "/policy/api/v1/infra/ipv6-ndra-profiles/{ndraProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LabelsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LabelsTypes.go index 68e29a191..eff03a33b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LabelsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LabelsTypes.go @@ -44,6 +44,8 @@ func labelsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["label_id"] = bindings.NewStringType() fieldNameMap["label_id"] = "LabelId" paramsTypeMap["label_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func labelsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/labels/{labelId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func labelsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func labelsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["label_id"] = bindings.NewStringType() fieldNameMap["label_id"] = "LabelId" paramsTypeMap["label_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func labelsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/labels/{labelId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func labelsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func labelsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func labelsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/labels", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func labelsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func labelsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["label_id"] = bindings.NewStringType() fields["policy_label"] = bindings.NewReferenceType(model.PolicyLabelBindingType) fieldNameMap["label_id"] = "LabelId" @@ -224,14 +244,18 @@ func labelsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_label", "PATCH", "/policy/api/v1/infra/labels/{labelId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func labelsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func labelsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["label_id"] = bindings.NewStringType() fields["policy_label"] = bindings.NewReferenceType(model.PolicyLabelBindingType) fieldNameMap["label_id"] = "LabelId" @@ -273,14 +299,18 @@ func labelsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_label", "PUT", "/policy/api/v1/infra/labels/{labelId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbAppProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbAppProfilesTypes.go index a81be6756..cb0e3570f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbAppProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbAppProfilesTypes.go @@ -46,6 +46,8 @@ func lbAppProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_app_profile_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_app_profile_id"] = "LbAppProfileId" @@ -64,14 +66,18 @@ func lbAppProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-app-profiles/{lbAppProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbAppProfilesGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbAppProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_app_profile_id"] = bindings.NewStringType() fieldNameMap["lb_app_profile_id"] = "LbAppProfileId" paramsTypeMap["lb_app_profile_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbAppProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-app-profiles/{lbAppProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbAppProfilesListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbAppProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbAppProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-app-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbAppProfilesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbAppProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_app_profile_id"] = bindings.NewStringType() fields["lb_app_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.LBAppProfileBindingType),}, bindings.REST) fieldNameMap["lb_app_profile_id"] = "LbAppProfileId" @@ -230,14 +250,18 @@ func lbAppProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_app_profile", "PATCH", "/policy/api/v1/infra/lb-app-profiles/{lbAppProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbAppProfilesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbAppProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_app_profile_id"] = bindings.NewStringType() fields["lb_app_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.LBAppProfileBindingType),}, bindings.REST) fieldNameMap["lb_app_profile_id"] = "LbAppProfileId" @@ -279,14 +305,18 @@ func lbAppProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_app_profile", "PUT", "/policy/api/v1/infra/lb-app-profiles/{lbAppProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbClientSslProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbClientSslProfilesTypes.go index 7fdd4b9cc..5a5cd4e23 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbClientSslProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbClientSslProfilesTypes.go @@ -46,6 +46,8 @@ func lbClientSslProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_client_ssl_profile_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_client_ssl_profile_id"] = "LbClientSslProfileId" @@ -64,14 +66,18 @@ func lbClientSslProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-client-ssl-profiles/{lbClientSslProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbClientSslProfilesGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbClientSslProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_client_ssl_profile_id"] = bindings.NewStringType() fieldNameMap["lb_client_ssl_profile_id"] = "LbClientSslProfileId" paramsTypeMap["lb_client_ssl_profile_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbClientSslProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-client-ssl-profiles/{lbClientSslProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbClientSslProfilesListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbClientSslProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbClientSslProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-client-ssl-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbClientSslProfilesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbClientSslProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_client_ssl_profile_id"] = bindings.NewStringType() fields["lb_client_ssl_profile"] = bindings.NewReferenceType(model.LBClientSslProfileBindingType) fieldNameMap["lb_client_ssl_profile_id"] = "LbClientSslProfileId" @@ -230,14 +250,18 @@ func lbClientSslProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_client_ssl_profile", "PATCH", "/policy/api/v1/infra/lb-client-ssl-profiles/{lbClientSslProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbClientSslProfilesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbClientSslProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_client_ssl_profile_id"] = bindings.NewStringType() fields["lb_client_ssl_profile"] = bindings.NewReferenceType(model.LBClientSslProfileBindingType) fieldNameMap["lb_client_ssl_profile_id"] = "LbClientSslProfileId" @@ -279,14 +305,18 @@ func lbClientSslProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_client_ssl_profile", "PUT", "/policy/api/v1/infra/lb-client-ssl-profiles/{lbClientSslProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbMonitorProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbMonitorProfilesTypes.go index 40b722c9c..ee148d0fe 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbMonitorProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbMonitorProfilesTypes.go @@ -46,6 +46,8 @@ func lbMonitorProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_monitor_profile_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_monitor_profile_id"] = "LbMonitorProfileId" @@ -64,14 +66,18 @@ func lbMonitorProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-monitor-profiles/{lbMonitorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbMonitorProfilesGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbMonitorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_monitor_profile_id"] = bindings.NewStringType() fieldNameMap["lb_monitor_profile_id"] = "LbMonitorProfileId" paramsTypeMap["lb_monitor_profile_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbMonitorProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-monitor-profiles/{lbMonitorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbMonitorProfilesListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbMonitorProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbMonitorProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-monitor-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbMonitorProfilesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbMonitorProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_monitor_profile_id"] = bindings.NewStringType() fields["lb_monitor_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.LBMonitorProfileBindingType),}, bindings.REST) fieldNameMap["lb_monitor_profile_id"] = "LbMonitorProfileId" @@ -230,14 +250,18 @@ func lbMonitorProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_monitor_profile", "PATCH", "/policy/api/v1/infra/lb-monitor-profiles/{lbMonitorProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbMonitorProfilesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbMonitorProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_monitor_profile_id"] = bindings.NewStringType() fields["lb_monitor_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.LBMonitorProfileBindingType),}, bindings.REST) fieldNameMap["lb_monitor_profile_id"] = "LbMonitorProfileId" @@ -279,14 +305,18 @@ func lbMonitorProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_monitor_profile", "PUT", "/policy/api/v1/infra/lb-monitor-profiles/{lbMonitorProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageSummaryTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageSummaryTypes.go index 5080b61f3..a844141fa 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageSummaryTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageSummaryTypes.go @@ -46,6 +46,8 @@ func lbNodeUsageSummaryGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_usages"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enforcement_point_path"] = "EnforcementPointPath" @@ -63,14 +65,18 @@ func lbNodeUsageSummaryGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-node-usage-summary", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageTypes.go index 3278ffcd8..ee4df97d7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbNodeUsageTypes.go @@ -44,6 +44,8 @@ func lbNodeUsageGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["node_path"] = bindings.NewStringType() fieldNameMap["node_path"] = "NodePath" paramsTypeMap["node_path"] = bindings.NewStringType() @@ -57,14 +59,18 @@ func lbNodeUsageGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-node-usage", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPersistenceProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPersistenceProfilesTypes.go index ddc0d5f12..7b1207708 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPersistenceProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPersistenceProfilesTypes.go @@ -46,6 +46,8 @@ func lbPersistenceProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_persistence_profile_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_persistence_profile_id"] = "LbPersistenceProfileId" @@ -64,14 +66,18 @@ func lbPersistenceProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-persistence-profiles/{lbPersistenceProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPersistenceProfilesGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbPersistenceProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_persistence_profile_id"] = bindings.NewStringType() fieldNameMap["lb_persistence_profile_id"] = "LbPersistenceProfileId" paramsTypeMap["lb_persistence_profile_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbPersistenceProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-persistence-profiles/{lbPersistenceProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPersistenceProfilesListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbPersistenceProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbPersistenceProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-persistence-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPersistenceProfilesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbPersistenceProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_persistence_profile_id"] = bindings.NewStringType() fields["lb_persistence_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.LBPersistenceProfileBindingType),}, bindings.REST) fieldNameMap["lb_persistence_profile_id"] = "LbPersistenceProfileId" @@ -230,14 +250,18 @@ func lbPersistenceProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_persistence_profile", "PATCH", "/policy/api/v1/infra/lb-persistence-profiles/{lbPersistenceProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPersistenceProfilesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbPersistenceProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_persistence_profile_id"] = bindings.NewStringType() fields["lb_persistence_profile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.LBPersistenceProfileBindingType),}, bindings.REST) fieldNameMap["lb_persistence_profile_id"] = "LbPersistenceProfileId" @@ -279,14 +305,18 @@ func lbPersistenceProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_persistence_profile", "PUT", "/policy/api/v1/infra/lb-persistence-profiles/{lbPersistenceProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPoolsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPoolsTypes.go index 4e24b4c12..7235b6245 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPoolsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbPoolsTypes.go @@ -46,6 +46,8 @@ func lbPoolsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_pool_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_pool_id"] = "LbPoolId" @@ -64,14 +66,18 @@ func lbPoolsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-pools/{lbPoolId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPoolsGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbPoolsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_pool_id"] = bindings.NewStringType() fieldNameMap["lb_pool_id"] = "LbPoolId" paramsTypeMap["lb_pool_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbPoolsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-pools/{lbPoolId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPoolsListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbPoolsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbPoolsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-pools", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPoolsPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbPoolsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_pool_id"] = bindings.NewStringType() fields["lb_pool"] = bindings.NewReferenceType(model.LBPoolBindingType) fieldNameMap["lb_pool_id"] = "LbPoolId" @@ -230,14 +250,18 @@ func lbPoolsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_pool", "PATCH", "/policy/api/v1/infra/lb-pools/{lbPoolId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbPoolsUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbPoolsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_pool_id"] = bindings.NewStringType() fields["lb_pool"] = bindings.NewReferenceType(model.LBPoolBindingType) fieldNameMap["lb_pool_id"] = "LbPoolId" @@ -279,14 +305,18 @@ func lbPoolsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_pool", "PUT", "/policy/api/v1/infra/lb-pools/{lbPoolId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServerSslProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServerSslProfilesTypes.go index 1cfbceef6..3353416fb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServerSslProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServerSslProfilesTypes.go @@ -46,6 +46,8 @@ func lbServerSslProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_server_ssl_profile_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_server_ssl_profile_id"] = "LbServerSslProfileId" @@ -64,14 +66,18 @@ func lbServerSslProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-server-ssl-profiles/{lbServerSslProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServerSslProfilesGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbServerSslProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_server_ssl_profile_id"] = bindings.NewStringType() fieldNameMap["lb_server_ssl_profile_id"] = "LbServerSslProfileId" paramsTypeMap["lb_server_ssl_profile_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbServerSslProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-server-ssl-profiles/{lbServerSslProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServerSslProfilesListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbServerSslProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbServerSslProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-server-ssl-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServerSslProfilesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbServerSslProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_server_ssl_profile_id"] = bindings.NewStringType() fields["lb_server_ssl_profile"] = bindings.NewReferenceType(model.LBServerSslProfileBindingType) fieldNameMap["lb_server_ssl_profile_id"] = "LbServerSslProfileId" @@ -230,14 +250,18 @@ func lbServerSslProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_server_ssl_profile", "PATCH", "/policy/api/v1/infra/lb-server-ssl-profiles/{lbServerSslProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServerSslProfilesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbServerSslProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_server_ssl_profile_id"] = bindings.NewStringType() fields["lb_server_ssl_profile"] = bindings.NewReferenceType(model.LBServerSslProfileBindingType) fieldNameMap["lb_server_ssl_profile_id"] = "LbServerSslProfileId" @@ -279,14 +305,18 @@ func lbServerSslProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_server_ssl_profile", "PUT", "/policy/api/v1/infra/lb-server-ssl-profiles/{lbServerSslProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServiceUsageSummaryTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServiceUsageSummaryTypes.go index 16dd2080d..cd2f6b66f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServiceUsageSummaryTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServiceUsageSummaryTypes.go @@ -44,6 +44,8 @@ func lbServiceUsageSummaryGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["include_usages"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["include_usages"] = "IncludeUsages" paramsTypeMap["include_usages"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -57,14 +59,18 @@ func lbServiceUsageSummaryGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-service-usage-summary", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServicesTypes.go index ba6e9942d..f951ff6d8 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbServicesTypes.go @@ -46,6 +46,8 @@ func lbServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_service_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_service_id"] = "LbServiceId" @@ -64,14 +66,18 @@ func lbServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-services/{lbServiceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServicesGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_service_id"] = bindings.NewStringType() fieldNameMap["lb_service_id"] = "LbServiceId" paramsTypeMap["lb_service_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-services/{lbServiceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServicesListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServicesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_service_id"] = bindings.NewStringType() fields["lb_service"] = bindings.NewReferenceType(model.LBServiceBindingType) fieldNameMap["lb_service_id"] = "LbServiceId" @@ -230,14 +250,18 @@ func lbServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_service", "PATCH", "/policy/api/v1/infra/lb-services/{lbServiceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbServicesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_service_id"] = bindings.NewStringType() fields["lb_service"] = bindings.NewReferenceType(model.LBServiceBindingType) fieldNameMap["lb_service_id"] = "LbServiceId" @@ -279,14 +305,18 @@ func lbServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_service", "PUT", "/policy/api/v1/infra/lb-services/{lbServiceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbSslCiphersAndProtocolsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbSslCiphersAndProtocolsTypes.go index 1b93c96f0..844c4422e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbSslCiphersAndProtocolsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbSslCiphersAndProtocolsTypes.go @@ -54,6 +54,8 @@ func lbSslCiphersAndProtocolsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -87,14 +89,18 @@ func lbSslCiphersAndProtocolsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-ssl-ciphers-and-protocols", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbVirtualServersTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbVirtualServersTypes.go index 2e391cba7..c07b5a032 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbVirtualServersTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/LbVirtualServersTypes.go @@ -46,6 +46,8 @@ func lbVirtualServersDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_virtual_server_id"] = bindings.NewStringType() fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["lb_virtual_server_id"] = "LbVirtualServerId" @@ -64,14 +66,18 @@ func lbVirtualServersDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/lb-virtual-servers/{lbVirtualServerId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbVirtualServersGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func lbVirtualServersGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_virtual_server_id"] = bindings.NewStringType() fieldNameMap["lb_virtual_server_id"] = "LbVirtualServerId" paramsTypeMap["lb_virtual_server_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func lbVirtualServersGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-virtual-servers/{lbVirtualServerId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbVirtualServersListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func lbVirtualServersListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func lbVirtualServersListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/lb-virtual-servers", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbVirtualServersPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func lbVirtualServersPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_virtual_server_id"] = bindings.NewStringType() fields["lb_virtual_server"] = bindings.NewReferenceType(model.LBVirtualServerBindingType) fieldNameMap["lb_virtual_server_id"] = "LbVirtualServerId" @@ -230,14 +250,18 @@ func lbVirtualServersPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_virtual_server", "PATCH", "/policy/api/v1/infra/lb-virtual-servers/{lbVirtualServerId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func lbVirtualServersUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func lbVirtualServersUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["lb_virtual_server_id"] = bindings.NewStringType() fields["lb_virtual_server"] = bindings.NewReferenceType(model.LBVirtualServerBindingType) fieldNameMap["lb_virtual_server_id"] = "LbVirtualServerId" @@ -279,14 +305,18 @@ func lbVirtualServersUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "lb_virtual_server", "PUT", "/policy/api/v1/infra/lb-virtual-servers/{lbVirtualServerId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesClient.go index f3ae9fb55..8ded64444 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesClient.go @@ -19,13 +19,12 @@ type MacDiscoveryProfilesClient interface { // API will delete Mac Discovery profile. // // @param macDiscoveryProfileIdParam Mac Discovery Profile ID (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(macDiscoveryProfileIdParam string, overrideParam *bool) error + Delete(macDiscoveryProfileIdParam string) error // API will get Mac Discovery profile. // @@ -58,24 +57,22 @@ type MacDiscoveryProfilesClient interface { // // @param macDiscoveryProfileIdParam Mac Discovery Profile ID (required) // @param macDiscoveryProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile, overrideParam *bool) error + Patch(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile) error // API will update Mac Discovery profile. // // @param macDiscoveryProfileIdParam Mac Discovery Profile ID (required) // @param macDiscoveryProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.MacDiscoveryProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile, overrideParam *bool) (model.MacDiscoveryProfile, error) + Update(macDiscoveryProfileIdParam string, macDiscoveryProfileParam model.MacDiscoveryProfile) (model.MacDiscoveryProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesTypes.go index 61af7bdd8..0cbde40b0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MacDiscoveryProfilesTypes.go @@ -28,9 +28,7 @@ func macDiscoveryProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["mac_discovery_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["mac_discovery_profile_id"] = "MacDiscoveryProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func macDiscoveryProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["mac_discovery_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["mac_discovery_profile_id"] = "MacDiscoveryProfileId" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["mac_discovery_profile_id"] = bindings.NewStringType() paramsTypeMap["macDiscoveryProfileId"] = bindings.NewStringType() pathParams["mac_discovery_profile_id"] = "macDiscoveryProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func macDiscoveryProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/mac-discovery-profiles/{macDiscoveryProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func macDiscoveryProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func macDiscoveryProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["mac_discovery_profile_id"] = bindings.NewStringType() fieldNameMap["mac_discovery_profile_id"] = "MacDiscoveryProfileId" paramsTypeMap["mac_discovery_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func macDiscoveryProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/mac-discovery-profiles/{macDiscoveryProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func macDiscoveryProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func macDiscoveryProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func macDiscoveryProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/mac-discovery-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func macDiscoveryProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func macDiscoveryProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["mac_discovery_profile_id"] = bindings.NewStringType() fields["mac_discovery_profile"] = bindings.NewReferenceType(model.MacDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["mac_discovery_profile_id"] = "MacDiscoveryProfileId" fieldNameMap["mac_discovery_profile"] = "MacDiscoveryProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func macDiscoveryProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["mac_discovery_profile_id"] = bindings.NewStringType() fields["mac_discovery_profile"] = bindings.NewReferenceType(model.MacDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["mac_discovery_profile_id"] = "MacDiscoveryProfileId" fieldNameMap["mac_discovery_profile"] = "MacDiscoveryProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["mac_discovery_profile_id"] = bindings.NewStringType() paramsTypeMap["mac_discovery_profile"] = bindings.NewReferenceType(model.MacDiscoveryProfileBindingType) paramsTypeMap["macDiscoveryProfileId"] = bindings.NewStringType() pathParams["mac_discovery_profile_id"] = "macDiscoveryProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func macDiscoveryProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "mac_discovery_profile", "PATCH", "/policy/api/v1/infra/mac-discovery-profiles/{macDiscoveryProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func macDiscoveryProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func macDiscoveryProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["mac_discovery_profile_id"] = bindings.NewStringType() fields["mac_discovery_profile"] = bindings.NewReferenceType(model.MacDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["mac_discovery_profile_id"] = "MacDiscoveryProfileId" fieldNameMap["mac_discovery_profile"] = "MacDiscoveryProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func macDiscoveryProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["mac_discovery_profile_id"] = bindings.NewStringType() fields["mac_discovery_profile"] = bindings.NewReferenceType(model.MacDiscoveryProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["mac_discovery_profile_id"] = "MacDiscoveryProfileId" fieldNameMap["mac_discovery_profile"] = "MacDiscoveryProfile" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["mac_discovery_profile_id"] = bindings.NewStringType() paramsTypeMap["mac_discovery_profile"] = bindings.NewReferenceType(model.MacDiscoveryProfileBindingType) paramsTypeMap["macDiscoveryProfileId"] = bindings.NewStringType() pathParams["mac_discovery_profile_id"] = "macDiscoveryProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func macDiscoveryProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "mac_discovery_profile", "PUT", "/policy/api/v1/infra/mac-discovery-profiles/{macDiscoveryProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MetadataProxiesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MetadataProxiesTypes.go index 94515fc23..c7c60ac1f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MetadataProxiesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/MetadataProxiesTypes.go @@ -44,6 +44,8 @@ func metadataProxiesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["metadata_proxy_id"] = bindings.NewStringType() fieldNameMap["metadata_proxy_id"] = "MetadataProxyId" paramsTypeMap["metadata_proxy_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func metadataProxiesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/metadata-proxies/{metadataProxyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func metadataProxiesGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func metadataProxiesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["metadata_proxy_id"] = bindings.NewStringType() fieldNameMap["metadata_proxy_id"] = "MetadataProxyId" paramsTypeMap["metadata_proxy_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func metadataProxiesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/metadata-proxies/{metadataProxyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func metadataProxiesListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func metadataProxiesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func metadataProxiesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/metadata-proxies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func metadataProxiesPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func metadataProxiesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["metadata_proxy_id"] = bindings.NewStringType() fields["metadata_proxy_config"] = bindings.NewReferenceType(model.MetadataProxyConfigBindingType) fieldNameMap["metadata_proxy_id"] = "MetadataProxyId" @@ -224,14 +244,18 @@ func metadataProxiesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "metadata_proxy_config", "PATCH", "/policy/api/v1/infra/metadata-proxies/{metadataProxyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func metadataProxiesUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func metadataProxiesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["metadata_proxy_id"] = bindings.NewStringType() fields["metadata_proxy_config"] = bindings.NewReferenceType(model.MetadataProxyConfigBindingType) fieldNameMap["metadata_proxy_id"] = "MetadataProxyId" @@ -273,14 +299,18 @@ func metadataProxiesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "metadata_proxy_config", "PUT", "/policy/api/v1/infra/metadata-proxies/{metadataProxyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OverriddenResourcesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OverriddenResourcesTypes.go index 507e8b8bd..ebd8442a5 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OverriddenResourcesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OverriddenResourcesTypes.go @@ -46,6 +46,8 @@ func overriddenResourcesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["intent_path"] = bindings.NewOptionalType(bindings.NewStringType()) fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" @@ -63,14 +65,18 @@ func overriddenResourcesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/overridden-resources", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PartnerServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PartnerServicesTypes.go index 16790aedb..6793399cd 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PartnerServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PartnerServicesTypes.go @@ -44,6 +44,8 @@ func partnerServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_name"] = bindings.NewStringType() fieldNameMap["service_name"] = "ServiceName" paramsTypeMap["service_name"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func partnerServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/partner-services/{serviceName}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func partnerServicesListInputType() bindings.StructType { @@ -98,6 +104,8 @@ func partnerServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -131,14 +139,18 @@ func partnerServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/partner-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpConfigurationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimProfilesClient.go similarity index 66% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpConfigurationsClient.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimProfilesClient.go index 2a8d15629..9921c4152 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpConfigurationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimProfilesClient.go @@ -4,7 +4,7 @@ // Code generated. DO NOT EDIT. /* - * Interface file for service: IgmpConfigurations + * Interface file for service: PimProfiles * Used by client-side stubs. */ @@ -14,30 +14,30 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" ) -type IgmpConfigurationsClient interface { +type PimProfilesClient interface { - // Delete Igmp Config. + // Delete Pim Profile. // - // @param igmpConfigIdParam igmp config id (required) + // @param pimProfileIdParam pim profile id (required) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(igmpConfigIdParam string) error + Delete(pimProfileIdParam string) error - // Read Igmp Config. + // Read Pim Profile. // - // @param igmpConfigIdParam igmp config id (required) - // @return com.vmware.nsx_policy.model.PolicyIgmpConfig + // @param pimProfileIdParam pim profile id (required) + // @return com.vmware.nsx_policy.model.PolicyPimProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Get(igmpConfigIdParam string) (model.PolicyIgmpConfig, error) + Get(pimProfileIdParam string) (model.PolicyPimProfile, error) - // List all igmp config. + // List all pim profile. // // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) // @param includeMarkForDeleteObjectsParam Include objects that are marked for deletion in results (optional, default to false) @@ -45,34 +45,34 @@ type IgmpConfigurationsClient interface { // @param pageSizeParam Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) // @param sortAscendingParam (optional) // @param sortByParam Field by which records are sorted (optional) - // @return com.vmware.nsx_policy.model.PolicyIgmpConfigListResult + // @return com.vmware.nsx_policy.model.PolicyPimProfileListResult // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyIgmpConfigListResult, error) + List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.PolicyPimProfileListResult, error) - // Create a igmp config with the igmp-config-id is not already present, otherwise update the igmp config. + // Create a pim profile with the pim-profile-id is not already present, otherwise update the pim profile. // - // @param igmpConfigIdParam igmp config id (required) - // @param policyIgmpConfigParam (required) + // @param pimProfileIdParam pim profile id (required) + // @param policyPimProfileParam (required) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(igmpConfigIdParam string, policyIgmpConfigParam model.PolicyIgmpConfig) error + Patch(pimProfileIdParam string, policyPimProfileParam model.PolicyPimProfile) error - // Create or update igmp config. + // Create or update pim profile. // - // @param igmpConfigIdParam igmp config id (required) - // @param policyIgmpConfigParam (required) - // @return com.vmware.nsx_policy.model.PolicyIgmpConfig + // @param pimProfileIdParam pim profile id (required) + // @param policyPimProfileParam (required) + // @return com.vmware.nsx_policy.model.PolicyPimProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(igmpConfigIdParam string, policyIgmpConfigParam model.PolicyIgmpConfig) (model.PolicyIgmpConfig, error) + Update(pimProfileIdParam string, policyPimProfileParam model.PolicyPimProfile) (model.PolicyPimProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpConfigurationsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimProfilesTypes.go similarity index 54% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpConfigurationsTypes.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimProfilesTypes.go index 881245ffd..fd214fe63 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/IgmpConfigurationsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PimProfilesTypes.go @@ -4,7 +4,7 @@ // Code generated. DO NOT EDIT. /* - * Data type definitions file for service: IgmpConfigurations. + * Data type definitions file for service: PimProfiles. * Includes binding types of a structures and enumerations defined in the service. * Shared by client-side stubs and server-side skeletons to ensure type * compatibility. @@ -24,31 +24,33 @@ import ( -func igmpConfigurationsDeleteInputType() bindings.StructType { +func pimProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["igmp_config_id"] = bindings.NewStringType() - fieldNameMap["igmp_config_id"] = "IgmpConfigId" + fields["pim_profile_id"] = bindings.NewStringType() + fieldNameMap["pim_profile_id"] = "PimProfileId" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func igmpConfigurationsDeleteOutputType() bindings.BindingType { +func pimProfilesDeleteOutputType() bindings.BindingType { return bindings.NewVoidType() } -func igmpConfigurationsDeleteRestMetadata() protocol.OperationRestMetadata { +func pimProfilesDeleteRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["igmp_config_id"] = bindings.NewStringType() - fieldNameMap["igmp_config_id"] = "IgmpConfigId" - paramsTypeMap["igmp_config_id"] = bindings.NewStringType() - paramsTypeMap["igmpConfigId"] = bindings.NewStringType() - pathParams["igmp_config_id"] = "igmpConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["pim_profile_id"] = bindings.NewStringType() + fieldNameMap["pim_profile_id"] = "PimProfileId" + paramsTypeMap["pim_profile_id"] = bindings.NewStringType() + paramsTypeMap["pimProfileId"] = bindings.NewStringType() + pathParams["pim_profile_id"] = "pimProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -58,41 +60,47 @@ func igmpConfigurationsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", - "/policy/api/v1/infra/igmp-configurations/{igmpConfigId}", + "/policy/api/v1/infra/pim-profiles/{pimProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func igmpConfigurationsGetInputType() bindings.StructType { +func pimProfilesGetInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["igmp_config_id"] = bindings.NewStringType() - fieldNameMap["igmp_config_id"] = "IgmpConfigId" + fields["pim_profile_id"] = bindings.NewStringType() + fieldNameMap["pim_profile_id"] = "PimProfileId" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func igmpConfigurationsGetOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) +func pimProfilesGetOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.PolicyPimProfileBindingType) } -func igmpConfigurationsGetRestMetadata() protocol.OperationRestMetadata { +func pimProfilesGetRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["igmp_config_id"] = bindings.NewStringType() - fieldNameMap["igmp_config_id"] = "IgmpConfigId" - paramsTypeMap["igmp_config_id"] = bindings.NewStringType() - paramsTypeMap["igmpConfigId"] = bindings.NewStringType() - pathParams["igmp_config_id"] = "igmpConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["pim_profile_id"] = bindings.NewStringType() + fieldNameMap["pim_profile_id"] = "PimProfileId" + paramsTypeMap["pim_profile_id"] = bindings.NewStringType() + paramsTypeMap["pimProfileId"] = bindings.NewStringType() + pathParams["pim_profile_id"] = "pimProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -102,17 +110,21 @@ func igmpConfigurationsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", - "/policy/api/v1/infra/igmp-configurations/{igmpConfigId}", + "/policy/api/v1/infra/pim-profiles/{pimProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func igmpConfigurationsListInputType() bindings.StructType { +func pimProfilesListInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -131,17 +143,19 @@ func igmpConfigurationsListInputType() bindings.StructType { return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func igmpConfigurationsListOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyIgmpConfigListResultBindingType) +func pimProfilesListOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.PolicyPimProfileListResultBindingType) } -func igmpConfigurationsListRestMetadata() protocol.OperationRestMetadata { +func pimProfilesListRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,46 +189,52 @@ func igmpConfigurationsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", - "/policy/api/v1/infra/igmp-configurations", + "/policy/api/v1/infra/pim-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func igmpConfigurationsPatchInputType() bindings.StructType { +func pimProfilesPatchInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["igmp_config_id"] = bindings.NewStringType() - fields["policy_igmp_config"] = bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) - fieldNameMap["igmp_config_id"] = "IgmpConfigId" - fieldNameMap["policy_igmp_config"] = "PolicyIgmpConfig" + fields["pim_profile_id"] = bindings.NewStringType() + fields["policy_pim_profile"] = bindings.NewReferenceType(model.PolicyPimProfileBindingType) + fieldNameMap["pim_profile_id"] = "PimProfileId" + fieldNameMap["policy_pim_profile"] = "PolicyPimProfile" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func igmpConfigurationsPatchOutputType() bindings.BindingType { +func pimProfilesPatchOutputType() bindings.BindingType { return bindings.NewVoidType() } -func igmpConfigurationsPatchRestMetadata() protocol.OperationRestMetadata { +func pimProfilesPatchRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["igmp_config_id"] = bindings.NewStringType() - fields["policy_igmp_config"] = bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) - fieldNameMap["igmp_config_id"] = "IgmpConfigId" - fieldNameMap["policy_igmp_config"] = "PolicyIgmpConfig" - paramsTypeMap["igmp_config_id"] = bindings.NewStringType() - paramsTypeMap["policy_igmp_config"] = bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) - paramsTypeMap["igmpConfigId"] = bindings.NewStringType() - pathParams["igmp_config_id"] = "igmpConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["pim_profile_id"] = bindings.NewStringType() + fields["policy_pim_profile"] = bindings.NewReferenceType(model.PolicyPimProfileBindingType) + fieldNameMap["pim_profile_id"] = "PimProfileId" + fieldNameMap["policy_pim_profile"] = "PolicyPimProfile" + paramsTypeMap["pim_profile_id"] = bindings.NewStringType() + paramsTypeMap["policy_pim_profile"] = bindings.NewReferenceType(model.PolicyPimProfileBindingType) + paramsTypeMap["pimProfileId"] = bindings.NewStringType() + pathParams["pim_profile_id"] = "pimProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -224,46 +244,52 @@ func igmpConfigurationsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", - "policy_igmp_config", + "policy_pim_profile", "PATCH", - "/policy/api/v1/infra/igmp-configurations/{igmpConfigId}", + "/policy/api/v1/infra/pim-profiles/{pimProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } -func igmpConfigurationsUpdateInputType() bindings.StructType { +func pimProfilesUpdateInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["igmp_config_id"] = bindings.NewStringType() - fields["policy_igmp_config"] = bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) - fieldNameMap["igmp_config_id"] = "IgmpConfigId" - fieldNameMap["policy_igmp_config"] = "PolicyIgmpConfig" + fields["pim_profile_id"] = bindings.NewStringType() + fields["policy_pim_profile"] = bindings.NewReferenceType(model.PolicyPimProfileBindingType) + fieldNameMap["pim_profile_id"] = "PimProfileId" + fieldNameMap["policy_pim_profile"] = "PolicyPimProfile" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func igmpConfigurationsUpdateOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) +func pimProfilesUpdateOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.PolicyPimProfileBindingType) } -func igmpConfigurationsUpdateRestMetadata() protocol.OperationRestMetadata { +func pimProfilesUpdateRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["igmp_config_id"] = bindings.NewStringType() - fields["policy_igmp_config"] = bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) - fieldNameMap["igmp_config_id"] = "IgmpConfigId" - fieldNameMap["policy_igmp_config"] = "PolicyIgmpConfig" - paramsTypeMap["igmp_config_id"] = bindings.NewStringType() - paramsTypeMap["policy_igmp_config"] = bindings.NewReferenceType(model.PolicyIgmpConfigBindingType) - paramsTypeMap["igmpConfigId"] = bindings.NewStringType() - pathParams["igmp_config_id"] = "igmpConfigId" + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["pim_profile_id"] = bindings.NewStringType() + fields["policy_pim_profile"] = bindings.NewReferenceType(model.PolicyPimProfileBindingType) + fieldNameMap["pim_profile_id"] = "PimProfileId" + fieldNameMap["policy_pim_profile"] = "PolicyPimProfile" + paramsTypeMap["pim_profile_id"] = bindings.NewStringType() + paramsTypeMap["policy_pim_profile"] = bindings.NewReferenceType(model.PolicyPimProfileBindingType) + paramsTypeMap["pimProfileId"] = bindings.NewStringType() + pathParams["pim_profile_id"] = "pimProfileId" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -273,14 +299,18 @@ func igmpConfigurationsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", - "policy_igmp_config", + "policy_pim_profile", "PUT", - "/policy/api/v1/infra/igmp-configurations/{igmpConfigId}", + "/policy/api/v1/infra/pim-profiles/{pimProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesClient.go index 8d1fe09e9..22d72a91e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesClient.go @@ -19,13 +19,12 @@ type PortMirroringProfilesClient interface { // API will delete port mirroring profile. Mirroring from source to destination ports will be stopped. // // @param portMirroringProfileIdParam Port Mirroring Profile Id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(portMirroringProfileIdParam string, overrideParam *bool) error + Delete(portMirroringProfileIdParam string) error // API will return details of port mirroring profile. // @@ -57,24 +56,22 @@ type PortMirroringProfilesClient interface { // // @param portMirroringProfileIdParam Port Mirroring Profile Id (required) // @param portMirroringProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile, overrideParam *bool) error + Patch(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile) error // Create or Replace port mirroring profile. Packets will be mirrored from source group, segment, port to destination group. Realized entities of this API can be found using the path of monitoring profile binding map that is used to apply this profile. // // @param portMirroringProfileIdParam Port Mirroring Profiles Id (required) // @param portMirroringProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.PortMirroringProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile, overrideParam *bool) (model.PortMirroringProfile, error) + Update(portMirroringProfileIdParam string, portMirroringProfileParam model.PortMirroringProfile) (model.PortMirroringProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesTypes.go index 3774b04ea..f65301a8d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/PortMirroringProfilesTypes.go @@ -28,9 +28,7 @@ func portMirroringProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["port_mirroring_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["port_mirroring_profile_id"] = "PortMirroringProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func portMirroringProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["port_mirroring_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["port_mirroring_profile_id"] = "PortMirroringProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["port_mirroring_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["portMirroringProfileId"] = bindings.NewStringType() pathParams["port_mirroring_profile_id"] = "portMirroringProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func portMirroringProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/port-mirroring-profiles/{portMirroringProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portMirroringProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func portMirroringProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["port_mirroring_profile_id"] = bindings.NewStringType() fieldNameMap["port_mirroring_profile_id"] = "PortMirroringProfileId" paramsTypeMap["port_mirroring_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func portMirroringProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/port-mirroring-profiles/{portMirroringProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portMirroringProfilesListInputType() bindings.StructType { @@ -146,6 +152,8 @@ func portMirroringProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -175,14 +183,18 @@ func portMirroringProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/port-mirroring-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portMirroringProfilesPatchInputType() bindings.StructType { @@ -190,10 +202,8 @@ func portMirroringProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["port_mirroring_profile_id"] = bindings.NewStringType() fields["port_mirroring_profile"] = bindings.NewReferenceType(model.PortMirroringProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["port_mirroring_profile_id"] = "PortMirroringProfileId" fieldNameMap["port_mirroring_profile"] = "PortMirroringProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -209,18 +219,16 @@ func portMirroringProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["port_mirroring_profile_id"] = bindings.NewStringType() fields["port_mirroring_profile"] = bindings.NewReferenceType(model.PortMirroringProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["port_mirroring_profile_id"] = "PortMirroringProfileId" fieldNameMap["port_mirroring_profile"] = "PortMirroringProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["port_mirroring_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["port_mirroring_profile"] = bindings.NewReferenceType(model.PortMirroringProfileBindingType) paramsTypeMap["portMirroringProfileId"] = bindings.NewStringType() pathParams["port_mirroring_profile_id"] = "portMirroringProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -230,14 +238,18 @@ func portMirroringProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "port_mirroring_profile", "PATCH", "/policy/api/v1/infra/port-mirroring-profiles/{portMirroringProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portMirroringProfilesUpdateInputType() bindings.StructType { @@ -245,10 +257,8 @@ func portMirroringProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["port_mirroring_profile_id"] = bindings.NewStringType() fields["port_mirroring_profile"] = bindings.NewReferenceType(model.PortMirroringProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["port_mirroring_profile_id"] = "PortMirroringProfileId" fieldNameMap["port_mirroring_profile"] = "PortMirroringProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -264,18 +274,16 @@ func portMirroringProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["port_mirroring_profile_id"] = bindings.NewStringType() fields["port_mirroring_profile"] = bindings.NewReferenceType(model.PortMirroringProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["port_mirroring_profile_id"] = "PortMirroringProfileId" fieldNameMap["port_mirroring_profile"] = "PortMirroringProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["port_mirroring_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["port_mirroring_profile"] = bindings.NewReferenceType(model.PortMirroringProfileBindingType) paramsTypeMap["portMirroringProfileId"] = bindings.NewStringType() pathParams["port_mirroring_profile_id"] = "portMirroringProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -285,14 +293,18 @@ func portMirroringProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "port_mirroring_profile", "PUT", "/policy/api/v1/infra/port-mirroring-profiles/{portMirroringProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesClient.go index 1527f47fd..6b8bea204 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesClient.go @@ -19,13 +19,12 @@ type QosProfilesClient interface { // API will delete QoS profile. // // @param qosProfileIdParam QoS profile Id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(qosProfileIdParam string, overrideParam *bool) error + Delete(qosProfileIdParam string) error // API will return details of QoS profile. // @@ -57,24 +56,22 @@ type QosProfilesClient interface { // // @param qosProfileIdParam QoS profile Id (required) // @param qosProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(qosProfileIdParam string, qosProfileParam model.QosProfile, overrideParam *bool) error + Patch(qosProfileIdParam string, qosProfileParam model.QosProfile) error // Create or Replace QoS profile. // // @param qosProfileIdParam QoS profile Id (required) // @param qosProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.QoSProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(qosProfileIdParam string, qosProfileParam model.QosProfile, overrideParam *bool) (model.QosProfile, error) + Update(qosProfileIdParam string, qosProfileParam model.QosProfile) (model.QosProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesTypes.go index 3a81471a5..11f839ff9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/QosProfilesTypes.go @@ -28,9 +28,7 @@ func qosProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["qos_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func qosProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["qosProfileId"] = bindings.NewStringType() pathParams["qos_profile_id"] = "qosProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func qosProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/qos-profiles/{qosProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func qosProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func qosProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() fieldNameMap["qos_profile_id"] = "QosProfileId" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func qosProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/qos-profiles/{qosProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func qosProfilesListInputType() bindings.StructType { @@ -146,6 +152,8 @@ func qosProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -175,14 +183,18 @@ func qosProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/qos-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func qosProfilesPatchInputType() bindings.StructType { @@ -190,10 +202,8 @@ func qosProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["qos_profile_id"] = bindings.NewStringType() fields["qos_profile"] = bindings.NewReferenceType(model.QosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["qos_profile"] = "QosProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -209,18 +219,16 @@ func qosProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() fields["qos_profile"] = bindings.NewReferenceType(model.QosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["qos_profile"] = "QosProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() paramsTypeMap["qos_profile"] = bindings.NewReferenceType(model.QosProfileBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["qosProfileId"] = bindings.NewStringType() pathParams["qos_profile_id"] = "qosProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -230,14 +238,18 @@ func qosProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "qos_profile", "PATCH", "/policy/api/v1/infra/qos-profiles/{qosProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func qosProfilesUpdateInputType() bindings.StructType { @@ -245,10 +257,8 @@ func qosProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["qos_profile_id"] = bindings.NewStringType() fields["qos_profile"] = bindings.NewReferenceType(model.QosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["qos_profile"] = "QosProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -264,18 +274,16 @@ func qosProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["qos_profile_id"] = bindings.NewStringType() fields["qos_profile"] = bindings.NewReferenceType(model.QosProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["qos_profile_id"] = "QosProfileId" fieldNameMap["qos_profile"] = "QosProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["qos_profile_id"] = bindings.NewStringType() paramsTypeMap["qos_profile"] = bindings.NewReferenceType(model.QosProfileBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["qosProfileId"] = bindings.NewStringType() pathParams["qos_profile_id"] = "qosProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -285,14 +293,18 @@ func qosProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "qos_profile", "PUT", "/policy/api/v1/infra/qos-profiles/{qosProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ReactionsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ReactionsTypes.go index 411ccc78a..4fdfb1f4b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ReactionsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ReactionsTypes.go @@ -44,6 +44,8 @@ func reactionsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["reaction_id"] = bindings.NewStringType() fieldNameMap["reaction_id"] = "ReactionId" paramsTypeMap["reaction_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func reactionsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/reactions/{reactionId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func reactionsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func reactionsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["reaction_id"] = bindings.NewStringType() fieldNameMap["reaction_id"] = "ReactionId" paramsTypeMap["reaction_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func reactionsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/reactions/{reactionId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func reactionsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func reactionsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func reactionsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/reactions", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func reactionsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func reactionsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["reaction_id"] = bindings.NewStringType() fields["reaction"] = bindings.NewReferenceType(model.ReactionBindingType) fieldNameMap["reaction_id"] = "ReactionId" @@ -224,14 +244,18 @@ func reactionsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "reaction", "PATCH", "/policy/api/v1/infra/reactions/{reactionId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func reactionsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func reactionsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["reaction_id"] = bindings.NewStringType() fields["reaction"] = bindings.NewReferenceType(model.ReactionBindingType) fieldNameMap["reaction_id"] = "ReactionId" @@ -273,14 +299,18 @@ func reactionsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "reaction", "PUT", "/policy/api/v1/infra/reactions/{reactionId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesClient.go index b0c98e03d..fa1a1884d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesClient.go @@ -19,13 +19,12 @@ type SegmentSecurityProfilesClient interface { // API will delete segment security profile with the given id. // // @param segmentSecurityProfileIdParam Segment security profile id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(segmentSecurityProfileIdParam string, overrideParam *bool) error + Delete(segmentSecurityProfileIdParam string) error // API will return details of the segment security profile with given id. If the profile does not exist, it will return 404. // @@ -58,24 +57,22 @@ type SegmentSecurityProfilesClient interface { // // @param segmentSecurityProfileIdParam Segment security profile id (required) // @param segmentSecurityProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile, overrideParam *bool) error + Patch(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile) error // Create or replace a segment security profile // // @param segmentSecurityProfileIdParam Segment security profile id (required) // @param segmentSecurityProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.SegmentSecurityProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile, overrideParam *bool) (model.SegmentSecurityProfile, error) + Update(segmentSecurityProfileIdParam string, segmentSecurityProfileParam model.SegmentSecurityProfile) (model.SegmentSecurityProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesTypes.go index 2e95d836a..3b4ac28de 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentSecurityProfilesTypes.go @@ -28,9 +28,7 @@ func segmentSecurityProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["segment_security_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["segment_security_profile_id"] = "SegmentSecurityProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func segmentSecurityProfilesDeleteRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_security_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["segment_security_profile_id"] = "SegmentSecurityProfileId" - fieldNameMap["override"] = "Override" paramsTypeMap["segment_security_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["segmentSecurityProfileId"] = bindings.NewStringType() pathParams["segment_security_profile_id"] = "segmentSecurityProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func segmentSecurityProfilesDeleteRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segment-security-profiles/{segmentSecurityProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func segmentSecurityProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_security_profile_id"] = bindings.NewStringType() fieldNameMap["segment_security_profile_id"] = "SegmentSecurityProfileId" paramsTypeMap["segment_security_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func segmentSecurityProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segment-security-profiles/{segmentSecurityProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func segmentSecurityProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func segmentSecurityProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segment-security-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func segmentSecurityProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["segment_security_profile_id"] = bindings.NewStringType() fields["segment_security_profile"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["segment_security_profile_id"] = "SegmentSecurityProfileId" fieldNameMap["segment_security_profile"] = "SegmentSecurityProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func segmentSecurityProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_security_profile_id"] = bindings.NewStringType() fields["segment_security_profile"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["segment_security_profile_id"] = "SegmentSecurityProfileId" fieldNameMap["segment_security_profile"] = "SegmentSecurityProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["segment_security_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["segment_security_profile"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingType) paramsTypeMap["segmentSecurityProfileId"] = bindings.NewStringType() pathParams["segment_security_profile_id"] = "segmentSecurityProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func segmentSecurityProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_security_profile", "PATCH", "/policy/api/v1/infra/segment-security-profiles/{segmentSecurityProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func segmentSecurityProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["segment_security_profile_id"] = bindings.NewStringType() fields["segment_security_profile"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["segment_security_profile_id"] = "SegmentSecurityProfileId" fieldNameMap["segment_security_profile"] = "SegmentSecurityProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func segmentSecurityProfilesUpdateRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_security_profile_id"] = bindings.NewStringType() fields["segment_security_profile"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["segment_security_profile_id"] = "SegmentSecurityProfileId" fieldNameMap["segment_security_profile"] = "SegmentSecurityProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["segment_security_profile_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["segment_security_profile"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingType) paramsTypeMap["segmentSecurityProfileId"] = bindings.NewStringType() pathParams["segment_security_profile_id"] = "segmentSecurityProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func segmentSecurityProfilesUpdateRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_security_profile", "PUT", "/policy/api/v1/infra/segment-security-profiles/{segmentSecurityProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsClient.go index 818d34dba..ea06bf0a7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsClient.go @@ -74,6 +74,17 @@ type SegmentsClient interface { // @throws NotFound Not Found Patch(segmentIdParam string, segmentParam model.Segment) error + // If segment with the segment-id is not already present, create a new segment. If it already exists, update the segment with specified attributes. Force parameter is required when workload connectivity is indirectly impacted with the current update. + // + // @param segmentIdParam Segment ID (required) + // @param segmentParam (required) + // @throws InvalidRequest Bad Request, Precondition Failed + // @throws Unauthorized Forbidden + // @throws ServiceUnavailable Service Unavailable + // @throws InternalServerError Internal Server Error + // @throws NotFound Not Found + Patch0(segmentIdParam string, segmentParam model.Segment) error + // If segment with the segment-id is not already present, create a new segment. If it already exists, replace the segment with this object. // // @param segmentIdParam Segment ID (required) @@ -85,4 +96,16 @@ type SegmentsClient interface { // @throws InternalServerError Internal Server Error // @throws NotFound Not Found Update(segmentIdParam string, segmentParam model.Segment) (model.Segment, error) + + // If segment with the segment-id is not already present, create a new segment. If it already exists, replace the segment with this object. Force parameter is required when workload connectivity is indirectly impacted with the current replacement. + // + // @param segmentIdParam Segment ID (required) + // @param segmentParam (required) + // @return com.vmware.nsx_policy.model.Segment + // @throws InvalidRequest Bad Request, Precondition Failed + // @throws Unauthorized Forbidden + // @throws ServiceUnavailable Service Unavailable + // @throws InternalServerError Internal Server Error + // @throws NotFound Not Found + Update0(segmentIdParam string, segmentParam model.Segment) (model.Segment, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsTypes.go index 0f9154503..b478f5f1a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SegmentsTypes.go @@ -44,6 +44,8 @@ func segmentsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" paramsTypeMap["segment_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func segmentsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/{segmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsDelete0InputType() bindings.StructType { @@ -88,6 +94,8 @@ func segmentsDelete0RestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" paramsTypeMap["segment_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func segmentsDelete0RestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "force=true", "", "DELETE", "/policy/api/v1/infra/segments/{segmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsGetInputType() bindings.StructType { @@ -132,6 +144,8 @@ func segmentsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" paramsTypeMap["segment_id"] = bindings.NewStringType() @@ -146,14 +160,18 @@ func segmentsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsListInputType() bindings.StructType { @@ -186,6 +204,8 @@ func segmentsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -219,14 +239,18 @@ func segmentsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsPatchInputType() bindings.StructType { @@ -251,6 +275,8 @@ func segmentsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) fieldNameMap["segment_id"] = "SegmentId" @@ -268,14 +294,73 @@ func segmentsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment", "PATCH", "/policy/api/v1/infra/segments/{segmentId}", + "", + resultHeaders, + 204, + "", + errorHeaders, + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) +} + +func segmentsPatch0InputType() bindings.StructType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["segment_id"] = bindings.NewStringType() + fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) + fieldNameMap["segment_id"] = "SegmentId" + fieldNameMap["segment"] = "Segment" + var validators = []bindings.Validator{} + return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) +} + +func segmentsPatch0OutputType() bindings.BindingType { + return bindings.NewVoidType() +} + +func segmentsPatch0RestMetadata() protocol.OperationRestMetadata { + fields := map[string]bindings.BindingType{} + fieldNameMap := map[string]string{} + paramsTypeMap := map[string]bindings.BindingType{} + pathParams := map[string]string{} + queryParams := map[string]string{} + headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["segment_id"] = bindings.NewStringType() + fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) + fieldNameMap["segment_id"] = "SegmentId" + fieldNameMap["segment"] = "Segment" + paramsTypeMap["segment_id"] = bindings.NewStringType() + paramsTypeMap["segment"] = bindings.NewReferenceType(model.SegmentBindingType) + paramsTypeMap["segmentId"] = bindings.NewStringType() + pathParams["segment_id"] = "segmentId" + resultHeaders := map[string]string{} + errorHeaders := map[string]string{} + return protocol.NewOperationRestMetadata( + fields, + fieldNameMap, + paramsTypeMap, + pathParams, + queryParams, + headerParams, + dispatchHeaderParams, + bodyFieldsMap, + "force=true", + "segment", + "PATCH", + "/policy/api/v1/infra/segments/{segmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsUpdateInputType() bindings.StructType { @@ -300,6 +385,8 @@ func segmentsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) fieldNameMap["segment_id"] = "SegmentId" @@ -317,14 +404,73 @@ func segmentsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment", "PUT", "/policy/api/v1/infra/segments/{segmentId}", + "", resultHeaders, 200, + "", + errorHeaders, + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) +} + +func segmentsUpdate0InputType() bindings.StructType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["segment_id"] = bindings.NewStringType() + fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) + fieldNameMap["segment_id"] = "SegmentId" + fieldNameMap["segment"] = "Segment" + var validators = []bindings.Validator{} + return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) +} + +func segmentsUpdate0OutputType() bindings.BindingType { + return bindings.NewReferenceType(model.SegmentBindingType) +} + +func segmentsUpdate0RestMetadata() protocol.OperationRestMetadata { + fields := map[string]bindings.BindingType{} + fieldNameMap := map[string]string{} + paramsTypeMap := map[string]bindings.BindingType{} + pathParams := map[string]string{} + queryParams := map[string]string{} + headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["segment_id"] = bindings.NewStringType() + fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) + fieldNameMap["segment_id"] = "SegmentId" + fieldNameMap["segment"] = "Segment" + paramsTypeMap["segment_id"] = bindings.NewStringType() + paramsTypeMap["segment"] = bindings.NewReferenceType(model.SegmentBindingType) + paramsTypeMap["segmentId"] = bindings.NewStringType() + pathParams["segment_id"] = "segmentId" + resultHeaders := map[string]string{} + errorHeaders := map[string]string{} + return protocol.NewOperationRestMetadata( + fields, + fieldNameMap, + paramsTypeMap, + pathParams, + queryParams, + headerParams, + dispatchHeaderParams, + bodyFieldsMap, + "force=true", + "segment", + "PUT", + "/policy/api/v1/infra/segments/{segmentId}", + "", + resultHeaders, + 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceChainsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceChainsTypes.go index b3624b223..caf8c3c0a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceChainsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceChainsTypes.go @@ -44,6 +44,8 @@ func serviceChainsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_chain_id"] = bindings.NewStringType() fieldNameMap["service_chain_id"] = "ServiceChainId" paramsTypeMap["service_chain_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func serviceChainsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/service-chains/{serviceChainId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceChainsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func serviceChainsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_chain_id"] = bindings.NewStringType() fieldNameMap["service_chain_id"] = "ServiceChainId" paramsTypeMap["service_chain_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func serviceChainsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/service-chains/{serviceChainId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceChainsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func serviceChainsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func serviceChainsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/service-chains", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceChainsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func serviceChainsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_chain_id"] = bindings.NewStringType() fields["policy_service_chain"] = bindings.NewReferenceType(model.PolicyServiceChainBindingType) fieldNameMap["service_chain_id"] = "ServiceChainId" @@ -224,14 +244,18 @@ func serviceChainsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_service_chain", "PATCH", "/policy/api/v1/infra/service-chains/{serviceChainId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceChainsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func serviceChainsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_chain_id"] = bindings.NewStringType() fields["policy_service_chain"] = bindings.NewReferenceType(model.PolicyServiceChainBindingType) fieldNameMap["service_chain_id"] = "ServiceChainId" @@ -273,14 +299,18 @@ func serviceChainsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_service_chain", "PUT", "/policy/api/v1/infra/service-chains/{serviceChainId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceReferencesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceReferencesTypes.go index bf98f50b1..f4ebeb4be 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceReferencesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServiceReferencesTypes.go @@ -46,6 +46,8 @@ func serviceReferencesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_reference_id"] = bindings.NewStringType() fields["cascade"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["service_reference_id"] = "ServiceReferenceId" @@ -64,14 +66,18 @@ func serviceReferencesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/service-references/{serviceReferenceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceReferencesGetInputType() bindings.StructType { @@ -94,6 +100,8 @@ func serviceReferencesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_reference_id"] = bindings.NewStringType() fieldNameMap["service_reference_id"] = "ServiceReferenceId" paramsTypeMap["service_reference_id"] = bindings.NewStringType() @@ -108,14 +116,18 @@ func serviceReferencesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/service-references/{serviceReferenceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceReferencesListInputType() bindings.StructType { @@ -148,6 +160,8 @@ func serviceReferencesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +195,18 @@ func serviceReferencesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/service-references", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceReferencesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func serviceReferencesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_reference_id"] = bindings.NewStringType() fields["service_reference"] = bindings.NewReferenceType(model.ServiceReferenceBindingType) fieldNameMap["service_reference_id"] = "ServiceReferenceId" @@ -230,14 +250,18 @@ func serviceReferencesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service_reference", "PATCH", "/policy/api/v1/infra/service-references/{serviceReferenceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceReferencesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func serviceReferencesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_reference_id"] = bindings.NewStringType() fields["service_reference"] = bindings.NewReferenceType(model.ServiceReferenceBindingType) fieldNameMap["service_reference_id"] = "ServiceReferenceId" @@ -279,14 +305,18 @@ func serviceReferencesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service_reference", "PUT", "/policy/api/v1/infra/service-references/{serviceReferenceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServicesTypes.go index 445118a21..5c70e3250 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ServicesTypes.go @@ -44,6 +44,8 @@ func servicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_id"] = bindings.NewStringType() fieldNameMap["service_id"] = "ServiceId" paramsTypeMap["service_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func servicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func servicesGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func servicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_id"] = bindings.NewStringType() fieldNameMap["service_id"] = "ServiceId" paramsTypeMap["service_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func servicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func servicesListInputType() bindings.StructType { @@ -144,6 +156,8 @@ func servicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["default_service"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -181,14 +195,18 @@ func servicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func servicesPatchInputType() bindings.StructType { @@ -213,6 +231,8 @@ func servicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_id"] = bindings.NewStringType() fields["service"] = bindings.NewReferenceType(model.ServiceBindingType) fieldNameMap["service_id"] = "ServiceId" @@ -230,14 +250,18 @@ func servicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service", "PATCH", "/policy/api/v1/infra/services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func servicesUpdateInputType() bindings.StructType { @@ -262,6 +286,8 @@ func servicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_id"] = bindings.NewStringType() fields["service"] = bindings.NewReferenceType(model.ServiceBindingType) fieldNameMap["service_id"] = "ServiceId" @@ -279,14 +305,18 @@ func servicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service", "PUT", "/policy/api/v1/infra/services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OnboardingCheckCompatibilityClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SiteClient.go similarity index 53% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OnboardingCheckCompatibilityClient.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SiteClient.go index 6de943d83..07d71f5e1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OnboardingCheckCompatibilityClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SiteClient.go @@ -4,7 +4,7 @@ // Code generated. DO NOT EDIT. /* - * Interface file for service: OnboardingCheckCompatibility + * Interface file for service: Site * Used by client-side stubs. */ @@ -14,16 +14,14 @@ import ( "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" ) -type OnboardingCheckCompatibilityClient interface { +type SiteClient interface { - // Create or fully replace a Site under Infra. Revision is optional for creation and required for update. - // - // @param siteNodeConnectionInfoParam (required) - // @return com.vmware.nsx_policy.model.CompatibilityCheckResult + // Submit site offboarding request. + // @return com.vmware.nsx_policy.model.SiteOffBoardingState // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Create(siteNodeConnectionInfoParam model.SiteNodeConnectionInfo) (model.CompatibilityCheckResult, error) + Offboard() (model.SiteOffBoardingState, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OnboardingCheckCompatibilityTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SiteTypes.go similarity index 56% rename from vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OnboardingCheckCompatibilityTypes.go rename to vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SiteTypes.go index ca1030400..ea6a95523 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/OnboardingCheckCompatibilityTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SiteTypes.go @@ -4,7 +4,7 @@ // Code generated. DO NOT EDIT. /* - * Data type definitions file for service: OnboardingCheckCompatibility. + * Data type definitions file for service: Site. * Includes binding types of a structures and enumerations defined in the service. * Shared by client-side stubs and server-side skeletons to ensure type * compatibility. @@ -24,29 +24,26 @@ import ( -func onboardingCheckCompatibilityCreateInputType() bindings.StructType { +func siteOffboardInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["site_node_connection_info"] = bindings.NewReferenceType(model.SiteNodeConnectionInfoBindingType) - fieldNameMap["site_node_connection_info"] = "SiteNodeConnectionInfo" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } -func onboardingCheckCompatibilityCreateOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.CompatibilityCheckResultBindingType) +func siteOffboardOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.SiteOffBoardingStateBindingType) } -func onboardingCheckCompatibilityCreateRestMetadata() protocol.OperationRestMetadata { +func siteOffboardRestMetadata() protocol.OperationRestMetadata { fields := map[string]bindings.BindingType{} fieldNameMap := map[string]string{} paramsTypeMap := map[string]bindings.BindingType{} pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} - fields["site_node_connection_info"] = bindings.NewReferenceType(model.SiteNodeConnectionInfoBindingType) - fieldNameMap["site_node_connection_info"] = "SiteNodeConnectionInfo" - paramsTypeMap["site_node_connection_info"] = bindings.NewReferenceType(model.SiteNodeConnectionInfoBindingType) + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -56,14 +53,18 @@ func onboardingCheckCompatibilityCreateRestMetadata() protocol.OperationRestMeta pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, + "action=offboard", "", - "site_node_connection_info", "POST", - "/policy/api/v1/infra/onboarding-check-compatibility", + "/policy/api/v1/infra/site", + "", resultHeaders, - 201, + 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesClient.go index 5ecd8e244..5de03aece 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesClient.go @@ -19,12 +19,13 @@ type SitesClient interface { // Delete a site under Infra. // // @param siteIdParam (required) + // @param forceParam (optional) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(siteIdParam string) error + Delete(siteIdParam string, forceParam *bool) error // Read a site under Infra. // diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesTypes.go index 53e848c5f..912ff39bb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SitesTypes.go @@ -28,7 +28,9 @@ func sitesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["site_id"] = bindings.NewStringType() + fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["site_id"] = "SiteId" + fieldNameMap["force"] = "Force" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -44,11 +46,17 @@ func sitesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() + fields["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["site_id"] = "SiteId" + fieldNameMap["force"] = "Force" + paramsTypeMap["force"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["site_id"] = bindings.NewStringType() paramsTypeMap["siteId"] = bindings.NewStringType() pathParams["site_id"] = "siteId" + queryParams["force"] = "force" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -58,14 +66,18 @@ func sitesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/sites/{siteId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sitesGetInputType() bindings.StructType { @@ -88,6 +100,8 @@ func sitesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fieldNameMap["site_id"] = "SiteId" paramsTypeMap["site_id"] = bindings.NewStringType() @@ -102,14 +116,18 @@ func sitesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sitesListInputType() bindings.StructType { @@ -142,6 +160,8 @@ func sitesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +195,18 @@ func sitesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sitesPatchInputType() bindings.StructType { @@ -207,6 +231,8 @@ func sitesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["site"] = bindings.NewReferenceType(model.SiteBindingType) fieldNameMap["site_id"] = "SiteId" @@ -224,14 +250,18 @@ func sitesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "site", "PATCH", "/policy/api/v1/infra/sites/{siteId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sitesUpdateInputType() bindings.StructType { @@ -256,6 +286,8 @@ func sitesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["site"] = bindings.NewReferenceType(model.SiteBindingType) fieldNameMap["site_id"] = "SiteId" @@ -273,14 +305,18 @@ func sitesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "site", "PUT", "/policy/api/v1/infra/sites/{siteId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanClient.go index bac85163b..aebbda88f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanClient.go @@ -19,11 +19,12 @@ type SpanClient interface { // Get span for an entity with specified path. // // @param intentPathParam String Path of the intent object (required) + // @param sitePathParam Policy Path of the site (optional) // @return com.vmware.nsx_policy.model.Span // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Get(intentPathParam string) (model.Span, error) + Get(intentPathParam string, sitePathParam *string) (model.Span, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanTypes.go index b55b5c50c..f66f718cb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpanTypes.go @@ -28,7 +28,9 @@ func spanGetInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["intent_path"] = bindings.NewStringType() + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" + fieldNameMap["site_path"] = "SitePath" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -44,9 +46,15 @@ func spanGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["intent_path"] = bindings.NewStringType() + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" + fieldNameMap["site_path"] = "SitePath" + paramsTypeMap["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) paramsTypeMap["intent_path"] = bindings.NewStringType() + queryParams["site_path"] = "site_path" queryParams["intent_path"] = "intent_path" resultHeaders := map[string]string{} errorHeaders := map[string]string{} @@ -57,14 +65,18 @@ func spanGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/span", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesClient.go index d7be5c67e..edbc7783b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesClient.go @@ -19,13 +19,12 @@ type SpoofguardProfilesClient interface { // API will delete SpoofGuard profile with the given id. // // @param spoofguardProfileIdParam SpoofGuard profile id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(spoofguardProfileIdParam string, overrideParam *bool) error + Delete(spoofguardProfileIdParam string) error // API will return details of the SpoofGuard profile with given id. If the profile does not exist, it will return 404. // @@ -58,24 +57,22 @@ type SpoofguardProfilesClient interface { // // @param spoofguardProfileIdParam SpoofGuard profile id (required) // @param spoofGuardProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile, overrideParam *bool) error + Patch(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile) error // API will create or replace SpoofGuard profile. // // @param spoofguardProfileIdParam SpoofGuard profile id (required) // @param spoofGuardProfileParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.SpoofGuardProfile // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile, overrideParam *bool) (model.SpoofGuardProfile, error) + Update(spoofguardProfileIdParam string, spoofGuardProfileParam model.SpoofGuardProfile) (model.SpoofGuardProfile, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesTypes.go index 1b12a726a..10e74c26d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/SpoofguardProfilesTypes.go @@ -28,9 +28,7 @@ func spoofguardProfilesDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["spoofguard_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["spoofguard_profile_id"] = "SpoofguardProfileId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,15 +44,13 @@ func spoofguardProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["spoofguard_profile_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["spoofguard_profile_id"] = "SpoofguardProfileId" - fieldNameMap["override"] = "Override" - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["spoofguard_profile_id"] = bindings.NewStringType() paramsTypeMap["spoofguardProfileId"] = bindings.NewStringType() pathParams["spoofguard_profile_id"] = "spoofguardProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -64,14 +60,18 @@ func spoofguardProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/spoofguard-profiles/{spoofguardProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func spoofguardProfilesGetInputType() bindings.StructType { @@ -94,6 +94,8 @@ func spoofguardProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["spoofguard_profile_id"] = bindings.NewStringType() fieldNameMap["spoofguard_profile_id"] = "SpoofguardProfileId" paramsTypeMap["spoofguard_profile_id"] = bindings.NewStringType() @@ -108,14 +110,18 @@ func spoofguardProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/spoofguard-profiles/{spoofguardProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func spoofguardProfilesListInputType() bindings.StructType { @@ -148,6 +154,8 @@ func spoofguardProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -181,14 +189,18 @@ func spoofguardProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/spoofguard-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func spoofguardProfilesPatchInputType() bindings.StructType { @@ -196,10 +208,8 @@ func spoofguardProfilesPatchInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["spoofguard_profile_id"] = bindings.NewStringType() fields["spoof_guard_profile"] = bindings.NewReferenceType(model.SpoofGuardProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["spoofguard_profile_id"] = "SpoofguardProfileId" fieldNameMap["spoof_guard_profile"] = "SpoofGuardProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -215,18 +225,16 @@ func spoofguardProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["spoofguard_profile_id"] = bindings.NewStringType() fields["spoof_guard_profile"] = bindings.NewReferenceType(model.SpoofGuardProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["spoofguard_profile_id"] = "SpoofguardProfileId" fieldNameMap["spoof_guard_profile"] = "SpoofGuardProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["spoof_guard_profile"] = bindings.NewReferenceType(model.SpoofGuardProfileBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["spoofguard_profile_id"] = bindings.NewStringType() paramsTypeMap["spoofguardProfileId"] = bindings.NewStringType() pathParams["spoofguard_profile_id"] = "spoofguardProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -236,14 +244,18 @@ func spoofguardProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "spoof_guard_profile", "PATCH", "/policy/api/v1/infra/spoofguard-profiles/{spoofguardProfileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func spoofguardProfilesUpdateInputType() bindings.StructType { @@ -251,10 +263,8 @@ func spoofguardProfilesUpdateInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["spoofguard_profile_id"] = bindings.NewStringType() fields["spoof_guard_profile"] = bindings.NewReferenceType(model.SpoofGuardProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["spoofguard_profile_id"] = "SpoofguardProfileId" fieldNameMap["spoof_guard_profile"] = "SpoofGuardProfile" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -270,18 +280,16 @@ func spoofguardProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["spoofguard_profile_id"] = bindings.NewStringType() fields["spoof_guard_profile"] = bindings.NewReferenceType(model.SpoofGuardProfileBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["spoofguard_profile_id"] = "SpoofguardProfileId" fieldNameMap["spoof_guard_profile"] = "SpoofGuardProfile" - fieldNameMap["override"] = "Override" paramsTypeMap["spoof_guard_profile"] = bindings.NewReferenceType(model.SpoofGuardProfileBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["spoofguard_profile_id"] = bindings.NewStringType() paramsTypeMap["spoofguardProfileId"] = bindings.NewStringType() pathParams["spoofguard_profile_id"] = "spoofguardProfileId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -291,14 +299,18 @@ func spoofguardProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "spoof_guard_profile", "PUT", "/policy/api/v1/infra/spoofguard-profiles/{spoofguardProfileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TagsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TagsTypes.go index 4df7e1cd5..4dc0d13e2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TagsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TagsTypes.go @@ -68,6 +68,8 @@ func tagsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -113,14 +115,18 @@ func tagsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tags", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier0sTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier0sTypes.go index ce073389c..fddd6d562 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier0sTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier0sTypes.go @@ -44,6 +44,8 @@ func tier0sDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" paramsTypeMap["tier0_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func tier0sDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0sGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func tier0sGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" paramsTypeMap["tier0_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func tier0sGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0sListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func tier0sListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func tier0sListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0sPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func tier0sPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["tier0"] = bindings.NewReferenceType(model.Tier0BindingType) fieldNameMap["tier0_id"] = "Tier0Id" @@ -224,14 +244,18 @@ func tier0sPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0sReprocessInputType() bindings.StructType { @@ -256,6 +280,8 @@ func tier0sReprocessRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["tier0_id"] = "Tier0Id" @@ -274,14 +300,18 @@ func tier0sReprocessRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=reprocess", "", "POST", "/policy/api/v1/infra/tier-0s/{tier0Id}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0sUpdateInputType() bindings.StructType { @@ -306,6 +336,8 @@ func tier0sUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["tier0"] = bindings.NewReferenceType(model.Tier0BindingType) fieldNameMap["tier0_id"] = "Tier0Id" @@ -323,14 +355,18 @@ func tier0sUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier1sTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier1sTypes.go index 176554b8b..6cc2264f7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier1sTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/Tier1sTypes.go @@ -44,6 +44,8 @@ func tier1sDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" paramsTypeMap["tier1_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func tier1sDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier1sGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func tier1sGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" paramsTypeMap["tier1_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func tier1sGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier1sListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func tier1sListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func tier1sListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier1sPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func tier1sPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["tier1"] = bindings.NewReferenceType(model.Tier1BindingType) fieldNameMap["tier1_id"] = "Tier1Id" @@ -224,14 +244,18 @@ func tier1sPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier1", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier1sReprocessInputType() bindings.StructType { @@ -256,6 +280,8 @@ func tier1sReprocessRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["tier1_id"] = "Tier1Id" @@ -274,14 +300,18 @@ func tier1sReprocessRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=reprocess", "", "POST", "/policy/api/v1/infra/tier-1s/{tier1Id}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier1sUpdateInputType() bindings.StructType { @@ -306,6 +336,8 @@ func tier1sUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["tier1"] = bindings.NewReferenceType(model.Tier1BindingType) fieldNameMap["tier1_id"] = "Tier1Id" @@ -323,14 +355,18 @@ func tier1sUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier1", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsClient.go index de75ec649..a2c01b0f1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsClient.go @@ -16,6 +16,18 @@ import ( type TraceflowsClient interface { + // This will retrace even if current traceflow has observations. Current observations will be lost. Traceflow configuration will be cleaned up by the system after two hours of inactivity. + // + // @param traceflowIdParam (required) + // @param actionParam Action to be performed (optional) + // @return com.vmware.nsx_policy.model.TraceflowConfig + // @throws InvalidRequest Bad Request, Precondition Failed + // @throws Unauthorized Forbidden + // @throws ServiceUnavailable Service Unavailable + // @throws InternalServerError Internal Server Error + // @throws NotFound Not Found + Create(traceflowIdParam string, actionParam *string) (model.TraceflowConfig, error) + // Delete traceflow config with id traceflow-id // // @param traceflowIdParam (required) @@ -26,7 +38,7 @@ type TraceflowsClient interface { // @throws NotFound Not Found Delete(traceflowIdParam string) error - // Read traceflow config with id traceflow-id + // Read traceflow config with id traceflow-id. This configuration will be cleaned up by the system after two hours of inactivity. // // @param traceflowIdParam (required) // @return com.vmware.nsx_policy.model.TraceflowConfig @@ -53,7 +65,7 @@ type TraceflowsClient interface { // @throws NotFound Not Found List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.TraceflowConfigListResult, error) - // If a traceflow config with the traceflow-id is not already present, create a new traceflow config. If it already exists, update the traceflow config. This is a full replace. + // If a traceflow config with the traceflow-id is not already present, create a new traceflow config. If it already exists, update the traceflow config. This is a full replace. This configuration will be cleaned up by the system after two hours of inactivity. // // @param traceflowIdParam (required) // @param traceflowConfigParam (required) @@ -64,7 +76,7 @@ type TraceflowsClient interface { // @throws NotFound Not Found Patch(traceflowIdParam string, traceflowConfigParam model.TraceflowConfig) error - // If a traceflow config with the traceflow-id is not already present, create a new traceflow config. If it already exists, update the traceflow config. This is a full replace. + // If a traceflow config with the traceflow-id is not already present, create a new traceflow config. If it already exists, update the traceflow config. This is a full replace. This configuration will be cleaned up by the system after two hours of inactivity. // // @param traceflowIdParam (required) // @param traceflowConfigParam (required) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsTypes.go index 0a2b32cde..e2cf60b91 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/TraceflowsTypes.go @@ -24,6 +24,62 @@ import ( +func traceflowsCreateInputType() bindings.StructType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["traceflow_id"] = bindings.NewStringType() + fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["traceflow_id"] = "TraceflowId" + fieldNameMap["action"] = "Action" + var validators = []bindings.Validator{} + return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) +} + +func traceflowsCreateOutputType() bindings.BindingType { + return bindings.NewReferenceType(model.TraceflowConfigBindingType) +} + +func traceflowsCreateRestMetadata() protocol.OperationRestMetadata { + fields := map[string]bindings.BindingType{} + fieldNameMap := map[string]string{} + paramsTypeMap := map[string]bindings.BindingType{} + pathParams := map[string]string{} + queryParams := map[string]string{} + headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} + fields["traceflow_id"] = bindings.NewStringType() + fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["traceflow_id"] = "TraceflowId" + fieldNameMap["action"] = "Action" + paramsTypeMap["action"] = bindings.NewOptionalType(bindings.NewStringType()) + paramsTypeMap["traceflow_id"] = bindings.NewStringType() + paramsTypeMap["traceflowId"] = bindings.NewStringType() + pathParams["traceflow_id"] = "traceflowId" + queryParams["action"] = "action" + resultHeaders := map[string]string{} + errorHeaders := map[string]string{} + return protocol.NewOperationRestMetadata( + fields, + fieldNameMap, + paramsTypeMap, + pathParams, + queryParams, + headerParams, + dispatchHeaderParams, + bodyFieldsMap, + "", + "", + "POST", + "/policy/api/v1/infra/traceflows/{traceflowId}", + "", + resultHeaders, + 201, + "", + errorHeaders, + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) +} + func traceflowsDeleteInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -44,6 +100,8 @@ func traceflowsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["traceflow_id"] = bindings.NewStringType() fieldNameMap["traceflow_id"] = "TraceflowId" paramsTypeMap["traceflow_id"] = bindings.NewStringType() @@ -58,14 +116,18 @@ func traceflowsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/traceflows/{traceflowId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func traceflowsGetInputType() bindings.StructType { @@ -88,6 +150,8 @@ func traceflowsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["traceflow_id"] = bindings.NewStringType() fieldNameMap["traceflow_id"] = "TraceflowId" paramsTypeMap["traceflow_id"] = bindings.NewStringType() @@ -102,14 +166,18 @@ func traceflowsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/traceflows/{traceflowId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func traceflowsListInputType() bindings.StructType { @@ -142,6 +210,8 @@ func traceflowsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +245,18 @@ func traceflowsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/traceflows", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func traceflowsPatchInputType() bindings.StructType { @@ -207,6 +281,8 @@ func traceflowsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["traceflow_id"] = bindings.NewStringType() fields["traceflow_config"] = bindings.NewReferenceType(model.TraceflowConfigBindingType) fieldNameMap["traceflow_id"] = "TraceflowId" @@ -224,14 +300,18 @@ func traceflowsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "traceflow_config", "PATCH", "/policy/api/v1/infra/traceflows/{traceflowId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func traceflowsUpdateInputType() bindings.StructType { @@ -256,6 +336,8 @@ func traceflowsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["traceflow_id"] = bindings.NewStringType() fields["traceflow_config"] = bindings.NewReferenceType(model.TraceflowConfigBindingType) fieldNameMap["traceflow_id"] = "TraceflowId" @@ -273,14 +355,18 @@ func traceflowsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "traceflow_config", "PUT", "/policy/api/v1/infra/traceflows/{traceflowId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UpgradeSummaryTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UpgradeSummaryTypes.go index 02f9e5ceb..d45a7ab28 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UpgradeSummaryTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UpgradeSummaryTypes.go @@ -54,6 +54,8 @@ func upgradeSummaryListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["current_version"] = bindings.NewOptionalType(bindings.NewStringType()) fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -87,14 +89,18 @@ func upgradeSummaryListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/upgrade-summary", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesClient.go index d88ee8a3c..8f4a485b4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesClient.go @@ -16,17 +16,6 @@ import ( type UrlCategoriesClient interface { - // Gets a URL category with the requested category id. Few examples of these categories are Shopping, Social Networks, Streaming sites, etc. - // - // @param categoryIdParam (required) - // @return com.vmware.nsx_policy.model.PolicyUrlCategory - // @throws InvalidRequest Bad Request, Precondition Failed - // @throws Unauthorized Forbidden - // @throws ServiceUnavailable Service Unavailable - // @throws InternalServerError Internal Server Error - // @throws NotFound Not Found - Get(categoryIdParam string) (model.PolicyUrlCategory, error) - // Gets the list of categories. This will provide all the supported categories along with their ids. Few examples of these categories are Shopping, Social Networks, Streaming sites, etc. // // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesTypes.go index b0e97a664..a54af28e9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlCategoriesTypes.go @@ -24,50 +24,6 @@ import ( -func urlCategoriesGetInputType() bindings.StructType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["category_id"] = bindings.NewStringType() - fieldNameMap["category_id"] = "CategoryId" - var validators = []bindings.Validator{} - return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) -} - -func urlCategoriesGetOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyUrlCategoryBindingType) -} - -func urlCategoriesGetRestMetadata() protocol.OperationRestMetadata { - fields := map[string]bindings.BindingType{} - fieldNameMap := map[string]string{} - paramsTypeMap := map[string]bindings.BindingType{} - pathParams := map[string]string{} - queryParams := map[string]string{} - headerParams := map[string]string{} - fields["category_id"] = bindings.NewStringType() - fieldNameMap["category_id"] = "CategoryId" - paramsTypeMap["category_id"] = bindings.NewStringType() - paramsTypeMap["categoryId"] = bindings.NewStringType() - pathParams["category_id"] = "categoryId" - resultHeaders := map[string]string{} - errorHeaders := map[string]string{} - return protocol.NewOperationRestMetadata( - fields, - fieldNameMap, - paramsTypeMap, - pathParams, - queryParams, - headerParams, - "", - "", - "GET", - "/policy/api/v1/infra/url-categories/{categoryId}", - resultHeaders, - 200, - errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) -} - func urlCategoriesListInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -98,6 +54,8 @@ func urlCategoriesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -131,14 +89,18 @@ func urlCategoriesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/url-categories", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesClient.go index 10edb46f2..55e62b71a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesClient.go @@ -16,17 +16,6 @@ import ( type UrlReputationSeveritiesClient interface { - // Gets a URL reputation severity. The min_reputation and max_reputation specify the range of the reputations which belong to a particular severity. For instance, any reputation between 1 to 20 belongs to the severity 'High Risk'. Similary a reputation between 81 to 100 belong to the severity 'Trustworthy'. - // - // @param reputationSeverityIdParam (required) - // @return com.vmware.nsx_policy.model.PolicyUrlReputationSeverity - // @throws InvalidRequest Bad Request, Precondition Failed - // @throws Unauthorized Forbidden - // @throws ServiceUnavailable Service Unavailable - // @throws InternalServerError Internal Server Error - // @throws NotFound Not Found - Get(reputationSeverityIdParam string) (model.PolicyUrlReputationSeverity, error) - // Gets the list of reputation severities. This will provide all the supported severities along with their ids, min and max reputaitons. The min_reputation and max_reputation specify the range of the reputations which belong to a particular severity. For instance, any reputation between 1 to 20 belongs to the severity 'High Risk'. Similary a reputation between 81 to 100 belong to the severity 'Trustworthy'. // // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesTypes.go index 1d7fa0eb3..f4e818250 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/UrlReputationSeveritiesTypes.go @@ -24,50 +24,6 @@ import ( -func urlReputationSeveritiesGetInputType() bindings.StructType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["reputation_severity_id"] = bindings.NewStringType() - fieldNameMap["reputation_severity_id"] = "ReputationSeverityId" - var validators = []bindings.Validator{} - return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) -} - -func urlReputationSeveritiesGetOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.PolicyUrlReputationSeverityBindingType) -} - -func urlReputationSeveritiesGetRestMetadata() protocol.OperationRestMetadata { - fields := map[string]bindings.BindingType{} - fieldNameMap := map[string]string{} - paramsTypeMap := map[string]bindings.BindingType{} - pathParams := map[string]string{} - queryParams := map[string]string{} - headerParams := map[string]string{} - fields["reputation_severity_id"] = bindings.NewStringType() - fieldNameMap["reputation_severity_id"] = "ReputationSeverityId" - paramsTypeMap["reputation_severity_id"] = bindings.NewStringType() - paramsTypeMap["reputationSeverityId"] = bindings.NewStringType() - pathParams["reputation_severity_id"] = "reputationSeverityId" - resultHeaders := map[string]string{} - errorHeaders := map[string]string{} - return protocol.NewOperationRestMetadata( - fields, - fieldNameMap, - paramsTypeMap, - pathParams, - queryParams, - headerParams, - "", - "", - "GET", - "/policy/api/v1/infra/url-reputation-severities/{reputationSeverityId}", - resultHeaders, - 200, - errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) -} - func urlReputationSeveritiesListInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -98,6 +54,8 @@ func urlReputationSeveritiesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -131,14 +89,18 @@ func urlReputationSeveritiesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/url-reputation-severities", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualMachineGroupAssociationsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualMachineGroupAssociationsTypes.go index 99fbf2bf5..9adf022fe 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualMachineGroupAssociationsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualMachineGroupAssociationsTypes.go @@ -58,6 +58,8 @@ func virtualMachineGroupAssociationsListRestMetadata() protocol.OperationRestMet pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["vm_external_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -99,14 +101,18 @@ func virtualMachineGroupAssociationsListRestMetadata() protocol.OperationRestMet pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/virtual-machine-group-associations", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualNetworkInterfaceGroupAssociationsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualNetworkInterfaceGroupAssociationsTypes.go index 96d0bbe7a..e1c4c4104 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualNetworkInterfaceGroupAssociationsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VirtualNetworkInterfaceGroupAssociationsTypes.go @@ -58,6 +58,8 @@ func virtualNetworkInterfaceGroupAssociationsListRestMetadata() protocol.Operati pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["vif_external_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -99,14 +101,18 @@ func virtualNetworkInterfaceGroupAssociationsListRestMetadata() protocol.Operati pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/virtual-network-interface-group-associations", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsClient.go index e3f47c31c..25925234d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsClient.go @@ -16,7 +16,7 @@ import ( type VniPoolsClient interface { - // Delete Vni Pool Config. + // Delete Vni Pool Configuration. // // @param vniPoolIdParam vni pool id (required) // @throws InvalidRequest Bad Request, Precondition Failed @@ -26,7 +26,7 @@ type VniPoolsClient interface { // @throws NotFound Not Found Delete(vniPoolIdParam string) error - // Read Vni Pool Config. + // Read Vni Pool Configuration. // // @param vniPoolIdParam vni pool id (required) // @return com.vmware.nsx_policy.model.VniPoolConfig @@ -37,7 +37,7 @@ type VniPoolsClient interface { // @throws NotFound Not Found Get(vniPoolIdParam string) (model.VniPoolConfig, error) - // List all Vni Pool config. + // List all Vni Pool configuration. // // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) // @param includeMarkForDeleteObjectsParam Include objects that are marked for deletion in results (optional, default to false) @@ -53,7 +53,7 @@ type VniPoolsClient interface { // @throws NotFound Not Found List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.VniPoolConfigListResult, error) - // Create a Vni Pool config if it is not already present, otherwise update the Vni Pool config. + // Create a Vni Pool config if it is not already present, otherwise update the Vni Pool configuration. // // @param vniPoolIdParam vni pool id (required) // @param vniPoolConfigParam (required) @@ -64,7 +64,7 @@ type VniPoolsClient interface { // @throws NotFound Not Found Patch(vniPoolIdParam string, vniPoolConfigParam model.VniPoolConfig) error - // Create or update VniPool config. + // Create or update VniPool configuration. // // @param vniPoolIdParam vni pool id (required) // @param vniPoolConfigParam (required) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsTypes.go index a176cc2d7..f0469d2b4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/VniPoolsTypes.go @@ -44,6 +44,8 @@ func vniPoolsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["vni_pool_id"] = bindings.NewStringType() fieldNameMap["vni_pool_id"] = "VniPoolId" paramsTypeMap["vni_pool_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func vniPoolsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/vni-pools/{vniPoolId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func vniPoolsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func vniPoolsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["vni_pool_id"] = bindings.NewStringType() fieldNameMap["vni_pool_id"] = "VniPoolId" paramsTypeMap["vni_pool_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func vniPoolsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/vni-pools/{vniPoolId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func vniPoolsListInputType() bindings.StructType { @@ -142,6 +154,8 @@ func vniPoolsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -175,14 +189,18 @@ func vniPoolsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/vni-pools", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func vniPoolsPatchInputType() bindings.StructType { @@ -207,6 +225,8 @@ func vniPoolsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["vni_pool_id"] = bindings.NewStringType() fields["vni_pool_config"] = bindings.NewReferenceType(model.VniPoolConfigBindingType) fieldNameMap["vni_pool_id"] = "VniPoolId" @@ -224,14 +244,18 @@ func vniPoolsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "vni_pool_config", "PATCH", "/policy/api/v1/infra/vni-pools/{vniPoolId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func vniPoolsUpdateInputType() bindings.StructType { @@ -256,6 +280,8 @@ func vniPoolsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["vni_pool_id"] = bindings.NewStringType() fields["vni_pool_config"] = bindings.NewReferenceType(model.VniPoolConfigBindingType) fieldNameMap["vni_pool_id"] = "VniPoolId" @@ -273,14 +299,18 @@ func vniPoolsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "vni_pool_config", "PUT", "/policy/api/v1/infra/vni-pools/{vniPoolId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/CommunicationMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/CommunicationMapsTypes.go index 7c692571b..00ba8b7da 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/CommunicationMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/CommunicationMapsTypes.go @@ -54,6 +54,8 @@ func communicationMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["communication_map_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -73,14 +75,18 @@ func communicationMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/communication-maps/{communicationMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communicationMapsGetInputType() bindings.StructType { @@ -105,6 +111,8 @@ func communicationMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["communication_map_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -124,14 +132,18 @@ func communicationMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/communication-maps/{communicationMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communicationMapsListInputType() bindings.StructType { @@ -166,6 +178,8 @@ func communicationMapsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -204,14 +218,18 @@ func communicationMapsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/communication-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communicationMapsPatchInputType() bindings.StructType { @@ -238,6 +256,8 @@ func communicationMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["communication_map_id"] = bindings.NewStringType() fields["communication_map"] = bindings.NewReferenceType(model.CommunicationMapBindingType) @@ -260,14 +280,18 @@ func communicationMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "communication_map", "PATCH", "/policy/api/v1/infra/domains/{domainId}/communication-maps/{communicationMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communicationMapsReviseInputType() bindings.StructType { @@ -298,6 +322,8 @@ func communicationMapsReviseRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["communication_map_id"] = bindings.NewStringType() fields["communication_map"] = bindings.NewReferenceType(model.CommunicationMapBindingType) @@ -328,14 +354,18 @@ func communicationMapsReviseRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=revise", "communication_map", "POST", "/policy/api/v1/infra/domains/{domainId}/communication-maps/{communicationMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communicationMapsUpdateInputType() bindings.StructType { @@ -362,6 +392,8 @@ func communicationMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["communication_map_id"] = bindings.NewStringType() fields["communication_map"] = bindings.NewReferenceType(model.CommunicationMapBindingType) @@ -384,14 +416,18 @@ func communicationMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "communication_map", "PUT", "/policy/api/v1/infra/domains/{domainId}/communication-maps/{communicationMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultCommunicationMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultCommunicationMapsClient.go index cc89c6545..649bbd432 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultCommunicationMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultCommunicationMapsClient.go @@ -46,12 +46,33 @@ func NewDefaultCommunicationMapsClient(connector client.Connector) *DefaultCommu } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + cIface := DefaultCommunicationMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} cIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) cIface.methodNameToDefMap["delete"] = cIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultDomainDeploymentMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultDomainDeploymentMapsClient.go index c433ad56d..3712c516b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultDomainDeploymentMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultDomainDeploymentMapsClient.go @@ -45,12 +45,33 @@ func NewDefaultDomainDeploymentMapsClient(connector client.Connector) *DefaultDo } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDomainDeploymentMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultEndpointPoliciesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultEndpointPoliciesClient.go index 51c14e63e..154295c5b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultEndpointPoliciesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultEndpointPoliciesClient.go @@ -45,12 +45,33 @@ func NewDefaultEndpointPoliciesClient(connector client.Connector) *DefaultEndpoi } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultEndpointPoliciesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["delete"] = eIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallFloodProtectionProfileBindingMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallFloodProtectionProfileBindingMapsClient.go index 791a522e8..563a8177c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallFloodProtectionProfileBindingMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallFloodProtectionProfileBindingMapsClient.go @@ -41,12 +41,33 @@ func NewDefaultFirewallFloodProtectionProfileBindingMapsClient(connector client. } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFirewallFloodProtectionProfileBindingMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["list"] = fIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallSessionTimerProfileBindingMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallSessionTimerProfileBindingMapsClient.go index ad6dd4abc..03708801c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallSessionTimerProfileBindingMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultFirewallSessionTimerProfileBindingMapsClient.go @@ -41,12 +41,33 @@ func NewDefaultFirewallSessionTimerProfileBindingMapsClient(connector client.Con } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFirewallSessionTimerProfileBindingMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["list"] = fIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultForwardingPoliciesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultForwardingPoliciesClient.go index 872c4fca7..778154c10 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultForwardingPoliciesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultForwardingPoliciesClient.go @@ -45,12 +45,33 @@ func NewDefaultForwardingPoliciesClient(connector client.Connector) *DefaultForw } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultForwardingPoliciesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGatewayPoliciesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGatewayPoliciesClient.go index eb45dbefe..d7701416d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGatewayPoliciesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGatewayPoliciesClient.go @@ -46,12 +46,33 @@ func NewDefaultGatewayPoliciesClient(connector client.Connector) *DefaultGateway } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGatewayPoliciesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["delete"] = gIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGroupsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGroupsClient.go index f3627759b..f8f13fbcb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGroupsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultGroupsClient.go @@ -45,12 +45,33 @@ func NewDefaultGroupsClient(connector client.Connector) *DefaultGroupsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGroupsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["delete"] = gIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultIntrusionServicePoliciesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultIntrusionServicePoliciesClient.go index e78119fa6..7d7f96186 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultIntrusionServicePoliciesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultIntrusionServicePoliciesClient.go @@ -46,12 +46,33 @@ func NewDefaultIntrusionServicePoliciesClient(connector client.Connector) *Defau } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIntrusionServicePoliciesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultRedirectionPoliciesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultRedirectionPoliciesClient.go index 345657707..2dca51b23 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultRedirectionPoliciesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultRedirectionPoliciesClient.go @@ -46,12 +46,33 @@ func NewDefaultRedirectionPoliciesClient(connector client.Connector) *DefaultRed } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + rIface := DefaultRedirectionPoliciesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} rIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) rIface.methodNameToDefMap["delete"] = rIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultSecurityPoliciesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultSecurityPoliciesClient.go index 8f93af1ff..a6173e3c4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultSecurityPoliciesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DefaultSecurityPoliciesClient.go @@ -46,12 +46,33 @@ func NewDefaultSecurityPoliciesClient(connector client.Connector) *DefaultSecuri } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSecurityPoliciesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DomainDeploymentMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DomainDeploymentMapsTypes.go index df910e0ff..facbbb4d5 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DomainDeploymentMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/DomainDeploymentMapsTypes.go @@ -46,6 +46,8 @@ func domainDeploymentMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["domain_deployment_map_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -65,14 +67,18 @@ func domainDeploymentMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/domain-deployment-maps/{domainDeploymentMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainDeploymentMapsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func domainDeploymentMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["domain_deployment_map_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -116,14 +124,18 @@ func domainDeploymentMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/domain-deployment-maps/{domainDeploymentMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainDeploymentMapsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func domainDeploymentMapsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func domainDeploymentMapsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/domain-deployment-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainDeploymentMapsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func domainDeploymentMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["domain_deployment_map_id"] = bindings.NewStringType() fields["domain_deployment_map"] = bindings.NewReferenceType(model.DomainDeploymentMapBindingType) @@ -252,14 +272,18 @@ func domainDeploymentMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "domain_deployment_map", "PATCH", "/policy/api/v1/infra/domains/{domainId}/domain-deployment-maps/{domainDeploymentMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func domainDeploymentMapsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func domainDeploymentMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["domain_deployment_map_id"] = bindings.NewStringType() fields["domain_deployment_map"] = bindings.NewReferenceType(model.DomainDeploymentMapBindingType) @@ -308,14 +334,18 @@ func domainDeploymentMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "domain_deployment_map", "PUT", "/policy/api/v1/infra/domains/{domainId}/domain-deployment-maps/{domainDeploymentMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/EndpointPoliciesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/EndpointPoliciesTypes.go index f6e1c0aaa..1980f2ab4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/EndpointPoliciesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/EndpointPoliciesTypes.go @@ -46,6 +46,8 @@ func endpointPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["endpoint_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -65,14 +67,18 @@ func endpointPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/endpoint-policies/{endpointPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func endpointPoliciesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func endpointPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["endpoint_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -116,14 +124,18 @@ func endpointPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/endpoint-policies/{endpointPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func endpointPoliciesListInputType() bindings.StructType { @@ -156,6 +168,8 @@ func endpointPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -189,14 +203,18 @@ func endpointPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/endpoint-policies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func endpointPoliciesPatchInputType() bindings.StructType { @@ -223,6 +241,8 @@ func endpointPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["endpoint_policy_id"] = bindings.NewStringType() fields["endpoint_policy"] = bindings.NewReferenceType(model.EndpointPolicyBindingType) @@ -245,14 +265,18 @@ func endpointPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "endpoint_policy", "PATCH", "/policy/api/v1/infra/domains/{domainId}/endpoint-policies/{endpointPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func endpointPoliciesUpdateInputType() bindings.StructType { @@ -279,6 +303,8 @@ func endpointPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["endpoint_policy_id"] = bindings.NewStringType() fields["endpoint_policy"] = bindings.NewReferenceType(model.EndpointPolicyBindingType) @@ -301,14 +327,18 @@ func endpointPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "endpoint_policy", "PUT", "/policy/api/v1/infra/domains/{domainId}/endpoint-policies/{endpointPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallFloodProtectionProfileBindingMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallFloodProtectionProfileBindingMapsTypes.go index 075ec5213..bff1afa1b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallFloodProtectionProfileBindingMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallFloodProtectionProfileBindingMapsTypes.go @@ -54,6 +54,8 @@ func firewallFloodProtectionProfileBindingMapsListRestMetadata() protocol.Operat pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -87,14 +89,18 @@ func firewallFloodProtectionProfileBindingMapsListRestMetadata() protocol.Operat pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/firewall-flood-protection-profile-binding-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallSessionTimerProfileBindingMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallSessionTimerProfileBindingMapsTypes.go index ca53217d8..1ab07e44a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallSessionTimerProfileBindingMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/FirewallSessionTimerProfileBindingMapsTypes.go @@ -54,6 +54,8 @@ func firewallSessionTimerProfileBindingMapsListRestMetadata() protocol.Operation pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -87,14 +89,18 @@ func firewallSessionTimerProfileBindingMapsListRestMetadata() protocol.Operation pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/firewall-session-timer-profile-binding-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/ForwardingPoliciesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/ForwardingPoliciesTypes.go index d01782a23..2a3e229af 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/ForwardingPoliciesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/ForwardingPoliciesTypes.go @@ -46,6 +46,8 @@ func forwardingPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["forwarding_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -65,14 +67,18 @@ func forwardingPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/forwarding-policies/{forwardingPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func forwardingPoliciesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func forwardingPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["forwarding_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -116,14 +124,18 @@ func forwardingPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/forwarding-policies/{forwardingPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func forwardingPoliciesListInputType() bindings.StructType { @@ -160,6 +172,8 @@ func forwardingPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -202,14 +216,18 @@ func forwardingPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/forwarding-policies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func forwardingPoliciesPatchInputType() bindings.StructType { @@ -236,6 +254,8 @@ func forwardingPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["forwarding_policy_id"] = bindings.NewStringType() fields["forwarding_policy"] = bindings.NewReferenceType(model.ForwardingPolicyBindingType) @@ -258,14 +278,18 @@ func forwardingPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "forwarding_policy", "PATCH", "/policy/api/v1/infra/domains/{domainId}/forwarding-policies/{forwardingPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func forwardingPoliciesUpdateInputType() bindings.StructType { @@ -292,6 +316,8 @@ func forwardingPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["forwarding_policy_id"] = bindings.NewStringType() fields["forwarding_policy"] = bindings.NewReferenceType(model.ForwardingPolicyBindingType) @@ -314,14 +340,18 @@ func forwardingPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "forwarding_policy", "PUT", "/policy/api/v1/infra/domains/{domainId}/forwarding-policies/{forwardingPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GatewayPoliciesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GatewayPoliciesTypes.go index aeba35d63..bbe538945 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GatewayPoliciesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GatewayPoliciesTypes.go @@ -54,6 +54,8 @@ func gatewayPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["gateway_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -73,14 +75,18 @@ func gatewayPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/gateway-policies/{gatewayPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayPoliciesGetInputType() bindings.StructType { @@ -105,6 +111,8 @@ func gatewayPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["gateway_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -124,14 +132,18 @@ func gatewayPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/gateway-policies/{gatewayPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayPoliciesListInputType() bindings.StructType { @@ -168,6 +180,8 @@ func gatewayPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -210,14 +224,18 @@ func gatewayPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/gateway-policies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayPoliciesPatchInputType() bindings.StructType { @@ -244,6 +262,8 @@ func gatewayPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["gateway_policy_id"] = bindings.NewStringType() fields["gateway_policy"] = bindings.NewReferenceType(model.GatewayPolicyBindingType) @@ -266,14 +286,18 @@ func gatewayPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "gateway_policy", "PATCH", "/policy/api/v1/infra/domains/{domainId}/gateway-policies/{gatewayPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayPoliciesReviseInputType() bindings.StructType { @@ -304,6 +328,8 @@ func gatewayPoliciesReviseRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["gateway_policy_id"] = bindings.NewStringType() fields["gateway_policy"] = bindings.NewReferenceType(model.GatewayPolicyBindingType) @@ -334,14 +360,18 @@ func gatewayPoliciesReviseRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=revise", "gateway_policy", "POST", "/policy/api/v1/infra/domains/{domainId}/gateway-policies/{gatewayPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func gatewayPoliciesUpdateInputType() bindings.StructType { @@ -368,6 +398,8 @@ func gatewayPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["gateway_policy_id"] = bindings.NewStringType() fields["gateway_policy"] = bindings.NewReferenceType(model.GatewayPolicyBindingType) @@ -390,14 +422,18 @@ func gatewayPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "gateway_policy", "PUT", "/policy/api/v1/infra/domains/{domainId}/gateway-policies/{gatewayPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsClient.go index ce9200bf9..21238a13e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsClient.go @@ -41,7 +41,7 @@ type GroupsClient interface { // @throws NotFound Not Found Get(domainIdParam string, groupIdParam string) (model.Group, error) - // List Groups for a domain + // List Groups for a domain. Groups can be filtered using member_types query parameter, which returns the groups that contains the specified member types. Multiple member types can be provided as comma separated values. The API also return groups having member type that are subset of provided member_types. // // @param domainIdParam Domain ID (required) // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) @@ -71,7 +71,7 @@ type GroupsClient interface { // @throws NotFound Not Found Patch(domainIdParam string, groupIdParam string, groupParam model.Group) error - // If a group with the group-id is not already present, create a new group. If it already exists, update the group. + // If a group with the group-id is not already present, create a new group. If it already exists, update the group. Avoid creating groups with multiple MACAddressExpression and IPAddressExpression. In future releases, group will be restricted to contain a single MACAddressExpression and IPAddressExpression along with other expressions. To group IPAddresses or MACAddresses, use nested groups instead of multiple IPAddressExpressions/MACAddressExpression. // // @param domainIdParam Domain ID (required) // @param groupIdParam Group ID (required) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsTypes.go index 273dc32d0..f54cbec2a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/GroupsTypes.go @@ -50,6 +50,8 @@ func groupsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fields["fail_if_subtree_exists"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -77,14 +79,18 @@ func groupsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/groups/{groupId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsGetInputType() bindings.StructType { @@ -109,6 +115,8 @@ func groupsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -128,14 +136,18 @@ func groupsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/groups/{groupId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsListInputType() bindings.StructType { @@ -172,6 +184,8 @@ func groupsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -214,14 +228,18 @@ func groupsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/groups", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsPatchInputType() bindings.StructType { @@ -248,6 +266,8 @@ func groupsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fields["group"] = bindings.NewReferenceType(model.GroupBindingType) @@ -270,14 +290,18 @@ func groupsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "group", "PATCH", "/policy/api/v1/infra/domains/{domainId}/groups/{groupId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsUpdateInputType() bindings.StructType { @@ -304,6 +328,8 @@ func groupsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fields["group"] = bindings.NewReferenceType(model.GroupBindingType) @@ -326,14 +352,18 @@ func groupsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "group", "PUT", "/policy/api/v1/infra/domains/{domainId}/groups/{groupId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/IntrusionServicePoliciesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/IntrusionServicePoliciesTypes.go index 7224b5bce..397b8c94b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/IntrusionServicePoliciesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/IntrusionServicePoliciesTypes.go @@ -54,6 +54,8 @@ func intrusionServicePoliciesDeleteRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -73,14 +75,18 @@ func intrusionServicePoliciesDeleteRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/intrusion-service-policies/{policyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func intrusionServicePoliciesGetInputType() bindings.StructType { @@ -105,6 +111,8 @@ func intrusionServicePoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -124,14 +132,18 @@ func intrusionServicePoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/intrusion-service-policies/{policyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func intrusionServicePoliciesListInputType() bindings.StructType { @@ -166,6 +178,8 @@ func intrusionServicePoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -204,14 +218,18 @@ func intrusionServicePoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/intrusion-service-policies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func intrusionServicePoliciesPatchInputType() bindings.StructType { @@ -238,6 +256,8 @@ func intrusionServicePoliciesPatchRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["policy_id"] = bindings.NewStringType() fields["ids_security_policy"] = bindings.NewReferenceType(model.IdsSecurityPolicyBindingType) @@ -260,14 +280,18 @@ func intrusionServicePoliciesPatchRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ids_security_policy", "PATCH", "/policy/api/v1/infra/domains/{domainId}/intrusion-service-policies/{policyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func intrusionServicePoliciesReviseInputType() bindings.StructType { @@ -298,6 +322,8 @@ func intrusionServicePoliciesReviseRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["policy_id"] = bindings.NewStringType() fields["ids_security_policy"] = bindings.NewReferenceType(model.IdsSecurityPolicyBindingType) @@ -328,14 +354,18 @@ func intrusionServicePoliciesReviseRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=revise", "ids_security_policy", "POST", "/policy/api/v1/infra/domains/{domainId}/intrusion-service-policies/{policyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func intrusionServicePoliciesUpdateInputType() bindings.StructType { @@ -362,6 +392,8 @@ func intrusionServicePoliciesUpdateRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["policy_id"] = bindings.NewStringType() fields["ids_security_policy"] = bindings.NewReferenceType(model.IdsSecurityPolicyBindingType) @@ -384,14 +416,18 @@ func intrusionServicePoliciesUpdateRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ids_security_policy", "PUT", "/policy/api/v1/infra/domains/{domainId}/intrusion-service-policies/{policyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/RedirectionPoliciesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/RedirectionPoliciesTypes.go index f65479dc6..b64aa7659 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/RedirectionPoliciesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/RedirectionPoliciesTypes.go @@ -46,6 +46,8 @@ func redirectionPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["redirection_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -65,14 +67,18 @@ func redirectionPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/redirection-policies/{redirectionPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func redirectionPoliciesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func redirectionPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["redirection_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -116,14 +124,18 @@ func redirectionPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/redirection-policies/{redirectionPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func redirectionPoliciesListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func redirectionPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) fields["include_rule_count"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -195,14 +209,18 @@ func redirectionPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/redirection-policies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func redirectionPoliciesList0InputType() bindings.StructType { @@ -239,6 +257,8 @@ func redirectionPoliciesList0RestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -281,14 +301,18 @@ func redirectionPoliciesList0RestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/redirection-policies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func redirectionPoliciesPatchInputType() bindings.StructType { @@ -315,6 +339,8 @@ func redirectionPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["redirection_policy_id"] = bindings.NewStringType() fields["redirection_policy"] = bindings.NewReferenceType(model.RedirectionPolicyBindingType) @@ -337,14 +363,18 @@ func redirectionPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "redirection_policy", "PATCH", "/policy/api/v1/infra/domains/{domainId}/redirection-policies/{redirectionPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func redirectionPoliciesUpdateInputType() bindings.StructType { @@ -371,6 +401,8 @@ func redirectionPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["redirection_policy_id"] = bindings.NewStringType() fields["redirection_policy"] = bindings.NewReferenceType(model.RedirectionPolicyBindingType) @@ -393,14 +425,18 @@ func redirectionPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "redirection_policy", "PUT", "/policy/api/v1/infra/domains/{domainId}/redirection-policies/{redirectionPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/SecurityPoliciesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/SecurityPoliciesTypes.go index 5dc275550..1071ec1e1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/SecurityPoliciesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains/SecurityPoliciesTypes.go @@ -54,6 +54,8 @@ func securityPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["security_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -73,14 +75,18 @@ func securityPoliciesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/domains/{domainId}/security-policies/{securityPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func securityPoliciesGetInputType() bindings.StructType { @@ -105,6 +111,8 @@ func securityPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["security_policy_id"] = bindings.NewStringType() fieldNameMap["domain_id"] = "DomainId" @@ -124,14 +132,18 @@ func securityPoliciesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/security-policies/{securityPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func securityPoliciesListInputType() bindings.StructType { @@ -168,6 +180,8 @@ func securityPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -210,14 +224,18 @@ func securityPoliciesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/domains/{domainId}/security-policies", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func securityPoliciesPatchInputType() bindings.StructType { @@ -244,6 +262,8 @@ func securityPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["security_policy_id"] = bindings.NewStringType() fields["security_policy"] = bindings.NewReferenceType(model.SecurityPolicyBindingType) @@ -266,14 +286,18 @@ func securityPoliciesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "security_policy", "PATCH", "/policy/api/v1/infra/domains/{domainId}/security-policies/{securityPolicyId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func securityPoliciesReviseInputType() bindings.StructType { @@ -304,6 +328,8 @@ func securityPoliciesReviseRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["security_policy_id"] = bindings.NewStringType() fields["security_policy"] = bindings.NewReferenceType(model.SecurityPolicyBindingType) @@ -334,14 +360,18 @@ func securityPoliciesReviseRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=revise", "security_policy", "POST", "/policy/api/v1/infra/domains/{domainId}/security-policies/{securityPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func securityPoliciesUpdateInputType() bindings.StructType { @@ -368,6 +398,8 @@ func securityPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["domain_id"] = bindings.NewStringType() fields["security_policy_id"] = bindings.NewStringType() fields["security_policy"] = bindings.NewReferenceType(model.SecurityPolicyBindingType) @@ -390,14 +422,18 @@ func securityPoliciesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "security_policy", "PUT", "/policy/api/v1/infra/domains/{domainId}/security-policies/{securityPolicyId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpAllocationsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpAllocationsClient.go index 8691ea9c9..25b6107c5 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpAllocationsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpAllocationsClient.go @@ -45,12 +45,33 @@ func NewDefaultIpAllocationsClient(connector client.Connector) *DefaultIpAllocat } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpAllocationsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpSubnetsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpSubnetsClient.go index b307b4a9a..54d837e83 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpSubnetsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/DefaultIpSubnetsClient.go @@ -45,12 +45,33 @@ func NewDefaultIpSubnetsClient(connector client.Connector) *DefaultIpSubnetsClie } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpSubnetsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpAllocationsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpAllocationsTypes.go index 921988350..53fdf6406 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpAllocationsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpAllocationsTypes.go @@ -46,6 +46,8 @@ func ipAllocationsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_allocation_id"] = bindings.NewStringType() fieldNameMap["ip_pool_id"] = "IpPoolId" @@ -65,14 +67,18 @@ func ipAllocationsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-allocations/{ipAllocationId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipAllocationsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func ipAllocationsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_allocation_id"] = bindings.NewStringType() fieldNameMap["ip_pool_id"] = "IpPoolId" @@ -116,14 +124,18 @@ func ipAllocationsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-allocations/{ipAllocationId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipAllocationsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func ipAllocationsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func ipAllocationsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-allocations", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipAllocationsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func ipAllocationsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_allocation_id"] = bindings.NewStringType() fields["ip_address_allocation"] = bindings.NewReferenceType(model.IpAddressAllocationBindingType) @@ -252,14 +272,18 @@ func ipAllocationsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_allocation", "PATCH", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-allocations/{ipAllocationId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipAllocationsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func ipAllocationsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_allocation_id"] = bindings.NewStringType() fields["ip_address_allocation"] = bindings.NewReferenceType(model.IpAddressAllocationBindingType) @@ -308,14 +334,18 @@ func ipAllocationsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_allocation", "PUT", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-allocations/{ipAllocationId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpSubnetsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpSubnetsTypes.go index 1518e7511..5be13ef17 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpSubnetsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/ip_pools/IpSubnetsTypes.go @@ -46,6 +46,8 @@ func ipSubnetsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_subnet_id"] = bindings.NewStringType() fieldNameMap["ip_pool_id"] = "IpPoolId" @@ -65,14 +67,18 @@ func ipSubnetsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-subnets/{ipSubnetId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipSubnetsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func ipSubnetsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_subnet_id"] = bindings.NewStringType() fieldNameMap["ip_pool_id"] = "IpPoolId" @@ -116,14 +124,18 @@ func ipSubnetsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-subnets/{ipSubnetId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipSubnetsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func ipSubnetsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func ipSubnetsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-subnets", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipSubnetsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func ipSubnetsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_subnet_id"] = bindings.NewStringType() fields["ip_address_pool_subnet"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.IpAddressPoolSubnetBindingType),}, bindings.REST) @@ -252,14 +272,18 @@ func ipSubnetsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_pool_subnet", "PATCH", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-subnets/{ipSubnetId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipSubnetsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func ipSubnetsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["ip_pool_id"] = bindings.NewStringType() fields["ip_subnet_id"] = bindings.NewStringType() fields["ip_address_pool_subnet"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.IpAddressPoolSubnetBindingType),}, bindings.REST) @@ -308,14 +334,18 @@ func ipSubnetsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_address_pool_subnet", "PUT", "/policy/api/v1/infra/ip-pools/{ipPoolId}/ip-subnets/{ipSubnetId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/AlarmsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/AlarmsTypes.go index 20ea413e2..ed2604a5c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/AlarmsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/AlarmsTypes.go @@ -52,6 +52,8 @@ func alarmsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -81,14 +83,18 @@ func alarmsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/alarms", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultAlarmsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultAlarmsClient.go index 151dcf786..6ea22e0b9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultAlarmsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultAlarmsClient.go @@ -41,12 +41,33 @@ func NewDefaultAlarmsClient(connector client.Connector) *DefaultAlarmsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + aIface := DefaultAlarmsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} aIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) aIface.methodNameToDefMap["list"] = aIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultEnforcementPointsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultEnforcementPointsClient.go index 15dc7b7ec..48cab2337 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultEnforcementPointsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultEnforcementPointsClient.go @@ -42,12 +42,33 @@ func NewDefaultEnforcementPointsClient(connector client.Connector) *DefaultEnfor } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultEnforcementPointsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["get"] = eIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultGlobalManagersClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultGlobalManagersClient.go deleted file mode 100644 index 837e0675b..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultGlobalManagersClient.go +++ /dev/null @@ -1,258 +0,0 @@ - -/* Copyright © 2019 VMware, Inc. All Rights Reserved. - SPDX-License-Identifier: BSD-2-Clause */ - -// Code generated. DO NOT EDIT. - -/* - * Client stubs for service: GlobalManagers - * Functions that implement the generated GlobalManagersClient interface - */ - - -package realized_state - -import ( - "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" - "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors" - "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" - "github.com/vmware/vsphere-automation-sdk-go/runtime/core" - "github.com/vmware/vsphere-automation-sdk-go/runtime/data" - "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" - "github.com/vmware/vsphere-automation-sdk-go/runtime/log" - "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" -) - -type DefaultGlobalManagersClient struct { - interfaceName string - interfaceDefinition core.InterfaceDefinition - methodIdentifiers []core.MethodIdentifier - methodNameToDefMap map[string]*core.MethodDefinition - errorBindingMap map[string]bindings.BindingType - interfaceIdentifier core.InterfaceIdentifier - connector client.Connector -} - -func NewDefaultGlobalManagersClient(connector client.Connector) *DefaultGlobalManagersClient { - interfaceName := "com.vmware.nsx_policy.infra.realized_state.global_managers" - interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) - methodIdentifiers := []core.MethodIdentifier{ - core.NewMethodIdentifier(interfaceIdentifier, "get"), - core.NewMethodIdentifier(interfaceIdentifier, "list"), - } - interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) - errorBindingMap := make(map[string]bindings.BindingType) - errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() - errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() - errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() - gIface := DefaultGlobalManagersClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} - gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) - gIface.methodNameToDefMap["get"] = gIface.getMethodDefinition() - gIface.methodNameToDefMap["list"] = gIface.listMethodDefinition() - return &gIface -} - -func (gIface *DefaultGlobalManagersClient) Get(globalManagerIdParam string) (model.RealizedGlobalManager, error) { - typeConverter := gIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "get") - sv := bindings.NewStructValueBuilder(globalManagersGetInputType(), typeConverter) - sv.AddStructField("GlobalManagerId", globalManagerIdParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - var emptyOutput model.RealizedGlobalManager - return emptyOutput, bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := globalManagersGetRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - gIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := gIface.connector.NewExecutionContext() - methodResult := gIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.RealizedGlobalManager - if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), globalManagersGetOutputType()) - if errorInOutput != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) - } - return output.(model.RealizedGlobalManager), nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), gIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInError) - } - return emptyOutput, methodError.(error) - } -} - -func (gIface *DefaultGlobalManagersClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.RealizedGlobalManagerListResult, error) { - typeConverter := gIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(gIface.interfaceIdentifier, "list") - sv := bindings.NewStructValueBuilder(globalManagersListInputType(), typeConverter) - sv.AddStructField("Cursor", cursorParam) - sv.AddStructField("IncludeMarkForDeleteObjects", includeMarkForDeleteObjectsParam) - sv.AddStructField("IncludedFields", includedFieldsParam) - sv.AddStructField("PageSize", pageSizeParam) - sv.AddStructField("SortAscending", sortAscendingParam) - sv.AddStructField("SortBy", sortByParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - var emptyOutput model.RealizedGlobalManagerListResult - return emptyOutput, bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := globalManagersListRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - gIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := gIface.connector.NewExecutionContext() - methodResult := gIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.RealizedGlobalManagerListResult - if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), globalManagersListOutputType()) - if errorInOutput != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) - } - return output.(model.RealizedGlobalManagerListResult), nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), gIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInError) - } - return emptyOutput, methodError.(error) - } -} - - -func (gIface *DefaultGlobalManagersClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { - methodResult := gIface.connector.GetApiProvider().Invoke(gIface.interfaceName, methodId.Name(), inputDataValue, ctx) - return methodResult -} - - -func (gIface *DefaultGlobalManagersClient) getMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(gIface.interfaceName) - typeConverter := gIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(globalManagersGetInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(globalManagersGetOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.get method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.get method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "get") - errorDefinitions := make([]data.ErrorDefinition, 0) - gIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.get method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.get method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.get method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.get method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.get method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} - -func (gIface *DefaultGlobalManagersClient) listMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(gIface.interfaceName) - typeConverter := gIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(globalManagersListInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(globalManagersListOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.list method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.list method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "list") - errorDefinitions := make([]data.ErrorDefinition, 0) - gIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.list method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.list method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.list method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.list method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - gIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultGlobalManagersClient.list method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntitiesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntitiesClient.go index 04eec40de..964b9cf34 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntitiesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntitiesClient.go @@ -41,23 +41,45 @@ func NewDefaultRealizedEntitiesClient(connector client.Connector) *DefaultRealiz } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + rIface := DefaultRealizedEntitiesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} rIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) rIface.methodNameToDefMap["list"] = rIface.listMethodDefinition() return &rIface } -func (rIface *DefaultRealizedEntitiesClient) List(intentPathParam string) (model.GenericPolicyRealizedResourceListResult, error) { +func (rIface *DefaultRealizedEntitiesClient) List(intentPathParam string, sitePathParam *string) (model.GenericPolicyRealizedResourceListResult, error) { typeConverter := rIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(rIface.interfaceIdentifier, "list") sv := bindings.NewStructValueBuilder(realizedEntitiesListInputType(), typeConverter) sv.AddStructField("IntentPath", intentPathParam) + sv.AddStructField("SitePath", sitePathParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.GenericPolicyRealizedResourceListResult diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntityClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntityClient.go index 9f818d1a1..95c9d3315 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntityClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultRealizedEntityClient.go @@ -42,12 +42,33 @@ func NewDefaultRealizedEntityClient(connector client.Connector) *DefaultRealized } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + rIface := DefaultRealizedEntityClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} rIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) rIface.methodNameToDefMap["get"] = rIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultSitesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultSitesClient.go deleted file mode 100644 index 89f387eba..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultSitesClient.go +++ /dev/null @@ -1,349 +0,0 @@ - -/* Copyright © 2019 VMware, Inc. All Rights Reserved. - SPDX-License-Identifier: BSD-2-Clause */ - -// Code generated. DO NOT EDIT. - -/* - * Client stubs for service: Sites - * Functions that implement the generated SitesClient interface - */ - - -package realized_state - -import ( - "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" - "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors" - "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" - "github.com/vmware/vsphere-automation-sdk-go/runtime/core" - "github.com/vmware/vsphere-automation-sdk-go/runtime/data" - "github.com/vmware/vsphere-automation-sdk-go/runtime/lib" - "github.com/vmware/vsphere-automation-sdk-go/runtime/log" - "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" -) - -type DefaultSitesClient struct { - interfaceName string - interfaceDefinition core.InterfaceDefinition - methodIdentifiers []core.MethodIdentifier - methodNameToDefMap map[string]*core.MethodDefinition - errorBindingMap map[string]bindings.BindingType - interfaceIdentifier core.InterfaceIdentifier - connector client.Connector -} - -func NewDefaultSitesClient(connector client.Connector) *DefaultSitesClient { - interfaceName := "com.vmware.nsx_policy.infra.realized_state.sites" - interfaceIdentifier := core.NewInterfaceIdentifier(interfaceName) - methodIdentifiers := []core.MethodIdentifier{ - core.NewMethodIdentifier(interfaceIdentifier, "fullsync"), - core.NewMethodIdentifier(interfaceIdentifier, "get"), - core.NewMethodIdentifier(interfaceIdentifier, "list"), - } - interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) - errorBindingMap := make(map[string]bindings.BindingType) - errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() - errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() - errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() - sIface := DefaultSitesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} - sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) - sIface.methodNameToDefMap["fullsync"] = sIface.fullsyncMethodDefinition() - sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() - sIface.methodNameToDefMap["list"] = sIface.listMethodDefinition() - return &sIface -} - -func (sIface *DefaultSitesClient) Fullsync(siteIdParam string) error { - typeConverter := sIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "fullsync") - sv := bindings.NewStructValueBuilder(sitesFullsyncInputType(), typeConverter) - sv.AddStructField("SiteId", siteIdParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - return bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := sitesFullsyncRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - sIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := sIface.connector.NewExecutionContext() - methodResult := sIface.Invoke(executionContext, methodIdentifier, inputDataValue) - if methodResult.IsSuccess() { - return nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), sIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return bindings.VAPIerrorsToError(errorInError) - } - return methodError.(error) - } -} - -func (sIface *DefaultSitesClient) Get(siteIdParam string) (model.RealizedSite, error) { - typeConverter := sIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "get") - sv := bindings.NewStructValueBuilder(sitesGetInputType(), typeConverter) - sv.AddStructField("SiteId", siteIdParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - var emptyOutput model.RealizedSite - return emptyOutput, bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := sitesGetRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - sIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := sIface.connector.NewExecutionContext() - methodResult := sIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.RealizedSite - if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), sitesGetOutputType()) - if errorInOutput != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) - } - return output.(model.RealizedSite), nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), sIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInError) - } - return emptyOutput, methodError.(error) - } -} - -func (sIface *DefaultSitesClient) List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.RealizedSiteListResult, error) { - typeConverter := sIface.connector.TypeConverter() - methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "list") - sv := bindings.NewStructValueBuilder(sitesListInputType(), typeConverter) - sv.AddStructField("Cursor", cursorParam) - sv.AddStructField("IncludeMarkForDeleteObjects", includeMarkForDeleteObjectsParam) - sv.AddStructField("IncludedFields", includedFieldsParam) - sv.AddStructField("PageSize", pageSizeParam) - sv.AddStructField("SortAscending", sortAscendingParam) - sv.AddStructField("SortBy", sortByParam) - inputDataValue, inputError := sv.GetStructValue() - if inputError != nil { - var emptyOutput model.RealizedSiteListResult - return emptyOutput, bindings.VAPIerrorsToError(inputError) - } - operationRestMetaData := sitesListRestMetadata() - connectionMetadata := map[string]interface{}{lib.REST_METADATA: operationRestMetaData} - connectionMetadata["isStreamingResponse"] = false - sIface.connector.SetConnectionMetadata(connectionMetadata) - executionContext := sIface.connector.NewExecutionContext() - methodResult := sIface.Invoke(executionContext, methodIdentifier, inputDataValue) - var emptyOutput model.RealizedSiteListResult - if methodResult.IsSuccess() { - output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), sitesListOutputType()) - if errorInOutput != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInOutput) - } - return output.(model.RealizedSiteListResult), nil - } else { - methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), sIface.errorBindingMap[methodResult.Error().Name()]) - if errorInError != nil { - return emptyOutput, bindings.VAPIerrorsToError(errorInError) - } - return emptyOutput, methodError.(error) - } -} - - -func (sIface *DefaultSitesClient) Invoke(ctx *core.ExecutionContext, methodId core.MethodIdentifier, inputDataValue data.DataValue) core.MethodResult { - methodResult := sIface.connector.GetApiProvider().Invoke(sIface.interfaceName, methodId.Name(), inputDataValue, ctx) - return methodResult -} - - -func (sIface *DefaultSitesClient) fullsyncMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(sIface.interfaceName) - typeConverter := sIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(sitesFullsyncInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(sitesFullsyncOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.fullsync method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.fullsync method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "fullsync") - errorDefinitions := make([]data.ErrorDefinition, 0) - sIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.fullsync method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.fullsync method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.fullsync method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.fullsync method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.fullsync method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} - -func (sIface *DefaultSitesClient) getMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(sIface.interfaceName) - typeConverter := sIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(sitesGetInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(sitesGetOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.get method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.get method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "get") - errorDefinitions := make([]data.ErrorDefinition, 0) - sIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.get method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.get method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.get method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.get method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.get method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} - -func (sIface *DefaultSitesClient) listMethodDefinition() *core.MethodDefinition { - interfaceIdentifier := core.NewInterfaceIdentifier(sIface.interfaceName) - typeConverter := sIface.connector.TypeConverter() - - input, inputError := typeConverter.ConvertToDataDefinition(sitesListInputType()) - output, outputError := typeConverter.ConvertToDataDefinition(sitesListOutputType()) - if inputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.list method's input - %s", - bindings.VAPIerrorsToError(inputError).Error()) - return nil - } - if outputError != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.list method's output - %s", - bindings.VAPIerrorsToError(outputError).Error()) - return nil - } - methodIdentifier := core.NewMethodIdentifier(interfaceIdentifier, "list") - errorDefinitions := make([]data.ErrorDefinition, 0) - sIface.errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() - errDef1, errError1 := typeConverter.ConvertToDataDefinition(errors.InvalidRequestBindingType()) - if errError1 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.list method's errors.InvalidRequest error - %s", - bindings.VAPIerrorsToError(errError1).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef1.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() - errDef2, errError2 := typeConverter.ConvertToDataDefinition(errors.UnauthorizedBindingType()) - if errError2 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.list method's errors.Unauthorized error - %s", - bindings.VAPIerrorsToError(errError2).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef2.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() - errDef3, errError3 := typeConverter.ConvertToDataDefinition(errors.ServiceUnavailableBindingType()) - if errError3 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.list method's errors.ServiceUnavailable error - %s", - bindings.VAPIerrorsToError(errError3).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef3.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() - errDef4, errError4 := typeConverter.ConvertToDataDefinition(errors.InternalServerErrorBindingType()) - if errError4 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.list method's errors.InternalServerError error - %s", - bindings.VAPIerrorsToError(errError4).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef4.(data.ErrorDefinition)) - sIface.errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() - errDef5, errError5 := typeConverter.ConvertToDataDefinition(errors.NotFoundBindingType()) - if errError5 != nil { - log.Errorf("Error in ConvertToDataDefinition for DefaultSitesClient.list method's errors.NotFound error - %s", - bindings.VAPIerrorsToError(errError5).Error()) - return nil - } - errorDefinitions = append(errorDefinitions, errDef5.(data.ErrorDefinition)) - - methodDefinition := core.NewMethodDefinition(methodIdentifier, input, output, errorDefinitions) - return &methodDefinition -} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultStatusClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultStatusClient.go index 583570608..fe90d9440 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultStatusClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultStatusClient.go @@ -41,24 +41,46 @@ func NewDefaultStatusClient(connector client.Connector) *DefaultStatusClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStatusClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() return &sIface } -func (sIface *DefaultStatusClient) Get(intentPathParam string, includeEnforcedStatusParam *bool) (model.ConsolidatedRealizedStatus, error) { +func (sIface *DefaultStatusClient) Get(intentPathParam string, includeEnforcedStatusParam *bool, sitePathParam *string) (model.ConsolidatedRealizedStatus, error) { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "get") sv := bindings.NewStructValueBuilder(statusGetInputType(), typeConverter) sv.AddStructField("IntentPath", intentPathParam) sv.AddStructField("IncludeEnforcedStatus", includeEnforcedStatusParam) + sv.AddStructField("SitePath", sitePathParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.ConsolidatedRealizedStatus diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultUnassociatedVirtualMachinesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultUnassociatedVirtualMachinesClient.go index b17cc31e6..b31e4cf96 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultUnassociatedVirtualMachinesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultUnassociatedVirtualMachinesClient.go @@ -41,12 +41,33 @@ func NewDefaultUnassociatedVirtualMachinesClient(connector client.Connector) *De } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + uIface := DefaultUnassociatedVirtualMachinesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} uIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) uIface.methodNameToDefMap["list"] = uIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultVirtualMachinesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultVirtualMachinesClient.go index 0b015d8c0..c40fb9e40 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultVirtualMachinesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/DefaultVirtualMachinesClient.go @@ -41,12 +41,33 @@ func NewDefaultVirtualMachinesClient(connector client.Connector) *DefaultVirtual } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + vIface := DefaultVirtualMachinesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} vIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) vIface.methodNameToDefMap["list"] = vIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/EnforcementPointsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/EnforcementPointsTypes.go index a93544f90..1534d9f2a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/EnforcementPointsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/EnforcementPointsTypes.go @@ -44,6 +44,8 @@ func enforcementPointsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["enforcement_point_name"] = bindings.NewStringType() fieldNameMap["enforcement_point_name"] = "EnforcementPointName" paramsTypeMap["enforcement_point_name"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func enforcementPointsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/enforcement-points/{enforcementPointName}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func enforcementPointsListInputType() bindings.StructType { @@ -96,6 +102,8 @@ func enforcementPointsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -125,14 +133,18 @@ func enforcementPointsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/enforcement-points", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesClient.go index 1a7b94c36..129c659d6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesClient.go @@ -19,11 +19,12 @@ type RealizedEntitiesClient interface { // Get list of realized entities associated with intent object, specified by path in query parameter // // @param intentPathParam String Path of the intent object (required) + // @param sitePathParam Policy Path of the site (optional) // @return com.vmware.nsx_policy.model.GenericPolicyRealizedResourceListResult // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - List(intentPathParam string) (model.GenericPolicyRealizedResourceListResult, error) + List(intentPathParam string, sitePathParam *string) (model.GenericPolicyRealizedResourceListResult, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesTypes.go index 984b485e8..a5277a766 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntitiesTypes.go @@ -28,7 +28,9 @@ func realizedEntitiesListInputType() bindings.StructType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["intent_path"] = bindings.NewStringType() + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" + fieldNameMap["site_path"] = "SitePath" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -44,9 +46,15 @@ func realizedEntitiesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["intent_path"] = bindings.NewStringType() + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" + fieldNameMap["site_path"] = "SitePath" + paramsTypeMap["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) paramsTypeMap["intent_path"] = bindings.NewStringType() + queryParams["site_path"] = "site_path" queryParams["intent_path"] = "intent_path" resultHeaders := map[string]string{} errorHeaders := map[string]string{} @@ -57,14 +65,18 @@ func realizedEntitiesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/realized-entities", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntityTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntityTypes.go index 9efe2f046..a65b17fe4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntityTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/RealizedEntityTypes.go @@ -44,6 +44,8 @@ func realizedEntityGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["realized_path"] = bindings.NewStringType() fieldNameMap["realized_path"] = "RealizedPath" paramsTypeMap["realized_path"] = bindings.NewStringType() @@ -57,14 +59,18 @@ func realizedEntityGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/realized-entity", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func realizedEntityRefreshInputType() bindings.StructType { @@ -89,6 +95,8 @@ func realizedEntityRefreshRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["intent_path"] = bindings.NewStringType() fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" @@ -106,14 +114,18 @@ func realizedEntityRefreshRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=refresh", "", "POST", "/policy/api/v1/infra/realized-state/realized-entity", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/SitesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/SitesClient.go deleted file mode 100644 index fd6387f36..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/SitesClient.go +++ /dev/null @@ -1,55 +0,0 @@ -/* Copyright © 2019 VMware, Inc. All Rights Reserved. - SPDX-License-Identifier: BSD-2-Clause */ - -// Code generated. DO NOT EDIT. - -/* - * Interface file for service: Sites - * Used by client-side stubs. - */ - -package realized_state - -import ( - "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" -) - -type SitesClient interface { - - // Full sync a site. - // - // @param siteIdParam (required) - // @throws InvalidRequest Bad Request, Precondition Failed - // @throws Unauthorized Forbidden - // @throws ServiceUnavailable Service Unavailable - // @throws InternalServerError Internal Server Error - // @throws NotFound Not Found - Fullsync(siteIdParam string) error - - // Returns the realized state associated with the specified site. - // - // @param siteIdParam (required) - // @return com.vmware.nsx_policy.model.RealizedSite - // @throws InvalidRequest Bad Request, Precondition Failed - // @throws Unauthorized Forbidden - // @throws ServiceUnavailable Service Unavailable - // @throws InternalServerError Internal Server Error - // @throws NotFound Not Found - Get(siteIdParam string) (model.RealizedSite, error) - - // List All Site Realized States. - // - // @param cursorParam Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - // @param includeMarkForDeleteObjectsParam Include objects that are marked for deletion in results (optional, default to false) - // @param includedFieldsParam Comma separated list of fields that should be included in query result (optional) - // @param pageSizeParam Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - // @param sortAscendingParam (optional) - // @param sortByParam Field by which records are sorted (optional) - // @return com.vmware.nsx_policy.model.RealizedSiteListResult - // @throws InvalidRequest Bad Request, Precondition Failed - // @throws Unauthorized Forbidden - // @throws ServiceUnavailable Service Unavailable - // @throws InternalServerError Internal Server Error - // @throws NotFound Not Found - List(cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.RealizedSiteListResult, error) -} diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/SitesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/SitesTypes.go deleted file mode 100644 index 342781ab9..000000000 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/SitesTypes.go +++ /dev/null @@ -1,188 +0,0 @@ -/* Copyright © 2019 VMware, Inc. All Rights Reserved. - SPDX-License-Identifier: BSD-2-Clause */ - -// Code generated. DO NOT EDIT. - -/* - * Data type definitions file for service: Sites. - * Includes binding types of a structures and enumerations defined in the service. - * Shared by client-side stubs and server-side skeletons to ensure type - * compatibility. - */ - -package realized_state - -import ( - "reflect" - "github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model" - "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" - "github.com/vmware/vsphere-automation-sdk-go/runtime/data" - "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol" -) - - - - - -func sitesFullsyncInputType() bindings.StructType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["site_id"] = bindings.NewStringType() - fieldNameMap["site_id"] = "SiteId" - var validators = []bindings.Validator{} - return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) -} - -func sitesFullsyncOutputType() bindings.BindingType { - return bindings.NewVoidType() -} - -func sitesFullsyncRestMetadata() protocol.OperationRestMetadata { - fields := map[string]bindings.BindingType{} - fieldNameMap := map[string]string{} - paramsTypeMap := map[string]bindings.BindingType{} - pathParams := map[string]string{} - queryParams := map[string]string{} - headerParams := map[string]string{} - fields["site_id"] = bindings.NewStringType() - fieldNameMap["site_id"] = "SiteId" - paramsTypeMap["site_id"] = bindings.NewStringType() - paramsTypeMap["siteId"] = bindings.NewStringType() - pathParams["site_id"] = "siteId" - resultHeaders := map[string]string{} - errorHeaders := map[string]string{} - return protocol.NewOperationRestMetadata( - fields, - fieldNameMap, - paramsTypeMap, - pathParams, - queryParams, - headerParams, - "action=full_sync", - "", - "POST", - "/policy/api/v1/infra/realized-state/sites/{siteId}", - resultHeaders, - 204, - errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) -} - -func sitesGetInputType() bindings.StructType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["site_id"] = bindings.NewStringType() - fieldNameMap["site_id"] = "SiteId" - var validators = []bindings.Validator{} - return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) -} - -func sitesGetOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.RealizedSiteBindingType) -} - -func sitesGetRestMetadata() protocol.OperationRestMetadata { - fields := map[string]bindings.BindingType{} - fieldNameMap := map[string]string{} - paramsTypeMap := map[string]bindings.BindingType{} - pathParams := map[string]string{} - queryParams := map[string]string{} - headerParams := map[string]string{} - fields["site_id"] = bindings.NewStringType() - fieldNameMap["site_id"] = "SiteId" - paramsTypeMap["site_id"] = bindings.NewStringType() - paramsTypeMap["siteId"] = bindings.NewStringType() - pathParams["site_id"] = "siteId" - resultHeaders := map[string]string{} - errorHeaders := map[string]string{} - return protocol.NewOperationRestMetadata( - fields, - fieldNameMap, - paramsTypeMap, - pathParams, - queryParams, - headerParams, - "", - "", - "GET", - "/policy/api/v1/infra/realized-state/sites/{siteId}", - resultHeaders, - 200, - errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) -} - -func sitesListInputType() bindings.StructType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) - fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fieldNameMap["include_mark_for_delete_objects"] = "IncludeMarkForDeleteObjects" - fieldNameMap["included_fields"] = "IncludedFields" - fieldNameMap["page_size"] = "PageSize" - fieldNameMap["sort_ascending"] = "SortAscending" - fieldNameMap["sort_by"] = "SortBy" - var validators = []bindings.Validator{} - return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) -} - -func sitesListOutputType() bindings.BindingType { - return bindings.NewReferenceType(model.RealizedSiteListResultBindingType) -} - -func sitesListRestMetadata() protocol.OperationRestMetadata { - fields := map[string]bindings.BindingType{} - fieldNameMap := map[string]string{} - paramsTypeMap := map[string]bindings.BindingType{} - pathParams := map[string]string{} - queryParams := map[string]string{} - headerParams := map[string]string{} - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) - fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fieldNameMap["include_mark_for_delete_objects"] = "IncludeMarkForDeleteObjects" - fieldNameMap["included_fields"] = "IncludedFields" - fieldNameMap["page_size"] = "PageSize" - fieldNameMap["sort_ascending"] = "SortAscending" - fieldNameMap["sort_by"] = "SortBy" - paramsTypeMap["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) - paramsTypeMap["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) - paramsTypeMap["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) - paramsTypeMap["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - paramsTypeMap["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - paramsTypeMap["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - queryParams["cursor"] = "cursor" - queryParams["sort_ascending"] = "sort_ascending" - queryParams["included_fields"] = "included_fields" - queryParams["sort_by"] = "sort_by" - queryParams["include_mark_for_delete_objects"] = "include_mark_for_delete_objects" - queryParams["page_size"] = "page_size" - resultHeaders := map[string]string{} - errorHeaders := map[string]string{} - return protocol.NewOperationRestMetadata( - fields, - fieldNameMap, - paramsTypeMap, - pathParams, - queryParams, - headerParams, - "", - "", - "GET", - "/policy/api/v1/infra/realized-state/sites", - resultHeaders, - 200, - errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) -} - - diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusClient.go index b17d4fb62..54846ea59 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusClient.go @@ -20,11 +20,12 @@ type StatusClient interface { // // @param intentPathParam Policy Path of the intent object (required) // @param includeEnforcedStatusParam Include Enforced Status Flag (optional, default to false) + // @param sitePathParam Policy Path of the site from where the realization status needs to be fetched (optional) // @return com.vmware.nsx_policy.model.ConsolidatedRealizedStatus // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Get(intentPathParam string, includeEnforcedStatusParam *bool) (model.ConsolidatedRealizedStatus, error) + Get(intentPathParam string, includeEnforcedStatusParam *bool, sitePathParam *string) (model.ConsolidatedRealizedStatus, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusTypes.go index 6b87d81b3..007a998d1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/StatusTypes.go @@ -29,8 +29,10 @@ func statusGetInputType() bindings.StructType { fieldNameMap := make(map[string]string) fields["intent_path"] = bindings.NewStringType() fields["include_enforced_status"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" fieldNameMap["include_enforced_status"] = "IncludeEnforcedStatus" + fieldNameMap["site_path"] = "SitePath" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -46,12 +48,18 @@ func statusGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["intent_path"] = bindings.NewStringType() fields["include_enforced_status"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" fieldNameMap["include_enforced_status"] = "IncludeEnforcedStatus" + fieldNameMap["site_path"] = "SitePath" + paramsTypeMap["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) paramsTypeMap["include_enforced_status"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["intent_path"] = bindings.NewStringType() + queryParams["site_path"] = "site_path" queryParams["intent_path"] = "intent_path" queryParams["include_enforced_status"] = "include_enforced_status" resultHeaders := map[string]string{} @@ -63,14 +71,18 @@ func statusGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/status", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/UnassociatedVirtualMachinesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/UnassociatedVirtualMachinesTypes.go index 41b944cf1..e74ce33f9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/UnassociatedVirtualMachinesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/UnassociatedVirtualMachinesTypes.go @@ -56,6 +56,8 @@ func unassociatedVirtualMachinesListRestMetadata() protocol.OperationRestMetadat pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -93,14 +95,18 @@ func unassociatedVirtualMachinesListRestMetadata() protocol.OperationRestMetadat pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/unassociated-virtual-machines", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/VirtualMachinesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/VirtualMachinesTypes.go index c497bec22..450460086 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/VirtualMachinesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/VirtualMachinesTypes.go @@ -56,6 +56,8 @@ func virtualMachinesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -93,14 +95,18 @@ func virtualMachinesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/virtual-machines", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVifsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVifsClient.go index 8ca1640b0..25a3738fc 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVifsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVifsClient.go @@ -41,12 +41,33 @@ func NewDefaultVifsClient(connector client.Connector) *DefaultVifsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + vIface := DefaultVifsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} vIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) vIface.methodNameToDefMap["list"] = vIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVirtualMachinesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVirtualMachinesClient.go index 5a55869aa..5e812b3e5 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVirtualMachinesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/DefaultVirtualMachinesClient.go @@ -42,12 +42,33 @@ func NewDefaultVirtualMachinesClient(connector client.Connector) *DefaultVirtual } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + vIface := DefaultVirtualMachinesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} vIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) vIface.methodNameToDefMap["list"] = vIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VifsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VifsTypes.go index fd3d1a3b0..87208ec03 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VifsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VifsTypes.go @@ -56,6 +56,8 @@ func vifsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["enforcement_point_name"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -94,14 +96,18 @@ func vifsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/enforcement-points/{enforcementPointName}/vifs", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VirtualMachinesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VirtualMachinesTypes.go index c69d02cc9..88b22a6ec 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VirtualMachinesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/realized_state/enforcement_points/VirtualMachinesTypes.go @@ -58,6 +58,8 @@ func virtualMachinesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["enforcement_point_name"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["dsl"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -100,14 +102,18 @@ func virtualMachinesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/realized-state/enforcement-points/{enforcementPointName}/virtual-machines", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func virtualMachinesUpdatetagsInputType() bindings.StructType { @@ -132,6 +138,8 @@ func virtualMachinesUpdatetagsRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["enforcement_point_name"] = bindings.NewStringType() fields["virtual_machine_tags_update"] = bindings.NewReferenceType(model.VirtualMachineTagsUpdateBindingType) fieldNameMap["enforcement_point_name"] = "EnforcementPointName" @@ -149,14 +157,18 @@ func virtualMachinesUpdatetagsRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=update_tags", "virtual_machine_tags_update", "POST", "/policy/api/v1/infra/realized-state/enforcement-points/{enforcementPointName}/virtual-machines", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ArpTableTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ArpTableTypes.go index a1afcae98..fa6c8f3e1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ArpTableTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ArpTableTypes.go @@ -58,6 +58,8 @@ func arpTableListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -100,14 +102,18 @@ func arpTableListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/arp-table", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultArpTableClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultArpTableClient.go index 1346cd2c0..9603592c4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultArpTableClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultArpTableClient.go @@ -41,12 +41,33 @@ func NewDefaultArpTableClient(connector client.Connector) *DefaultArpTableClient } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + aIface := DefaultArpTableClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} aIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) aIface.methodNameToDefMap["list"] = aIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultDhcpStaticBindingConfigsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultDhcpStaticBindingConfigsClient.go index e60ff3f15..05a12424c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultDhcpStaticBindingConfigsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultDhcpStaticBindingConfigsClient.go @@ -45,12 +45,33 @@ func NewDefaultDhcpStaticBindingConfigsClient(connector client.Connector) *Defau } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDhcpStaticBindingConfigsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["delete"] = dIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultPortsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultPortsClient.go index de4f53792..2336e648b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultPortsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultPortsClient.go @@ -45,12 +45,33 @@ func NewDefaultPortsClient(connector client.Connector) *DefaultPortsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + pIface := DefaultPortsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} pIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) pIface.methodNameToDefMap["delete"] = pIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentDiscoveryProfileBindingMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentDiscoveryProfileBindingMapsClient.go index 718063c16..63c9249f2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentDiscoveryProfileBindingMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentDiscoveryProfileBindingMapsClient.go @@ -45,12 +45,33 @@ func NewDefaultSegmentDiscoveryProfileBindingMapsClient(connector client.Connect } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSegmentDiscoveryProfileBindingMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentMonitoringProfileBindingMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentMonitoringProfileBindingMapsClient.go index 9347e695a..3b5b8af3a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentMonitoringProfileBindingMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentMonitoringProfileBindingMapsClient.go @@ -45,12 +45,33 @@ func NewDefaultSegmentMonitoringProfileBindingMapsClient(connector client.Connec } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSegmentMonitoringProfileBindingMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentQosProfileBindingMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentQosProfileBindingMapsClient.go index 8459c31d2..5007027d0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentQosProfileBindingMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentQosProfileBindingMapsClient.go @@ -45,12 +45,33 @@ func NewDefaultSegmentQosProfileBindingMapsClient(connector client.Connector) *D } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSegmentQosProfileBindingMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentSecurityProfileBindingMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentSecurityProfileBindingMapsClient.go index 43396aa21..6dd1eb5db 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentSecurityProfileBindingMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultSegmentSecurityProfileBindingMapsClient.go @@ -45,12 +45,33 @@ func NewDefaultSegmentSecurityProfileBindingMapsClient(connector client.Connecto } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSegmentSecurityProfileBindingMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultServiceSegmentsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultServiceSegmentsClient.go index 2e3eb50a1..38604b31e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultServiceSegmentsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultServiceSegmentsClient.go @@ -45,12 +45,33 @@ func NewDefaultServiceSegmentsClient(connector client.Connector) *DefaultService } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultServiceSegmentsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStateClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStateClient.go index 853d006b7..5d09c1720 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStateClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStateClient.go @@ -41,12 +41,33 @@ func NewDefaultStateClient(connector client.Connector) *DefaultStateClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStateClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStatisticsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStatisticsClient.go index e7ecdb981..0dc630337 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStatisticsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DefaultStatisticsClient.go @@ -41,12 +41,33 @@ func NewDefaultStatisticsClient(connector client.Connector) *DefaultStatisticsCl } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStatisticsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DhcpStaticBindingConfigsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DhcpStaticBindingConfigsTypes.go index 91d136901..cf51478ba 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DhcpStaticBindingConfigsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/DhcpStaticBindingConfigsTypes.go @@ -46,6 +46,8 @@ func dhcpStaticBindingConfigsDeleteRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["binding_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -65,14 +67,18 @@ func dhcpStaticBindingConfigsDeleteRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/{segmentId}/dhcp-static-binding-configs/{bindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpStaticBindingConfigsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func dhcpStaticBindingConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["binding_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -116,14 +124,18 @@ func dhcpStaticBindingConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/dhcp-static-binding-configs/{bindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpStaticBindingConfigsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func dhcpStaticBindingConfigsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func dhcpStaticBindingConfigsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/dhcp-static-binding-configs", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpStaticBindingConfigsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func dhcpStaticBindingConfigsPatchRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["binding_id"] = bindings.NewStringType() fields["dhcp_static_binding_config"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.DhcpStaticBindingConfigBindingType),}, bindings.REST) @@ -252,14 +272,18 @@ func dhcpStaticBindingConfigsPatchRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dhcp_static_binding_config", "PATCH", "/policy/api/v1/infra/segments/{segmentId}/dhcp-static-binding-configs/{bindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dhcpStaticBindingConfigsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func dhcpStaticBindingConfigsUpdateRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["binding_id"] = bindings.NewStringType() fields["dhcp_static_binding_config"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(model.DhcpStaticBindingConfigBindingType),}, bindings.REST) @@ -308,14 +334,18 @@ func dhcpStaticBindingConfigsUpdateRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "dhcp_static_binding_config", "PUT", "/policy/api/v1/infra/segments/{segmentId}/dhcp-static-binding-configs/{bindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/PortsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/PortsTypes.go index 0ebb5700a..0e171416e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/PortsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/PortsTypes.go @@ -46,6 +46,8 @@ func portsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["port_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -65,14 +67,18 @@ func portsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/{segmentId}/ports/{portId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func portsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["port_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -116,14 +124,18 @@ func portsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/ports/{portId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func portsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func portsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/ports", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func portsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["port_id"] = bindings.NewStringType() fields["segment_port"] = bindings.NewReferenceType(model.SegmentPortBindingType) @@ -252,14 +272,18 @@ func portsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_port", "PATCH", "/policy/api/v1/infra/segments/{segmentId}/ports/{portId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func portsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func portsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["port_id"] = bindings.NewStringType() fields["segment_port"] = bindings.NewReferenceType(model.SegmentPortBindingType) @@ -308,14 +334,18 @@ func portsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_port", "PUT", "/policy/api/v1/infra/segments/{segmentId}/ports/{portId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentDiscoveryProfileBindingMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentDiscoveryProfileBindingMapsTypes.go index fd97c700b..f5fa4899e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentDiscoveryProfileBindingMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentDiscoveryProfileBindingMapsTypes.go @@ -46,6 +46,8 @@ func segmentDiscoveryProfileBindingMapsDeleteRestMetadata() protocol.OperationRe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_discovery_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["infra_segment_id"] = "InfraSegmentId" @@ -65,14 +67,18 @@ func segmentDiscoveryProfileBindingMapsDeleteRestMetadata() protocol.OperationRe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-discovery-profile-binding-maps/{segmentDiscoveryProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentDiscoveryProfileBindingMapsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func segmentDiscoveryProfileBindingMapsGetRestMetadata() protocol.OperationRestM pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_discovery_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["infra_segment_id"] = "InfraSegmentId" @@ -116,14 +124,18 @@ func segmentDiscoveryProfileBindingMapsGetRestMetadata() protocol.OperationRestM pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-discovery-profile-binding-maps/{segmentDiscoveryProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentDiscoveryProfileBindingMapsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func segmentDiscoveryProfileBindingMapsListRestMetadata() protocol.OperationRest pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func segmentDiscoveryProfileBindingMapsListRestMetadata() protocol.OperationRest pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-discovery-profile-binding-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentDiscoveryProfileBindingMapsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func segmentDiscoveryProfileBindingMapsPatchRestMetadata() protocol.OperationRes pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_discovery_profile_binding_map_id"] = bindings.NewStringType() fields["segment_discovery_profile_binding_map"] = bindings.NewReferenceType(model.SegmentDiscoveryProfileBindingMapBindingType) @@ -252,14 +272,18 @@ func segmentDiscoveryProfileBindingMapsPatchRestMetadata() protocol.OperationRes pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_discovery_profile_binding_map", "PATCH", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-discovery-profile-binding-maps/{segmentDiscoveryProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentDiscoveryProfileBindingMapsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func segmentDiscoveryProfileBindingMapsUpdateRestMetadata() protocol.OperationRe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_discovery_profile_binding_map_id"] = bindings.NewStringType() fields["segment_discovery_profile_binding_map"] = bindings.NewReferenceType(model.SegmentDiscoveryProfileBindingMapBindingType) @@ -308,14 +334,18 @@ func segmentDiscoveryProfileBindingMapsUpdateRestMetadata() protocol.OperationRe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_discovery_profile_binding_map", "PUT", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-discovery-profile-binding-maps/{segmentDiscoveryProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentMonitoringProfileBindingMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentMonitoringProfileBindingMapsTypes.go index e60984bf1..e6288c438 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentMonitoringProfileBindingMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentMonitoringProfileBindingMapsTypes.go @@ -46,6 +46,8 @@ func segmentMonitoringProfileBindingMapsDeleteRestMetadata() protocol.OperationR pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_monitoring_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["infra_segment_id"] = "InfraSegmentId" @@ -65,14 +67,18 @@ func segmentMonitoringProfileBindingMapsDeleteRestMetadata() protocol.OperationR pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-monitoring-profile-binding-maps/{segmentMonitoringProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentMonitoringProfileBindingMapsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func segmentMonitoringProfileBindingMapsGetRestMetadata() protocol.OperationRest pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_monitoring_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["infra_segment_id"] = "InfraSegmentId" @@ -116,14 +124,18 @@ func segmentMonitoringProfileBindingMapsGetRestMetadata() protocol.OperationRest pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-monitoring-profile-binding-maps/{segmentMonitoringProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentMonitoringProfileBindingMapsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func segmentMonitoringProfileBindingMapsListRestMetadata() protocol.OperationRes pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func segmentMonitoringProfileBindingMapsListRestMetadata() protocol.OperationRes pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-monitoring-profile-binding-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentMonitoringProfileBindingMapsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func segmentMonitoringProfileBindingMapsPatchRestMetadata() protocol.OperationRe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_monitoring_profile_binding_map_id"] = bindings.NewStringType() fields["segment_monitoring_profile_binding_map"] = bindings.NewReferenceType(model.SegmentMonitoringProfileBindingMapBindingType) @@ -252,14 +272,18 @@ func segmentMonitoringProfileBindingMapsPatchRestMetadata() protocol.OperationRe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_monitoring_profile_binding_map", "PATCH", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-monitoring-profile-binding-maps/{segmentMonitoringProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentMonitoringProfileBindingMapsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func segmentMonitoringProfileBindingMapsUpdateRestMetadata() protocol.OperationR pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["infra_segment_id"] = bindings.NewStringType() fields["segment_monitoring_profile_binding_map_id"] = bindings.NewStringType() fields["segment_monitoring_profile_binding_map"] = bindings.NewReferenceType(model.SegmentMonitoringProfileBindingMapBindingType) @@ -308,14 +334,18 @@ func segmentMonitoringProfileBindingMapsUpdateRestMetadata() protocol.OperationR pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_monitoring_profile_binding_map", "PUT", "/policy/api/v1/infra/segments/{infraSegmentId}/segment-monitoring-profile-binding-maps/{segmentMonitoringProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentQosProfileBindingMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentQosProfileBindingMapsTypes.go index 23e3b495f..4ee0ba55f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentQosProfileBindingMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentQosProfileBindingMapsTypes.go @@ -46,6 +46,8 @@ func segmentQosProfileBindingMapsDeleteRestMetadata() protocol.OperationRestMeta pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_qos_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -65,14 +67,18 @@ func segmentQosProfileBindingMapsDeleteRestMetadata() protocol.OperationRestMeta pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/{segmentId}/segment-qos-profile-binding-maps/{segmentQosProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentQosProfileBindingMapsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func segmentQosProfileBindingMapsGetRestMetadata() protocol.OperationRestMetadat pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_qos_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -116,14 +124,18 @@ func segmentQosProfileBindingMapsGetRestMetadata() protocol.OperationRestMetadat pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/segment-qos-profile-binding-maps/{segmentQosProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentQosProfileBindingMapsListInputType() bindings.StructType { @@ -156,6 +168,8 @@ func segmentQosProfileBindingMapsListRestMetadata() protocol.OperationRestMetada pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -190,14 +204,18 @@ func segmentQosProfileBindingMapsListRestMetadata() protocol.OperationRestMetada pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/segment-qos-profile-binding-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentQosProfileBindingMapsPatchInputType() bindings.StructType { @@ -224,6 +242,8 @@ func segmentQosProfileBindingMapsPatchRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_qos_profile_binding_map_id"] = bindings.NewStringType() fields["segment_qos_profile_binding_map"] = bindings.NewReferenceType(model.SegmentQosProfileBindingMapBindingType) @@ -246,14 +266,18 @@ func segmentQosProfileBindingMapsPatchRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_qos_profile_binding_map", "PATCH", "/policy/api/v1/infra/segments/{segmentId}/segment-qos-profile-binding-maps/{segmentQosProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentQosProfileBindingMapsUpdateInputType() bindings.StructType { @@ -280,6 +304,8 @@ func segmentQosProfileBindingMapsUpdateRestMetadata() protocol.OperationRestMeta pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_qos_profile_binding_map_id"] = bindings.NewStringType() fields["segment_qos_profile_binding_map"] = bindings.NewReferenceType(model.SegmentQosProfileBindingMapBindingType) @@ -302,14 +328,18 @@ func segmentQosProfileBindingMapsUpdateRestMetadata() protocol.OperationRestMeta pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_qos_profile_binding_map", "PUT", "/policy/api/v1/infra/segments/{segmentId}/segment-qos-profile-binding-maps/{segmentQosProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentSecurityProfileBindingMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentSecurityProfileBindingMapsTypes.go index 4476eabc0..a20e4e80b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentSecurityProfileBindingMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/SegmentSecurityProfileBindingMapsTypes.go @@ -46,6 +46,8 @@ func segmentSecurityProfileBindingMapsDeleteRestMetadata() protocol.OperationRes pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_security_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -65,14 +67,18 @@ func segmentSecurityProfileBindingMapsDeleteRestMetadata() protocol.OperationRes pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/{segmentId}/segment-security-profile-binding-maps/{segmentSecurityProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfileBindingMapsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func segmentSecurityProfileBindingMapsGetRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_security_profile_binding_map_id"] = bindings.NewStringType() fieldNameMap["segment_id"] = "SegmentId" @@ -116,14 +124,18 @@ func segmentSecurityProfileBindingMapsGetRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/segment-security-profile-binding-maps/{segmentSecurityProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfileBindingMapsListInputType() bindings.StructType { @@ -156,6 +168,8 @@ func segmentSecurityProfileBindingMapsListRestMetadata() protocol.OperationRestM pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -190,14 +204,18 @@ func segmentSecurityProfileBindingMapsListRestMetadata() protocol.OperationRestM pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentId}/segment-security-profile-binding-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfileBindingMapsPatchInputType() bindings.StructType { @@ -224,6 +242,8 @@ func segmentSecurityProfileBindingMapsPatchRestMetadata() protocol.OperationRest pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_security_profile_binding_map_id"] = bindings.NewStringType() fields["segment_security_profile_binding_map"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingMapBindingType) @@ -246,14 +266,18 @@ func segmentSecurityProfileBindingMapsPatchRestMetadata() protocol.OperationRest pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_security_profile_binding_map", "PATCH", "/policy/api/v1/infra/segments/{segmentId}/segment-security-profile-binding-maps/{segmentSecurityProfileBindingMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentSecurityProfileBindingMapsUpdateInputType() bindings.StructType { @@ -280,6 +304,8 @@ func segmentSecurityProfileBindingMapsUpdateRestMetadata() protocol.OperationRes pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segment_id"] = bindings.NewStringType() fields["segment_security_profile_binding_map_id"] = bindings.NewStringType() fields["segment_security_profile_binding_map"] = bindings.NewReferenceType(model.SegmentSecurityProfileBindingMapBindingType) @@ -302,14 +328,18 @@ func segmentSecurityProfileBindingMapsUpdateRestMetadata() protocol.OperationRes pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment_security_profile_binding_map", "PUT", "/policy/api/v1/infra/segments/{segmentId}/segment-security-profile-binding-maps/{segmentSecurityProfileBindingMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ServiceSegmentsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ServiceSegmentsTypes.go index 3a76c97bb..dca9af0b3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ServiceSegmentsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/ServiceSegmentsTypes.go @@ -44,6 +44,8 @@ func serviceSegmentsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_segment_id"] = bindings.NewStringType() fieldNameMap["service_segment_id"] = "ServiceSegmentId" paramsTypeMap["service_segment_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func serviceSegmentsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/segments/service-segments/{serviceSegmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceSegmentsGetInputType() bindings.StructType { @@ -88,6 +94,8 @@ func serviceSegmentsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_segment_id"] = bindings.NewStringType() fieldNameMap["service_segment_id"] = "ServiceSegmentId" paramsTypeMap["service_segment_id"] = bindings.NewStringType() @@ -102,14 +110,18 @@ func serviceSegmentsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/service-segments/{serviceSegmentId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceSegmentsListInputType() bindings.StructType { @@ -140,6 +152,8 @@ func serviceSegmentsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["included_fields"] = bindings.NewOptionalType(bindings.NewStringType()) fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -169,14 +183,18 @@ func serviceSegmentsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/service-segments", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceSegmentsPatchInputType() bindings.StructType { @@ -201,6 +219,8 @@ func serviceSegmentsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_segment_id"] = bindings.NewStringType() fields["service_segment"] = bindings.NewReferenceType(model.ServiceSegmentBindingType) fieldNameMap["service_segment_id"] = "ServiceSegmentId" @@ -218,14 +238,18 @@ func serviceSegmentsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service_segment", "PATCH", "/policy/api/v1/infra/segments/service-segments/{serviceSegmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceSegmentsUpdateInputType() bindings.StructType { @@ -250,6 +274,8 @@ func serviceSegmentsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["service_segment_id"] = bindings.NewStringType() fields["service_segment"] = bindings.NewReferenceType(model.ServiceSegmentBindingType) fieldNameMap["service_segment_id"] = "ServiceSegmentId" @@ -267,14 +293,18 @@ func serviceSegmentsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service_segment", "PUT", "/policy/api/v1/infra/segments/service-segments/{serviceSegmentId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StateTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StateTypes.go index 69fa3c9b2..40ba1847b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StateTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StateTypes.go @@ -60,6 +60,8 @@ func stateGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segments_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -106,14 +108,18 @@ func stateGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentsId}/state", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StatisticsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StatisticsTypes.go index dded37d0f..531200372 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StatisticsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/segments/StatisticsTypes.go @@ -60,6 +60,8 @@ func statisticsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["segments_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -106,14 +108,18 @@ func statisticsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/segments/{segmentsId}/statistics", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeBridgeProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeBridgeProfilesClient.go index 2766280b8..08c4a6bcd 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeBridgeProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeBridgeProfilesClient.go @@ -45,12 +45,33 @@ func NewDefaultEdgeBridgeProfilesClient(connector client.Connector) *DefaultEdge } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultEdgeBridgeProfilesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["delete"] = eIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeClustersClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeClustersClient.go index b58cb4d61..7c43d0a62 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeClustersClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultEdgeClustersClient.go @@ -42,12 +42,33 @@ func NewDefaultEdgeClustersClient(connector client.Connector) *DefaultEdgeCluste } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultEdgeClustersClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["get"] = eIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultTransportZonesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultTransportZonesClient.go index 2e21f8ab6..dbe5291c0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultTransportZonesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/DefaultTransportZonesClient.go @@ -42,12 +42,33 @@ func NewDefaultTransportZonesClient(connector client.Connector) *DefaultTranspor } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + tIface := DefaultTransportZonesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} tIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) tIface.methodNameToDefMap["get"] = tIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesClient.go index eeb3a479a..f9635f754 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesClient.go @@ -58,7 +58,7 @@ type EdgeBridgeProfilesClient interface { // @throws NotFound Not Found List(siteIdParam string, enforcementPointIdParam string, cursorParam *string, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.L2BridgeEndpointProfileListResult, error) - // API will create or update L2 bridge profile with ID profile-id + // API will create or update L2 bridge profile with ID profile-id. L2 Bridge profile is only allowed under an enforcement-point with path /infra/sites/default/enforcement-points/default. // // @param siteIdParam site ID (required) // @param enforcementPointIdParam enforcement point ID (required) @@ -71,7 +71,7 @@ type EdgeBridgeProfilesClient interface { // @throws NotFound Not Found Patch(siteIdParam string, enforcementPointIdParam string, profileIdParam string, l2BridgeEndpointProfileParam model.L2BridgeEndpointProfile) error - // API will create or update L2 bridge profile with ID profile-id + // API will create or update L2 bridge profile with ID profile-id. L2 Bridge profile is only allowed under an enforcement-point with path /infra/sites/default/enforcement-points/default. // // @param siteIdParam site ID (required) // @param enforcementPointIdParam enforcement point ID (required) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesTypes.go index 9cbe3714c..10050f587 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeBridgeProfilesTypes.go @@ -48,6 +48,8 @@ func edgeBridgeProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["profile_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func edgeBridgeProfilesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-bridge-profiles/{profileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func edgeBridgeProfilesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func edgeBridgeProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["profile_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func edgeBridgeProfilesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-bridge-profiles/{profileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func edgeBridgeProfilesListInputType() bindings.StructType { @@ -172,6 +184,8 @@ func edgeBridgeProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -211,14 +225,18 @@ func edgeBridgeProfilesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-bridge-profiles", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func edgeBridgeProfilesPatchInputType() bindings.StructType { @@ -247,6 +265,8 @@ func edgeBridgeProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["profile_id"] = bindings.NewStringType() @@ -274,14 +294,18 @@ func edgeBridgeProfilesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l2_bridge_endpoint_profile", "PATCH", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-bridge-profiles/{profileId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func edgeBridgeProfilesUpdateInputType() bindings.StructType { @@ -310,6 +334,8 @@ func edgeBridgeProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["profile_id"] = bindings.NewStringType() @@ -337,14 +363,18 @@ func edgeBridgeProfilesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l2_bridge_endpoint_profile", "PUT", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-bridge-profiles/{profileId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeClustersTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeClustersTypes.go index 131420723..513da4a84 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeClustersTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/EdgeClustersTypes.go @@ -48,6 +48,8 @@ func edgeClustersGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcementpoint_id"] = bindings.NewStringType() fields["edge_cluster_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func edgeClustersGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementpointId}/edge-clusters/{edgeClusterId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func edgeClustersListInputType() bindings.StructType { @@ -116,6 +122,8 @@ func edgeClustersListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcementpoint_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -159,14 +167,18 @@ func edgeClustersListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementpointId}/edge-clusters", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/TransportZonesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/TransportZonesTypes.go index 4ba6b59a5..6056c03a3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/TransportZonesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/TransportZonesTypes.go @@ -48,6 +48,8 @@ func transportZonesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcementpoint_id"] = bindings.NewStringType() fields["transport_zone_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func transportZonesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementpointId}/transport-zones/{transportZoneId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func transportZonesListInputType() bindings.StructType { @@ -116,6 +122,8 @@ func transportZonesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcementpoint_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -159,14 +167,18 @@ func transportZonesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementpointId}/transport-zones", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultEdgeNodesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultEdgeNodesClient.go index 366cd759f..58197269d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultEdgeNodesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultEdgeNodesClient.go @@ -42,12 +42,33 @@ func NewDefaultEdgeNodesClient(connector client.Connector) *DefaultEdgeNodesClie } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultEdgeNodesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["get"] = eIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultUrlCategorizationConfigsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultUrlCategorizationConfigsClient.go index e7dac2b72..5d5092078 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultUrlCategorizationConfigsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/DefaultUrlCategorizationConfigsClient.go @@ -44,12 +44,33 @@ func NewDefaultUrlCategorizationConfigsClient(connector client.Connector) *Defau } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + uIface := DefaultUrlCategorizationConfigsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} uIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) uIface.methodNameToDefMap["delete"] = uIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/EdgeNodesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/EdgeNodesTypes.go index 9a6448831..5b7a3f551 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/EdgeNodesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/EdgeNodesTypes.go @@ -50,6 +50,8 @@ func edgeNodesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcementpoint_id"] = bindings.NewStringType() fields["edge_cluster_id"] = bindings.NewStringType() @@ -79,14 +81,18 @@ func edgeNodesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementpointId}/edge-clusters/{edgeClusterId}/edge-nodes/{edgeNodeId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func edgeNodesListInputType() bindings.StructType { @@ -125,6 +131,8 @@ func edgeNodesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcementpoint_id"] = bindings.NewStringType() fields["edge_cluster_id"] = bindings.NewStringType() @@ -173,14 +181,18 @@ func edgeNodesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementpointId}/edge-clusters/{edgeClusterId}/edge-nodes", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/UrlCategorizationConfigsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/UrlCategorizationConfigsTypes.go index 04893cbbb..55367e84d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/UrlCategorizationConfigsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/sites/enforcement_points/edge_clusters/UrlCategorizationConfigsTypes.go @@ -50,6 +50,8 @@ func urlCategorizationConfigsDeleteRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["edge_cluster_id"] = bindings.NewStringType() @@ -79,14 +81,18 @@ func urlCategorizationConfigsDeleteRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-clusters/{edgeClusterId}/url-categorization-configs/{urlCategorizationConfigId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func urlCategorizationConfigsGetInputType() bindings.StructType { @@ -115,6 +121,8 @@ func urlCategorizationConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["edge_cluster_id"] = bindings.NewStringType() @@ -144,14 +152,18 @@ func urlCategorizationConfigsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-clusters/{edgeClusterId}/url-categorization-configs/{urlCategorizationConfigId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func urlCategorizationConfigsPatchInputType() bindings.StructType { @@ -182,6 +194,8 @@ func urlCategorizationConfigsPatchRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["edge_cluster_id"] = bindings.NewStringType() @@ -214,14 +228,18 @@ func urlCategorizationConfigsPatchRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_url_categorization_config", "PATCH", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-clusters/{edgeClusterId}/url-categorization-configs/{urlCategorizationConfigId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func urlCategorizationConfigsUpdateInputType() bindings.StructType { @@ -252,6 +270,8 @@ func urlCategorizationConfigsUpdateRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["site_id"] = bindings.NewStringType() fields["enforcement_point_id"] = bindings.NewStringType() fields["edge_cluster_id"] = bindings.NewStringType() @@ -284,14 +304,18 @@ func urlCategorizationConfigsUpdateRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_url_categorization_config", "PUT", "/policy/api/v1/infra/sites/{siteId}/enforcement-points/{enforcementPointId}/edge-clusters/{edgeClusterId}/url-categorization-configs/{urlCategorizationConfigId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/CommunityListsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/CommunityListsTypes.go index 1f6b545ea..68c5a2dbb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/CommunityListsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/CommunityListsTypes.go @@ -46,6 +46,8 @@ func communityListsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["community_list_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func communityListsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/community-lists/{communityListId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communityListsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func communityListsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["community_list_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func communityListsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/community-lists/{communityListId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communityListsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func communityListsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func communityListsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/community-lists", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communityListsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func communityListsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["community_list_id"] = bindings.NewStringType() fields["community_list"] = bindings.NewReferenceType(model.CommunityListBindingType) @@ -252,14 +272,18 @@ func communityListsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "community_list", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/community-lists/{communityListId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func communityListsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func communityListsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["community_list_id"] = bindings.NewStringType() fields["community_list"] = bindings.NewReferenceType(model.CommunityListBindingType) @@ -308,14 +334,18 @@ func communityListsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "community_list", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/community-lists/{communityListId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultCommunityListsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultCommunityListsClient.go index 9163a9937..d1643f5db 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultCommunityListsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultCommunityListsClient.go @@ -45,12 +45,33 @@ func NewDefaultCommunityListsClient(connector client.Connector) *DefaultCommunit } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + cIface := DefaultCommunityListsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} cIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) cIface.methodNameToDefMap["delete"] = cIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultDnsForwarderClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultDnsForwarderClient.go index 31550dfe3..f2583ce78 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultDnsForwarderClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultDnsForwarderClient.go @@ -45,12 +45,33 @@ func NewDefaultDnsForwarderClient(connector client.Connector) *DefaultDnsForward } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDnsForwarderClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["create"] = dIface.createMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultEvpnClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultEvpnClient.go index 0515d87f5..945f67728 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultEvpnClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultEvpnClient.go @@ -43,12 +43,33 @@ func NewDefaultEvpnClient(connector client.Connector) *DefaultEvpnClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultEvpnClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["get"] = eIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultFloodProtectionProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultFloodProtectionProfileBindingsClient.go index a70e05242..f68ff7e3b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultFloodProtectionProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultFloodProtectionProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultFloodProtectionProfileBindingsClient(connector client.Connector) } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFloodProtectionProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultForwardingTableClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultForwardingTableClient.go index 4b692a304..85dfcebfe 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultForwardingTableClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultForwardingTableClient.go @@ -41,12 +41,33 @@ func NewDefaultForwardingTableClient(connector client.Connector) *DefaultForward } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultForwardingTableClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["list"] = fIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGatewayFirewallClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGatewayFirewallClient.go index c2426ecc7..2df8e44b2 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGatewayFirewallClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGatewayFirewallClient.go @@ -41,12 +41,33 @@ func NewDefaultGatewayFirewallClient(connector client.Connector) *DefaultGateway } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGatewayFirewallClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["list"] = gIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGroupsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGroupsClient.go index 3e1f4f511..b891a8567 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGroupsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultGroupsClient.go @@ -45,12 +45,33 @@ func NewDefaultGroupsClient(connector client.Connector) *DefaultGroupsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGroupsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["delete"] = gIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultLocaleServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultLocaleServicesClient.go index 92ac6cbc0..2f1a3a217 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultLocaleServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultLocaleServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultLocaleServicesClient(connector client.Connector) *DefaultLocaleSe } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLocaleServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultPrefixListsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultPrefixListsClient.go index b0999cd2c..3e44fd84c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultPrefixListsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultPrefixListsClient.go @@ -45,12 +45,33 @@ func NewDefaultPrefixListsClient(connector client.Connector) *DefaultPrefixLists } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + pIface := DefaultPrefixListsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} pIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) pIface.methodNameToDefMap["delete"] = pIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRouteMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRouteMapsClient.go index 99c121634..02804e6dd 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRouteMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRouteMapsClient.go @@ -45,12 +45,33 @@ func NewDefaultRouteMapsClient(connector client.Connector) *DefaultRouteMapsClie } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + rIface := DefaultRouteMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} rIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) rIface.methodNameToDefMap["delete"] = rIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRoutingTableClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRoutingTableClient.go index 66e336b88..327aaaa86 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRoutingTableClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultRoutingTableClient.go @@ -41,12 +41,33 @@ func NewDefaultRoutingTableClient(connector client.Connector) *DefaultRoutingTab } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + rIface := DefaultRoutingTableClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} rIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) rIface.methodNameToDefMap["list"] = rIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultSessionTimerProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultSessionTimerProfileBindingsClient.go index c4e546e02..2cc21e426 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultSessionTimerProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultSessionTimerProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultSessionTimerProfileBindingsClient(connector client.Connector) *De } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSessionTimerProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStateClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStateClient.go index 108b0140d..9154eff41 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStateClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStateClient.go @@ -41,12 +41,33 @@ func NewDefaultStateClient(connector client.Connector) *DefaultStateClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStateClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStaticRoutesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStaticRoutesClient.go index 80fe11104..aff994c20 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStaticRoutesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DefaultStaticRoutesClient.go @@ -45,12 +45,33 @@ func NewDefaultStaticRoutesClient(connector client.Connector) *DefaultStaticRout } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStaticRoutesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DnsForwarderTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DnsForwarderTypes.go index 5a70bb0b4..e83bf721a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DnsForwarderTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/DnsForwarderTypes.go @@ -50,6 +50,8 @@ func dnsForwarderCreateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["action"] = bindings.NewStringType() fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -72,14 +74,18 @@ func dnsForwarderCreateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "POST", "/policy/api/v1/infra/tier-0s/{tier0Id}/dns-forwarder", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderDeleteInputType() bindings.StructType { @@ -102,6 +108,8 @@ func dnsForwarderDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" paramsTypeMap["tier0_id"] = bindings.NewStringType() @@ -116,14 +124,18 @@ func dnsForwarderDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/dns-forwarder", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderGetInputType() bindings.StructType { @@ -146,6 +158,8 @@ func dnsForwarderGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" paramsTypeMap["tier0_id"] = bindings.NewStringType() @@ -160,14 +174,18 @@ func dnsForwarderGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/dns-forwarder", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderPatchInputType() bindings.StructType { @@ -192,6 +210,8 @@ func dnsForwarderPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["policy_dns_forwarder"] = bindings.NewReferenceType(model.PolicyDnsForwarderBindingType) fieldNameMap["tier0_id"] = "Tier0Id" @@ -209,14 +229,18 @@ func dnsForwarderPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_dns_forwarder", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/dns-forwarder", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderUpdateInputType() bindings.StructType { @@ -241,6 +265,8 @@ func dnsForwarderUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["policy_dns_forwarder"] = bindings.NewReferenceType(model.PolicyDnsForwarderBindingType) fieldNameMap["tier0_id"] = "Tier0Id" @@ -258,14 +284,18 @@ func dnsForwarderUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_dns_forwarder", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/dns-forwarder", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnClient.go index 4b45ed4b1..5edf7b619 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnClient.go @@ -16,7 +16,7 @@ import ( type EvpnClient interface { - // Read Evpn Config. + // Read Evpn Configuration. // // @param tier0IdParam tier0 id (required) // @return com.vmware.nsx_policy.model.EvpnConfig @@ -27,7 +27,7 @@ type EvpnClient interface { // @throws NotFound Not Found Get(tier0IdParam string) (model.EvpnConfig, error) - // Create a evpn config if it is not already present, otherwise update the evpn config. + // Create a evpn configuration if it is not already present, otherwise update the evpn configuration. // // @param tier0IdParam tier0 id (required) // @param evpnConfigParam (required) @@ -38,7 +38,7 @@ type EvpnClient interface { // @throws NotFound Not Found Patch(tier0IdParam string, evpnConfigParam model.EvpnConfig) error - // Create or update evpn config. + // Create or update evpn configuration. // // @param tier0IdParam tier0 id (required) // @param evpnConfigParam (required) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnTypes.go index 2ee2c5efc..625335fe7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/EvpnTypes.go @@ -44,6 +44,8 @@ func evpnGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" paramsTypeMap["tier0_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func evpnGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/evpn", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func evpnPatchInputType() bindings.StructType { @@ -90,6 +96,8 @@ func evpnPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["evpn_config"] = bindings.NewReferenceType(model.EvpnConfigBindingType) fieldNameMap["tier0_id"] = "Tier0Id" @@ -107,14 +115,18 @@ func evpnPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "evpn_config", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/evpn", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func evpnUpdateInputType() bindings.StructType { @@ -139,6 +151,8 @@ func evpnUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["evpn_config"] = bindings.NewReferenceType(model.EvpnConfigBindingType) fieldNameMap["tier0_id"] = "Tier0Id" @@ -156,14 +170,18 @@ func evpnUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "evpn_config", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/evpn", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/FloodProtectionProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/FloodProtectionProfileBindingsTypes.go index a162fadd6..3403b01c0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/FloodProtectionProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/FloodProtectionProfileBindingsTypes.go @@ -46,6 +46,8 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsPatchInputType() bindings.StructType { @@ -150,6 +162,8 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_map"] = bindings.NewReferenceType(model.FloodProtectionProfileBindingMapBindingType) @@ -172,14 +186,18 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsUpdateInputType() bindings.StructType { @@ -206,6 +224,8 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_map"] = bindings.NewReferenceType(model.FloodProtectionProfileBindingMapBindingType) @@ -228,14 +248,18 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/ForwardingTableTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/ForwardingTableTypes.go index 2a8d7c3b0..2fb50d86c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/ForwardingTableTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/ForwardingTableTypes.go @@ -70,6 +70,8 @@ func forwardingTableListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["edge_id"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -124,14 +126,18 @@ func forwardingTableListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/forwarding-table", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GatewayFirewallTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GatewayFirewallTypes.go index 106f3d4bf..806cdedcc 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GatewayFirewallTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GatewayFirewallTypes.go @@ -44,6 +44,8 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" paramsTypeMap["tier0_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/gateway-firewall", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GroupsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GroupsTypes.go index 9a17acec8..c4b0c1ab4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GroupsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/GroupsTypes.go @@ -46,6 +46,8 @@ func groupsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func groupsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/groups/{groupId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func groupsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func groupsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/groups/{groupId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsListInputType() bindings.StructType { @@ -160,6 +172,8 @@ func groupsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -202,14 +216,18 @@ func groupsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/groups", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsPatchInputType() bindings.StructType { @@ -236,6 +254,8 @@ func groupsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fields["group"] = bindings.NewReferenceType(model.GroupBindingType) @@ -258,14 +278,18 @@ func groupsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "group", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/groups/{groupId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func groupsUpdateInputType() bindings.StructType { @@ -292,6 +316,8 @@ func groupsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["group_id"] = bindings.NewStringType() fields["group"] = bindings.NewReferenceType(model.GroupBindingType) @@ -314,14 +340,18 @@ func groupsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "group", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/groups/{groupId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/LocaleServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/LocaleServicesTypes.go index 408ca83ce..eb48ecf34 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/LocaleServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/LocaleServicesTypes.go @@ -46,6 +46,8 @@ func localeServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func localeServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func localeServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func localeServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func localeServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func localeServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func localeServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["locale_services"] = bindings.NewReferenceType(model.LocaleServicesBindingType) @@ -252,14 +272,18 @@ func localeServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "locale_services", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func localeServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["locale_services"] = bindings.NewReferenceType(model.LocaleServicesBindingType) @@ -308,14 +334,18 @@ func localeServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "locale_services", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/PrefixListsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/PrefixListsTypes.go index e3706ceb0..dbae0c74b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/PrefixListsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/PrefixListsTypes.go @@ -46,6 +46,8 @@ func prefixListsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["prefix_list_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func prefixListsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/prefix-lists/{prefixListId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func prefixListsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func prefixListsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["prefix_list_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func prefixListsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/prefix-lists/{prefixListId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func prefixListsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func prefixListsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func prefixListsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/prefix-lists", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func prefixListsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func prefixListsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["prefix_list_id"] = bindings.NewStringType() fields["prefix_list"] = bindings.NewReferenceType(model.PrefixListBindingType) @@ -252,14 +272,18 @@ func prefixListsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "prefix_list", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/prefix-lists/{prefixListId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func prefixListsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func prefixListsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["prefix_list_id"] = bindings.NewStringType() fields["prefix_list"] = bindings.NewReferenceType(model.PrefixListBindingType) @@ -308,14 +334,18 @@ func prefixListsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "prefix_list", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/prefix-lists/{prefixListId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RouteMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RouteMapsTypes.go index d550ef03d..7389cd108 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RouteMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RouteMapsTypes.go @@ -46,6 +46,8 @@ func routeMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_map_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func routeMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/route-maps/{routeMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func routeMapsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func routeMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_map_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func routeMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/route-maps/{routeMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func routeMapsListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func routeMapsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func routeMapsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/route-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func routeMapsPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func routeMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_map_id"] = bindings.NewStringType() fields["tier0_route_map"] = bindings.NewReferenceType(model.Tier0RouteMapBindingType) @@ -252,14 +272,18 @@ func routeMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0_route_map", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/route-maps/{routeMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func routeMapsUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func routeMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_map_id"] = bindings.NewStringType() fields["tier0_route_map"] = bindings.NewReferenceType(model.Tier0RouteMapBindingType) @@ -308,14 +334,18 @@ func routeMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0_route_map", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/route-maps/{routeMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RoutingTableTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RoutingTableTypes.go index 355c9b28b..144f15e41 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RoutingTableTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/RoutingTableTypes.go @@ -70,6 +70,8 @@ func routingTableListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["edge_id"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -124,14 +126,18 @@ func routingTableListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/routing-table", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/SessionTimerProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/SessionTimerProfileBindingsTypes.go index 6e125dbf9..88d2831ab 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/SessionTimerProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/SessionTimerProfileBindingsTypes.go @@ -46,6 +46,8 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsPatchInputType() bindings.StructType { @@ -150,6 +162,8 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fields["session_timer_profile_binding_map"] = bindings.NewReferenceType(model.SessionTimerProfileBindingMapBindingType) @@ -172,14 +186,18 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsUpdateInputType() bindings.StructType { @@ -206,6 +224,8 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fields["session_timer_profile_binding_map"] = bindings.NewReferenceType(model.SessionTimerProfileBindingMapBindingType) @@ -228,14 +248,18 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StateTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StateTypes.go index b40151c02..089653c9b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StateTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StateTypes.go @@ -58,6 +58,8 @@ func stateGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -100,14 +102,18 @@ func stateGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/state", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StaticRoutesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StaticRoutesTypes.go index 08c4e60ca..a80995352 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StaticRoutesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/StaticRoutesTypes.go @@ -46,6 +46,8 @@ func staticRoutesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func staticRoutesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/static-routes/{routeId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func staticRoutesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -116,14 +124,18 @@ func staticRoutesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/static-routes/{routeId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func staticRoutesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func staticRoutesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/static-routes", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func staticRoutesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fields["static_routes"] = bindings.NewReferenceType(model.StaticRoutesBindingType) @@ -252,14 +272,18 @@ func staticRoutesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "static_routes", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/static-routes/{routeId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func staticRoutesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fields["static_routes"] = bindings.NewReferenceType(model.StaticRoutesBindingType) @@ -308,14 +334,18 @@ func staticRoutesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "static_routes", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/static-routes/{routeId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpClient.go index 02ae1ae84..f8f8e85d0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpClient.go @@ -33,25 +33,23 @@ type BgpClient interface { // @param tier0IdParam (required) // @param localeServiceIdParam (required) // @param bgpRoutingConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig, overrideParam *bool) error + Patch(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig) error // If BGP routing config is not already present, create BGP routing config. If it already exists, replace the BGP routing config with this object. // // @param tier0IdParam (required) // @param localeServiceIdParam (required) // @param bgpRoutingConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.BgpRoutingConfig // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig, overrideParam *bool) (model.BgpRoutingConfig, error) + Update(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig) (model.BgpRoutingConfig, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpTypes.go index 6a622300c..58a33fe90 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/BgpTypes.go @@ -46,6 +46,8 @@ func bgpGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func bgpGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func bgpPatchInputType() bindings.StructType { @@ -81,11 +87,9 @@ func bgpPatchInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["bgp_routing_config"] = bindings.NewReferenceType(model.BgpRoutingConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["bgp_routing_config"] = "BgpRoutingConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -101,23 +105,21 @@ func bgpPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["bgp_routing_config"] = bindings.NewReferenceType(model.BgpRoutingConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["bgp_routing_config"] = "BgpRoutingConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["bgp_routing_config"] = bindings.NewReferenceType(model.BgpRoutingConfigBindingType) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() pathParams["tier0_id"] = "tier0Id" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -127,14 +129,18 @@ func bgpPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "bgp_routing_config", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func bgpUpdateInputType() bindings.StructType { @@ -143,11 +149,9 @@ func bgpUpdateInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["bgp_routing_config"] = bindings.NewReferenceType(model.BgpRoutingConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["bgp_routing_config"] = "BgpRoutingConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -163,23 +167,21 @@ func bgpUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["bgp_routing_config"] = bindings.NewReferenceType(model.BgpRoutingConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["bgp_routing_config"] = "BgpRoutingConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["bgp_routing_config"] = bindings.NewReferenceType(model.BgpRoutingConfigBindingType) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() pathParams["tier0_id"] = "tier0Id" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -189,14 +191,18 @@ func bgpUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "bgp_routing_config", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ByodServiceInstancesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ByodServiceInstancesTypes.go index e57e6d4b9..5631b290a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ByodServiceInstancesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ByodServiceInstancesTypes.go @@ -48,6 +48,8 @@ func byodServiceInstancesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func byodServiceInstancesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/byod-service-instances/{serviceInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func byodServiceInstancesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func byodServiceInstancesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func byodServiceInstancesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/byod-service-instances/{serviceInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func byodServiceInstancesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func byodServiceInstancesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func byodServiceInstancesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/byod-service-instances", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func byodServiceInstancesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func byodServiceInstancesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func byodServiceInstancesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "byod_policy_service_instance", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/byod-service-instances/{serviceInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func byodServiceInstancesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func byodServiceInstancesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func byodServiceInstancesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "byod_policy_service_instance", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/byod-service-instances/{serviceInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultBgpClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultBgpClient.go index 32cb7178c..aed0b0f11 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultBgpClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultBgpClient.go @@ -43,12 +43,33 @@ func NewDefaultBgpClient(connector client.Connector) *DefaultBgpClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + bIface := DefaultBgpClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} bIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) bIface.methodNameToDefMap["get"] = bIface.getMethodDefinition() @@ -90,14 +111,13 @@ func (bIface *DefaultBgpClient) Get(tier0IdParam string, localeServiceIdParam st } } -func (bIface *DefaultBgpClient) Patch(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig, overrideParam *bool) error { +func (bIface *DefaultBgpClient) Patch(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig) error { typeConverter := bIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(bIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(bgpPatchInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("BgpRoutingConfig", bgpRoutingConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -119,14 +139,13 @@ func (bIface *DefaultBgpClient) Patch(tier0IdParam string, localeServiceIdParam } } -func (bIface *DefaultBgpClient) Update(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig, overrideParam *bool) (model.BgpRoutingConfig, error) { +func (bIface *DefaultBgpClient) Update(tier0IdParam string, localeServiceIdParam string, bgpRoutingConfigParam model.BgpRoutingConfig) (model.BgpRoutingConfig, error) { typeConverter := bIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(bIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(bgpUpdateInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("BgpRoutingConfig", bgpRoutingConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.BgpRoutingConfig diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultByodServiceInstancesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultByodServiceInstancesClient.go index 26515a2cf..1bb281f1d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultByodServiceInstancesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultByodServiceInstancesClient.go @@ -45,12 +45,33 @@ func NewDefaultByodServiceInstancesClient(connector client.Connector) *DefaultBy } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + bIface := DefaultByodServiceInstancesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} bIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) bIface.methodNameToDefMap["delete"] = bIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultEvpnTunnelEndpointsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultEvpnTunnelEndpointsClient.go index dda21297f..27133d22d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultEvpnTunnelEndpointsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultEvpnTunnelEndpointsClient.go @@ -45,12 +45,33 @@ func NewDefaultEvpnTunnelEndpointsClient(connector client.Connector) *DefaultEvp } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + eIface := DefaultEvpnTunnelEndpointsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} eIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) eIface.methodNameToDefMap["delete"] = eIface.deleteMethodDefinition() @@ -61,14 +82,13 @@ func NewDefaultEvpnTunnelEndpointsClient(connector client.Connector) *DefaultEvp return &eIface } -func (eIface *DefaultEvpnTunnelEndpointsClient) Delete(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, overrideParam *bool) error { +func (eIface *DefaultEvpnTunnelEndpointsClient) Delete(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string) error { typeConverter := eIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(eIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(evpnTunnelEndpointsDeleteInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("TunnelEndpointId", tunnelEndpointIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -163,7 +183,7 @@ func (eIface *DefaultEvpnTunnelEndpointsClient) List(tier0IdParam string, locale } } -func (eIface *DefaultEvpnTunnelEndpointsClient) Patch(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig, overrideParam *bool) error { +func (eIface *DefaultEvpnTunnelEndpointsClient) Patch(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig) error { typeConverter := eIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(eIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(evpnTunnelEndpointsPatchInputType(), typeConverter) @@ -171,7 +191,6 @@ func (eIface *DefaultEvpnTunnelEndpointsClient) Patch(tier0IdParam string, local sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("TunnelEndpointId", tunnelEndpointIdParam) sv.AddStructField("EvpnTunnelEndpointConfig", evpnTunnelEndpointConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -193,7 +212,7 @@ func (eIface *DefaultEvpnTunnelEndpointsClient) Patch(tier0IdParam string, local } } -func (eIface *DefaultEvpnTunnelEndpointsClient) Update(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig, overrideParam *bool) (model.EvpnTunnelEndpointConfig, error) { +func (eIface *DefaultEvpnTunnelEndpointsClient) Update(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig) (model.EvpnTunnelEndpointConfig, error) { typeConverter := eIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(eIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(evpnTunnelEndpointsUpdateInputType(), typeConverter) @@ -201,7 +220,6 @@ func (eIface *DefaultEvpnTunnelEndpointsClient) Update(tier0IdParam string, loca sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("TunnelEndpointId", tunnelEndpointIdParam) sv.AddStructField("EvpnTunnelEndpointConfig", evpnTunnelEndpointConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.EvpnTunnelEndpointConfig diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultFloodProtectionProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultFloodProtectionProfileBindingsClient.go index d62b82001..5a8a7acb0 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultFloodProtectionProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultFloodProtectionProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultFloodProtectionProfileBindingsClient(connector client.Connector) } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFloodProtectionProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultGatewayFirewallClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultGatewayFirewallClient.go index a35821d38..8cca5094c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultGatewayFirewallClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultGatewayFirewallClient.go @@ -41,12 +41,33 @@ func NewDefaultGatewayFirewallClient(connector client.Connector) *DefaultGateway } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGatewayFirewallClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["list"] = gIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultInterfacesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultInterfacesClient.go index aac575798..abe104c1b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultInterfacesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultInterfacesClient.go @@ -45,12 +45,33 @@ func NewDefaultInterfacesClient(connector client.Connector) *DefaultInterfacesCl } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultInterfacesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,14 +82,13 @@ func NewDefaultInterfacesClient(connector client.Connector) *DefaultInterfacesCl return &iIface } -func (iIface *DefaultInterfacesClient) Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, overrideParam *bool) error { +func (iIface *DefaultInterfacesClient) Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(interfacesDeleteInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -163,7 +183,7 @@ func (iIface *DefaultInterfacesClient) List(tier0IdParam string, localeServiceId } } -func (iIface *DefaultInterfacesClient) Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface, overrideParam *bool) error { +func (iIface *DefaultInterfacesClient) Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(interfacesPatchInputType(), typeConverter) @@ -171,7 +191,6 @@ func (iIface *DefaultInterfacesClient) Patch(tier0IdParam string, localeServiceI sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) sv.AddStructField("Tier0Interface", tier0InterfaceParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -193,7 +212,7 @@ func (iIface *DefaultInterfacesClient) Patch(tier0IdParam string, localeServiceI } } -func (iIface *DefaultInterfacesClient) Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface, overrideParam *bool) (model.Tier0Interface, error) { +func (iIface *DefaultInterfacesClient) Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface) (model.Tier0Interface, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(interfacesUpdateInputType(), typeConverter) @@ -201,7 +220,6 @@ func (iIface *DefaultInterfacesClient) Update(tier0IdParam string, localeService sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) sv.AddStructField("Tier0Interface", tier0InterfaceParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.Tier0Interface diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultIpsecVpnServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultIpsecVpnServicesClient.go index b4fd18f29..e0dda12e6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultIpsecVpnServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultIpsecVpnServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpsecVpnServicesClient(connector client.Connector) *DefaultIpsecV } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpsecVpnServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnContextClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnContextClient.go index 7e0cf933d..128741875 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnContextClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnContextClient.go @@ -41,12 +41,33 @@ func NewDefaultL2vpnContextClient(connector client.Connector) *DefaultL2vpnConte } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultL2vpnContextClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["get"] = lIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnServicesClient.go index 6c0caa452..de435ccc1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL2vpnServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultL2vpnServicesClient(connector client.Connector) *DefaultL2vpnServ } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultL2vpnServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnContextClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnContextClient.go index d4bdc3db0..1dc5e3300 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnContextClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnContextClient.go @@ -41,12 +41,33 @@ func NewDefaultL3vpnContextClient(connector client.Connector) *DefaultL3vpnConte } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultL3vpnContextClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["get"] = lIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnsClient.go index 41f4da766..eb4d1f9c1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultL3vpnsClient.go @@ -46,12 +46,33 @@ func NewDefaultL3vpnsClient(connector client.Connector) *DefaultL3vpnsClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultL3vpnsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultMulticastClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultMulticastClient.go index a08992c06..50c9accbf 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultMulticastClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultMulticastClient.go @@ -43,12 +43,33 @@ func NewDefaultMulticastClient(connector client.Connector) *DefaultMulticastClie } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + mIface := DefaultMulticastClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} mIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) mIface.methodNameToDefMap["get"] = mIface.getMethodDefinition() @@ -90,14 +111,13 @@ func (mIface *DefaultMulticastClient) Get(tier0IdParam string, localeServicesIdP } } -func (mIface *DefaultMulticastClient) Patch(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig, overrideParam *bool) error { +func (mIface *DefaultMulticastClient) Patch(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig) error { typeConverter := mIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(mIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(multicastPatchInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("PolicyMulticastConfig", policyMulticastConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -119,14 +139,13 @@ func (mIface *DefaultMulticastClient) Patch(tier0IdParam string, localeServicesI } } -func (mIface *DefaultMulticastClient) Update(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig, overrideParam *bool) (model.PolicyMulticastConfig, error) { +func (mIface *DefaultMulticastClient) Update(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig) (model.PolicyMulticastConfig, error) { typeConverter := mIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(mIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(multicastUpdateInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("PolicyMulticastConfig", policyMulticastConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.PolicyMulticastConfig diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInstancesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInstancesClient.go index be0ee58a5..faeb29246 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInstancesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInstancesClient.go @@ -46,12 +46,33 @@ func NewDefaultServiceInstancesClient(connector client.Connector) *DefaultServic } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultServiceInstancesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInterfacesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInterfacesClient.go index 8cabbd222..e7f261402 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInterfacesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultServiceInterfacesClient.go @@ -45,12 +45,33 @@ func NewDefaultServiceInterfacesClient(connector client.Connector) *DefaultServi } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultServiceInterfacesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() @@ -61,14 +82,13 @@ func NewDefaultServiceInterfacesClient(connector client.Connector) *DefaultServi return &sIface } -func (sIface *DefaultServiceInterfacesClient) Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, overrideParam *bool) error { +func (sIface *DefaultServiceInterfacesClient) Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string) error { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(serviceInterfacesDeleteInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -163,7 +183,7 @@ func (sIface *DefaultServiceInterfacesClient) List(tier0IdParam string, localeSe } } -func (sIface *DefaultServiceInterfacesClient) Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface, overrideParam *bool) error { +func (sIface *DefaultServiceInterfacesClient) Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface) error { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(serviceInterfacesPatchInputType(), typeConverter) @@ -171,7 +191,6 @@ func (sIface *DefaultServiceInterfacesClient) Patch(tier0IdParam string, localeS sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) sv.AddStructField("ServiceInterface", serviceInterfaceParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -193,7 +212,7 @@ func (sIface *DefaultServiceInterfacesClient) Patch(tier0IdParam string, localeS } } -func (sIface *DefaultServiceInterfacesClient) Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface, overrideParam *bool) (model.ServiceInterface, error) { +func (sIface *DefaultServiceInterfacesClient) Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface) (model.ServiceInterface, error) { typeConverter := sIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(sIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(serviceInterfacesUpdateInputType(), typeConverter) @@ -201,7 +220,6 @@ func (sIface *DefaultServiceInterfacesClient) Update(tier0IdParam string, locale sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) sv.AddStructField("ServiceInterface", serviceInterfaceParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.ServiceInterface diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultSessionTimerProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultSessionTimerProfileBindingsClient.go index bfda955e4..4429d9a26 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultSessionTimerProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultSessionTimerProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultSessionTimerProfileBindingsClient(connector client.Connector) *De } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSessionTimerProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultTier0DeploymentMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultTier0DeploymentMapsClient.go index 2f68249d2..b5ee5459d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultTier0DeploymentMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/DefaultTier0DeploymentMapsClient.go @@ -45,12 +45,33 @@ func NewDefaultTier0DeploymentMapsClient(connector client.Connector) *DefaultTie } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + tIface := DefaultTier0DeploymentMapsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} tIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) tIface.methodNameToDefMap["delete"] = tIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsClient.go index cf2e5d795..10ab9911e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsClient.go @@ -16,20 +16,19 @@ import ( type EvpnTunnelEndpointsClient interface { - // Delete evpn tunnel endpoint Config. + // Delete evpn tunnel endpoint configuration. // // @param tier0IdParam tier0 id (required) // @param localeServicesIdParam locale services id (required) // @param tunnelEndpointIdParam tunnel endpoint id (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, overrideParam *bool) error + Delete(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string) error - // Read evpn tunnel endpoint Config. + // Read evpn tunnel endpoint configuration. // // @param tier0IdParam tier0 id (required) // @param localeServicesIdParam locale services id (required) @@ -42,7 +41,7 @@ type EvpnTunnelEndpointsClient interface { // @throws NotFound Not Found Get(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string) (model.EvpnTunnelEndpointConfig, error) - // List all evpn tunnel endpoint config. + // List all evpn tunnel endpoint configuration. // // @param tier0IdParam (required) // @param localeServicesIdParam (required) @@ -60,32 +59,30 @@ type EvpnTunnelEndpointsClient interface { // @throws NotFound Not Found List(tier0IdParam string, localeServicesIdParam string, cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.EvpnTunnelEndpointConfigListResult, error) - // Create a evpn tunnel endpoint config if the tunnel-endpoint-id is not already present, otherwise update the tunnel endpoint config. + // Create a evpn tunnel endpoint config if the tunnel-endpoint-id is not already present, otherwise update the tunnel endpoint configuration. // // @param tier0IdParam tier0 id (required) // @param localeServicesIdParam locale services id (required) // @param tunnelEndpointIdParam tunnel endpoint id (required) // @param evpnTunnelEndpointConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig, overrideParam *bool) error + Patch(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig) error - // Create or update evpn tunnel endpoint config. + // Create or update evpn tunnel endpoint configuration. // // @param tier0IdParam tier0 id (required) // @param localeServicesIdParam locale services id (required) // @param tunnelEndpointIdParam tunnel endpoint id (required) // @param evpnTunnelEndpointConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.EvpnTunnelEndpointConfig // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig, overrideParam *bool) (model.EvpnTunnelEndpointConfig, error) + Update(tier0IdParam string, localeServicesIdParam string, tunnelEndpointIdParam string, evpnTunnelEndpointConfigParam model.EvpnTunnelEndpointConfig) (model.EvpnTunnelEndpointConfig, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsTypes.go index 0dbba21ab..dcee96e55 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/EvpnTunnelEndpointsTypes.go @@ -30,11 +30,9 @@ func evpnTunnelEndpointsDeleteInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["tunnel_endpoint_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["tunnel_endpoint_id"] = "TunnelEndpointId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -50,16 +48,15 @@ func evpnTunnelEndpointsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["tunnel_endpoint_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["tunnel_endpoint_id"] = "TunnelEndpointId" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tunnel_endpoint_id"] = bindings.NewStringType() paramsTypeMap["locale_services_id"] = bindings.NewStringType() paramsTypeMap["tier0Id"] = bindings.NewStringType() @@ -68,7 +65,6 @@ func evpnTunnelEndpointsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams["locale_services_id"] = "localeServicesId" pathParams["tier0_id"] = "tier0Id" pathParams["tunnel_endpoint_id"] = "tunnelEndpointId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -78,14 +74,18 @@ func evpnTunnelEndpointsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/evpn-tunnel-endpoints/{tunnelEndpointId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func evpnTunnelEndpointsGetInputType() bindings.StructType { @@ -112,6 +112,8 @@ func evpnTunnelEndpointsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["tunnel_endpoint_id"] = bindings.NewStringType() @@ -136,14 +138,18 @@ func evpnTunnelEndpointsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/evpn-tunnel-endpoints/{tunnelEndpointId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func evpnTunnelEndpointsListInputType() bindings.StructType { @@ -180,6 +186,8 @@ func evpnTunnelEndpointsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -223,14 +231,18 @@ func evpnTunnelEndpointsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/evpn-tunnel-endpoints", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func evpnTunnelEndpointsPatchInputType() bindings.StructType { @@ -240,12 +252,10 @@ func evpnTunnelEndpointsPatchInputType() bindings.StructType { fields["locale_services_id"] = bindings.NewStringType() fields["tunnel_endpoint_id"] = bindings.NewStringType() fields["evpn_tunnel_endpoint_config"] = bindings.NewReferenceType(model.EvpnTunnelEndpointConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["tunnel_endpoint_id"] = "TunnelEndpointId" fieldNameMap["evpn_tunnel_endpoint_config"] = "EvpnTunnelEndpointConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -261,18 +271,17 @@ func evpnTunnelEndpointsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["tunnel_endpoint_id"] = bindings.NewStringType() fields["evpn_tunnel_endpoint_config"] = bindings.NewReferenceType(model.EvpnTunnelEndpointConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["tunnel_endpoint_id"] = "TunnelEndpointId" fieldNameMap["evpn_tunnel_endpoint_config"] = "EvpnTunnelEndpointConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["evpn_tunnel_endpoint_config"] = bindings.NewReferenceType(model.EvpnTunnelEndpointConfigBindingType) paramsTypeMap["tunnel_endpoint_id"] = bindings.NewStringType() paramsTypeMap["locale_services_id"] = bindings.NewStringType() @@ -282,7 +291,6 @@ func evpnTunnelEndpointsPatchRestMetadata() protocol.OperationRestMetadata { pathParams["locale_services_id"] = "localeServicesId" pathParams["tier0_id"] = "tier0Id" pathParams["tunnel_endpoint_id"] = "tunnelEndpointId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -292,14 +300,18 @@ func evpnTunnelEndpointsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "evpn_tunnel_endpoint_config", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/evpn-tunnel-endpoints/{tunnelEndpointId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func evpnTunnelEndpointsUpdateInputType() bindings.StructType { @@ -309,12 +321,10 @@ func evpnTunnelEndpointsUpdateInputType() bindings.StructType { fields["locale_services_id"] = bindings.NewStringType() fields["tunnel_endpoint_id"] = bindings.NewStringType() fields["evpn_tunnel_endpoint_config"] = bindings.NewReferenceType(model.EvpnTunnelEndpointConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["tunnel_endpoint_id"] = "TunnelEndpointId" fieldNameMap["evpn_tunnel_endpoint_config"] = "EvpnTunnelEndpointConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -330,18 +340,17 @@ func evpnTunnelEndpointsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["tunnel_endpoint_id"] = bindings.NewStringType() fields["evpn_tunnel_endpoint_config"] = bindings.NewReferenceType(model.EvpnTunnelEndpointConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["tunnel_endpoint_id"] = "TunnelEndpointId" fieldNameMap["evpn_tunnel_endpoint_config"] = "EvpnTunnelEndpointConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["evpn_tunnel_endpoint_config"] = bindings.NewReferenceType(model.EvpnTunnelEndpointConfigBindingType) paramsTypeMap["tunnel_endpoint_id"] = bindings.NewStringType() paramsTypeMap["locale_services_id"] = bindings.NewStringType() @@ -351,7 +360,6 @@ func evpnTunnelEndpointsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams["locale_services_id"] = "localeServicesId" pathParams["tier0_id"] = "tier0Id" pathParams["tunnel_endpoint_id"] = "tunnelEndpointId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -361,14 +369,18 @@ func evpnTunnelEndpointsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "evpn_tunnel_endpoint_config", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/evpn-tunnel-endpoints/{tunnelEndpointId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/FloodProtectionProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/FloodProtectionProfileBindingsTypes.go index 609eeea12..53b83d7a1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/FloodProtectionProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/FloodProtectionProfileBindingsTypes.go @@ -48,6 +48,8 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsPatchInputType() bindings.StructType { @@ -166,6 +178,8 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -193,14 +207,18 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsUpdateInputType() bindings.StructType { @@ -229,6 +247,8 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -256,14 +276,18 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/GatewayFirewallTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/GatewayFirewallTypes.go index 2c2f8b901..2a8af9dda 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/GatewayFirewallTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/GatewayFirewallTypes.go @@ -46,6 +46,8 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/gateway-firewall", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesClient.go index 787b9a490..4ec6084be 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesClient.go @@ -21,13 +21,12 @@ type InterfacesClient interface { // @param tier0IdParam (required) // @param localeServiceIdParam (required) // @param interfaceIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, overrideParam *bool) error + Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string) error // Read Tier-0 interface // @@ -66,13 +65,12 @@ type InterfacesClient interface { // @param localeServiceIdParam (required) // @param interfaceIdParam (required) // @param tier0InterfaceParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface, overrideParam *bool) error + Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface) error // If an interface with the interface-id is not already present, create a new interface. If it already exists, replace the interface with this object. // @@ -80,12 +78,11 @@ type InterfacesClient interface { // @param localeServiceIdParam (required) // @param interfaceIdParam (required) // @param tier0InterfaceParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.Tier0Interface // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface, overrideParam *bool) (model.Tier0Interface, error) + Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, tier0InterfaceParam model.Tier0Interface) (model.Tier0Interface, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesTypes.go index 6928931b3..114650ca9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/InterfacesTypes.go @@ -30,11 +30,9 @@ func interfacesDeleteInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -50,25 +48,23 @@ func interfacesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["interface_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() paramsTypeMap["interfaceId"] = bindings.NewStringType() pathParams["tier0_id"] = "tier0Id" pathParams["interface_id"] = "interfaceId" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -78,14 +74,18 @@ func interfacesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/interfaces/{interfaceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesGetInputType() bindings.StructType { @@ -112,6 +112,8 @@ func interfacesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() @@ -136,14 +138,18 @@ func interfacesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/interfaces/{interfaceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesListInputType() bindings.StructType { @@ -180,6 +186,8 @@ func interfacesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -223,14 +231,18 @@ func interfacesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/interfaces", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesPatchInputType() bindings.StructType { @@ -240,12 +252,10 @@ func interfacesPatchInputType() bindings.StructType { fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier0_interface"] = bindings.NewReferenceType(model.Tier0InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier0_interface"] = "Tier0Interface" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -261,28 +271,26 @@ func interfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier0_interface"] = bindings.NewReferenceType(model.Tier0InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier0_interface"] = "Tier0Interface" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["interface_id"] = bindings.NewStringType() paramsTypeMap["tier0_interface"] = bindings.NewReferenceType(model.Tier0InterfaceBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() paramsTypeMap["interfaceId"] = bindings.NewStringType() pathParams["tier0_id"] = "tier0Id" pathParams["interface_id"] = "interfaceId" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -292,14 +300,18 @@ func interfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0_interface", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/interfaces/{interfaceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesUpdateInputType() bindings.StructType { @@ -309,12 +321,10 @@ func interfacesUpdateInputType() bindings.StructType { fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier0_interface"] = bindings.NewReferenceType(model.Tier0InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier0_interface"] = "Tier0Interface" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -330,28 +340,26 @@ func interfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier0_interface"] = bindings.NewReferenceType(model.Tier0InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier0_interface"] = "Tier0Interface" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["interface_id"] = bindings.NewStringType() paramsTypeMap["tier0_interface"] = bindings.NewReferenceType(model.Tier0InterfaceBindingType) - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() paramsTypeMap["interfaceId"] = bindings.NewStringType() pathParams["tier0_id"] = "tier0Id" pathParams["interface_id"] = "interfaceId" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -361,14 +369,18 @@ func interfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0_interface", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/interfaces/{interfaceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/IpsecVpnServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/IpsecVpnServicesTypes.go index 4f8550efe..666dc96b5 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/IpsecVpnServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/IpsecVpnServicesTypes.go @@ -48,6 +48,8 @@ func ipsecVpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func ipsecVpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func ipsecVpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func ipsecVpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func ipsecVpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func ipsecVpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/ipsec-vpn-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func ipsecVpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func ipsecVpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_service", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func ipsecVpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func ipsecVpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_service", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnContextTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnContextTypes.go index d715a5630..cf01c6acb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnContextTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnContextTypes.go @@ -46,6 +46,8 @@ func l2vpnContextGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func l2vpnContextGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l2vpn-context", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnServicesTypes.go index 70c077542..dbabfde40 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L2vpnServicesTypes.go @@ -48,6 +48,8 @@ func l2vpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func l2vpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func l2vpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func l2vpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func l2vpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func l2vpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l2vpn-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func l2vpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func l2vpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l2_VPN_service", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func l2vpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func l2vpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l2_VPN_service", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnContextTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnContextTypes.go index 9f85fab91..1e1547a33 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnContextTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnContextTypes.go @@ -46,6 +46,8 @@ func l3vpnContextGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func l3vpnContextGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l3vpn-context", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnsTypes.go index b40ceae63..424fb991d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/L3vpnsTypes.go @@ -52,6 +52,8 @@ func l3vpnsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["l3vpn_id"] = bindings.NewStringType() @@ -76,14 +78,18 @@ func l3vpnsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l3vpns/{l3vpnId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l3vpnsGetInputType() bindings.StructType { @@ -110,6 +116,8 @@ func l3vpnsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["l3vpn_id"] = bindings.NewStringType() @@ -134,14 +142,18 @@ func l3vpnsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l3vpns/{l3vpnId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l3vpnsListInputType() bindings.StructType { @@ -180,6 +192,8 @@ func l3vpnsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -227,14 +241,18 @@ func l3vpnsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l3vpns", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l3vpnsPatchInputType() bindings.StructType { @@ -263,6 +281,8 @@ func l3vpnsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["l3vpn_id"] = bindings.NewStringType() @@ -290,14 +310,18 @@ func l3vpnsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l3_vpn", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l3vpns/{l3vpnId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l3vpnsShowsensitivedataInputType() bindings.StructType { @@ -324,6 +348,8 @@ func l3vpnsShowsensitivedataRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["l3vpn_id"] = bindings.NewStringType() @@ -348,14 +374,18 @@ func l3vpnsShowsensitivedataRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=show_sensitive_data", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l3vpns/{l3vpnId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l3vpnsUpdateInputType() bindings.StructType { @@ -384,6 +414,8 @@ func l3vpnsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["l3vpn_id"] = bindings.NewStringType() @@ -411,14 +443,18 @@ func l3vpnsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l3_vpn", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/l3vpns/{l3vpnId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastClient.go index 10f4515f8..9e665fe7a 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastClient.go @@ -16,7 +16,7 @@ import ( type MulticastClient interface { - // Read Multicast Config. + // Read Multicast Configuration. // // @param tier0IdParam tier0 id (required) // @param localeServicesIdParam locale services id (required) @@ -28,30 +28,28 @@ type MulticastClient interface { // @throws NotFound Not Found Get(tier0IdParam string, localeServicesIdParam string) (model.PolicyMulticastConfig, error) - // Create a multicast config with the multicast-config-id is not already present, otherwise update the multicast config. + // Create or update a Tier-0 multicast configuration defining the multicast replication range, the IGMP or a PIM profile. It will update the configuration if there is already one in place. // // @param tier0IdParam tier0 id (required) // @param localeServicesIdParam locale services id (required) // @param policyMulticastConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig, overrideParam *bool) error + Patch(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig) error - // Create or update multicast config. + // Create or update a Tier-0 multicast configuration defining the multicast replication range, the IGMP or a PIM profile. It will update the configuration if there is already one in place. // // @param tier0IdParam tier0 id (required) // @param localeServicesIdParam locale services id (required) // @param policyMulticastConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.PolicyMulticastConfig // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig, overrideParam *bool) (model.PolicyMulticastConfig, error) + Update(tier0IdParam string, localeServicesIdParam string, policyMulticastConfigParam model.PolicyMulticastConfig) (model.PolicyMulticastConfig, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastTypes.go index 4ba57d189..ab56ef0a1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/MulticastTypes.go @@ -46,6 +46,8 @@ func multicastGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fieldNameMap["tier0_id"] = "Tier0Id" @@ -65,14 +67,18 @@ func multicastGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/multicast", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func multicastPatchInputType() bindings.StructType { @@ -81,11 +87,9 @@ func multicastPatchInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["policy_multicast_config"] = bindings.NewReferenceType(model.PolicyMulticastConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["policy_multicast_config"] = "PolicyMulticastConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -101,23 +105,21 @@ func multicastPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["policy_multicast_config"] = bindings.NewReferenceType(model.PolicyMulticastConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["policy_multicast_config"] = "PolicyMulticastConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["policy_multicast_config"] = bindings.NewReferenceType(model.PolicyMulticastConfigBindingType) paramsTypeMap["locale_services_id"] = bindings.NewStringType() paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServicesId"] = bindings.NewStringType() pathParams["locale_services_id"] = "localeServicesId" pathParams["tier0_id"] = "tier0Id" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -127,14 +129,18 @@ func multicastPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_multicast_config", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/multicast", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func multicastUpdateInputType() bindings.StructType { @@ -143,11 +149,9 @@ func multicastUpdateInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["policy_multicast_config"] = bindings.NewReferenceType(model.PolicyMulticastConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["policy_multicast_config"] = "PolicyMulticastConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -163,23 +167,21 @@ func multicastUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["policy_multicast_config"] = bindings.NewReferenceType(model.PolicyMulticastConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["policy_multicast_config"] = "PolicyMulticastConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["policy_multicast_config"] = bindings.NewReferenceType(model.PolicyMulticastConfigBindingType) paramsTypeMap["locale_services_id"] = bindings.NewStringType() paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServicesId"] = bindings.NewStringType() pathParams["locale_services_id"] = "localeServicesId" pathParams["tier0_id"] = "tier0Id" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -189,14 +191,18 @@ func multicastUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_multicast_config", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/multicast", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInstancesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInstancesTypes.go index d2cdf79c0..0c3a4c15f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInstancesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInstancesTypes.go @@ -48,6 +48,8 @@ func serviceInstancesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func serviceInstancesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func serviceInstancesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func serviceInstancesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func serviceInstancesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func serviceInstancesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-instances", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func serviceInstancesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func serviceInstancesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_service_instance", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesReauthInputType() bindings.StructType { @@ -314,6 +338,8 @@ func serviceInstancesReauthRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -338,14 +364,18 @@ func serviceInstancesReauthRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "action=reauth", "", "POST", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesUpdateInputType() bindings.StructType { @@ -374,6 +404,8 @@ func serviceInstancesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -401,14 +433,18 @@ func serviceInstancesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_service_instance", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesClient.go index 79753401a..eee7f45c3 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesClient.go @@ -21,13 +21,12 @@ type ServiceInterfacesClient interface { // @param tier0IdParam (required) // @param localeServiceIdParam (required) // @param interfaceIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, overrideParam *bool) error + Delete(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string) error // Read service interface // @@ -66,13 +65,12 @@ type ServiceInterfacesClient interface { // @param localeServiceIdParam (required) // @param interfaceIdParam (required) // @param serviceInterfaceParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface, overrideParam *bool) error + Patch(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface) error // If an interface with the interface-id is not already present, create a new interface. Modification of service interface is not allowed. // @@ -80,12 +78,11 @@ type ServiceInterfacesClient interface { // @param localeServiceIdParam (required) // @param interfaceIdParam (required) // @param serviceInterfaceParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.ServiceInterface // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface, overrideParam *bool) (model.ServiceInterface, error) + Update(tier0IdParam string, localeServiceIdParam string, interfaceIdParam string, serviceInterfaceParam model.ServiceInterface) (model.ServiceInterface, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesTypes.go index 187c8ed18..0ffd60d35 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/ServiceInterfacesTypes.go @@ -30,11 +30,9 @@ func serviceInterfacesDeleteInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -50,25 +48,23 @@ func serviceInterfacesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["interface_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() paramsTypeMap["interfaceId"] = bindings.NewStringType() pathParams["tier0_id"] = "tier0Id" pathParams["interface_id"] = "interfaceId" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -78,14 +74,18 @@ func serviceInterfacesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-interfaces/{interfaceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInterfacesGetInputType() bindings.StructType { @@ -112,6 +112,8 @@ func serviceInterfacesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() @@ -136,14 +138,18 @@ func serviceInterfacesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-interfaces/{interfaceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInterfacesListInputType() bindings.StructType { @@ -180,6 +186,8 @@ func serviceInterfacesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -223,14 +231,18 @@ func serviceInterfacesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-interfaces", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInterfacesPatchInputType() bindings.StructType { @@ -240,12 +252,10 @@ func serviceInterfacesPatchInputType() bindings.StructType { fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["service_interface"] = bindings.NewReferenceType(model.ServiceInterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["service_interface"] = "ServiceInterface" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -261,20 +271,19 @@ func serviceInterfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["service_interface"] = bindings.NewReferenceType(model.ServiceInterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["service_interface"] = "ServiceInterface" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["interface_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["service_interface"] = bindings.NewReferenceType(model.ServiceInterfaceBindingType) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() @@ -282,7 +291,6 @@ func serviceInterfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams["tier0_id"] = "tier0Id" pathParams["interface_id"] = "interfaceId" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -292,14 +300,18 @@ func serviceInterfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service_interface", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-interfaces/{interfaceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInterfacesUpdateInputType() bindings.StructType { @@ -309,12 +321,10 @@ func serviceInterfacesUpdateInputType() bindings.StructType { fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["service_interface"] = bindings.NewReferenceType(model.ServiceInterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["service_interface"] = "ServiceInterface" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -330,20 +340,19 @@ func serviceInterfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["service_interface"] = bindings.NewReferenceType(model.ServiceInterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["service_interface"] = "ServiceInterface" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["interface_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["service_interface"] = bindings.NewReferenceType(model.ServiceInterfaceBindingType) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() @@ -351,7 +360,6 @@ func serviceInterfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams["tier0_id"] = "tier0Id" pathParams["interface_id"] = "interfaceId" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -361,14 +369,18 @@ func serviceInterfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "service_interface", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/service-interfaces/{interfaceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/SessionTimerProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/SessionTimerProfileBindingsTypes.go index 3032cb29f..3b1a050d6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/SessionTimerProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/SessionTimerProfileBindingsTypes.go @@ -48,6 +48,8 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsPatchInputType() bindings.StructType { @@ -166,6 +178,8 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -193,14 +207,18 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsUpdateInputType() bindings.StructType { @@ -229,6 +247,8 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -256,14 +276,18 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsClient.go index c0a2d39fc..82746ef64 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsClient.go @@ -16,7 +16,7 @@ import ( type Tier0DeploymentMapsClient interface { - // Delete Tier-0 Deployment Map This API has been deprecated. Use new API GET /infra/tier-0s/tier-0-id/locale-services/locale-services-id/tier-0-deployment-maps + // Delete Tier-0 Deployment Map // // @param tier0IdParam (required) // @param localeServiceIdParam (required) @@ -28,7 +28,7 @@ type Tier0DeploymentMapsClient interface { // @throws NotFound Not Found Delete(tier0IdParam string, localeServiceIdParam string, tier0DeploymentMapIdParam string) error - // Read a Tier-0 Deployment Map This API has been deprecated. Use new API GET /infra/tier-0s/tier-0-1/locale-services/locale-services-1/tier-0-deployment-maps/tier-0-deployment-map-1 + // Read a Tier-0 Deployment Map // // @param tier0IdParam (required) // @param localeServiceIdParam (required) @@ -41,7 +41,7 @@ type Tier0DeploymentMapsClient interface { // @throws NotFound Not Found Get(tier0IdParam string, localeServiceIdParam string, tier0DeploymentMapIdParam string) (model.Tier0DeploymentMap, error) - // Paginated list of all Tier-0 Deployment Entries. This API has been deprecated. Use new API GET /infra/tier-0s/tier-0-id/locale-services/locale-services-id/tier-0-deployment-maps + // Paginated list of all Tier-0 Deployment Entries. // // @param tier0IdParam (required) // @param localeServiceIdParam (required) @@ -59,7 +59,7 @@ type Tier0DeploymentMapsClient interface { // @throws NotFound Not Found List(tier0IdParam string, localeServiceIdParam string, cursorParam *string, includeMarkForDeleteObjectsParam *bool, includedFieldsParam *string, pageSizeParam *int64, sortAscendingParam *bool, sortByParam *string) (model.Tier0DeploymentMapListResult, error) - // + // If the passed Tier-0 Deployment Map does not already exist, create a new Tier-0 Deployment Map. If it already exists, patch it. // // @param tier0IdParam (required) // @param localeServiceIdParam (required) @@ -73,7 +73,7 @@ type Tier0DeploymentMapsClient interface { // @throws NotFound Not Found Patch(tier0IdParam string, localeServiceIdParam string, tier0DeploymentMapIdParam string, tier0DeploymentMapParam model.Tier0DeploymentMap) (model.Tier0DeploymentMap, error) - // If the passed Tier-0 Deployment Map does not already exist, create a new Tier-0 Deployment Map. If it already exists, replace it. This API has been deprecated. Use new API PUT /infra/tier-0s/tier-0-id/locale-services/locale-services-id/tier-0-deployment-maps/tier-0-deployment-map-id + // If the passed Tier-0 Deployment Map does not already exist, create a new Tier-0 Deployment Map. If it already exists, replace it. // // @param tier0IdParam (required) // @param localeServiceIdParam (required) diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsTypes.go index bc89f93ba..aca106e81 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/Tier0DeploymentMapsTypes.go @@ -48,6 +48,8 @@ func tier0DeploymentMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["tier0_deployment_map_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func tier0DeploymentMapsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/tier-0-deployment-maps/{tier0DeploymentMapId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0DeploymentMapsGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func tier0DeploymentMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["tier0_deployment_map_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func tier0DeploymentMapsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/tier-0-deployment-maps/{tier0DeploymentMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0DeploymentMapsListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func tier0DeploymentMapsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func tier0DeploymentMapsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/tier-0-deployment-maps", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0DeploymentMapsPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func tier0DeploymentMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["tier0_deployment_map_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func tier0DeploymentMapsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0_deployment_map", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/tier-0-deployment-maps/{tier0DeploymentMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func tier0DeploymentMapsUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func tier0DeploymentMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["tier0_deployment_map_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func tier0DeploymentMapsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier0_deployment_map", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/tier-0-deployment-maps/{tier0DeploymentMapId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/DefaultNeighborsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/DefaultNeighborsClient.go index 908a7b1d4..d67a7e91e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/DefaultNeighborsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/DefaultNeighborsClient.go @@ -45,12 +45,33 @@ func NewDefaultNeighborsClient(connector client.Connector) *DefaultNeighborsClie } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + nIface := DefaultNeighborsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} nIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) nIface.methodNameToDefMap["delete"] = nIface.deleteMethodDefinition() @@ -61,14 +82,13 @@ func NewDefaultNeighborsClient(connector client.Connector) *DefaultNeighborsClie return &nIface } -func (nIface *DefaultNeighborsClient) Delete(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, overrideParam *bool) error { +func (nIface *DefaultNeighborsClient) Delete(tier0IdParam string, localeServiceIdParam string, neighborIdParam string) error { typeConverter := nIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(nIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(neighborsDeleteInputType(), typeConverter) sv.AddStructField("Tier0Id", tier0IdParam) sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("NeighborId", neighborIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -163,7 +183,7 @@ func (nIface *DefaultNeighborsClient) List(tier0IdParam string, localeServiceIdP } } -func (nIface *DefaultNeighborsClient) Patch(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig, overrideParam *bool) error { +func (nIface *DefaultNeighborsClient) Patch(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig) error { typeConverter := nIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(nIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(neighborsPatchInputType(), typeConverter) @@ -171,7 +191,6 @@ func (nIface *DefaultNeighborsClient) Patch(tier0IdParam string, localeServiceId sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("NeighborId", neighborIdParam) sv.AddStructField("BgpNeighborConfig", bgpNeighborConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -193,7 +212,7 @@ func (nIface *DefaultNeighborsClient) Patch(tier0IdParam string, localeServiceId } } -func (nIface *DefaultNeighborsClient) Update(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig, overrideParam *bool) (model.BgpNeighborConfig, error) { +func (nIface *DefaultNeighborsClient) Update(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig) (model.BgpNeighborConfig, error) { typeConverter := nIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(nIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(neighborsUpdateInputType(), typeConverter) @@ -201,7 +220,6 @@ func (nIface *DefaultNeighborsClient) Update(tier0IdParam string, localeServiceI sv.AddStructField("LocaleServiceId", localeServiceIdParam) sv.AddStructField("NeighborId", neighborIdParam) sv.AddStructField("BgpNeighborConfig", bgpNeighborConfigParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.BgpNeighborConfig diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsClient.go index 736ae985b..bd8e77c9f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsClient.go @@ -21,13 +21,12 @@ type NeighborsClient interface { // @param tier0IdParam (required) // @param localeServiceIdParam (required) // @param neighborIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, overrideParam *bool) error + Delete(tier0IdParam string, localeServiceIdParam string, neighborIdParam string) error // Read BGP neighbor config // @@ -66,13 +65,12 @@ type NeighborsClient interface { // @param localeServiceIdParam (required) // @param neighborIdParam (required) // @param bgpNeighborConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig, overrideParam *bool) error + Patch(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig) error // If BGP neighbor config with the neighbor-id is not already present, create a new neighbor config. If it already exists, replace the BGP neighbor config with this object. // @@ -80,12 +78,11 @@ type NeighborsClient interface { // @param localeServiceIdParam (required) // @param neighborIdParam (required) // @param bgpNeighborConfigParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.BgpNeighborConfig // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig, overrideParam *bool) (model.BgpNeighborConfig, error) + Update(tier0IdParam string, localeServiceIdParam string, neighborIdParam string, bgpNeighborConfigParam model.BgpNeighborConfig) (model.BgpNeighborConfig, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsTypes.go index 65bc55a74..6c52735ea 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/locale_services/bgp/NeighborsTypes.go @@ -30,11 +30,9 @@ func neighborsDeleteInputType() bindings.StructType { fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["neighbor_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["neighbor_id"] = "NeighborId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -50,25 +48,23 @@ func neighborsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["neighbor_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["neighbor_id"] = "NeighborId" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["neighbor_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() paramsTypeMap["neighborId"] = bindings.NewStringType() pathParams["neighbor_id"] = "neighborId" pathParams["tier0_id"] = "tier0Id" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -78,14 +74,18 @@ func neighborsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp/neighbors/{neighborId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func neighborsGetInputType() bindings.StructType { @@ -112,6 +112,8 @@ func neighborsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["neighbor_id"] = bindings.NewStringType() @@ -136,14 +138,18 @@ func neighborsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp/neighbors/{neighborId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func neighborsListInputType() bindings.StructType { @@ -180,6 +186,8 @@ func neighborsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -223,14 +231,18 @@ func neighborsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp/neighbors", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func neighborsPatchInputType() bindings.StructType { @@ -240,12 +252,10 @@ func neighborsPatchInputType() bindings.StructType { fields["locale_service_id"] = bindings.NewStringType() fields["neighbor_id"] = bindings.NewStringType() fields["bgp_neighbor_config"] = bindings.NewReferenceType(model.BgpNeighborConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["neighbor_id"] = "NeighborId" fieldNameMap["bgp_neighbor_config"] = "BgpNeighborConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -261,28 +271,26 @@ func neighborsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["neighbor_id"] = bindings.NewStringType() fields["bgp_neighbor_config"] = bindings.NewReferenceType(model.BgpNeighborConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["neighbor_id"] = "NeighborId" fieldNameMap["bgp_neighbor_config"] = "BgpNeighborConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["bgp_neighbor_config"] = bindings.NewReferenceType(model.BgpNeighborConfigBindingType) paramsTypeMap["neighbor_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() paramsTypeMap["neighborId"] = bindings.NewStringType() pathParams["neighbor_id"] = "neighborId" pathParams["tier0_id"] = "tier0Id" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -292,14 +300,18 @@ func neighborsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "bgp_neighbor_config", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp/neighbors/{neighborId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func neighborsUpdateInputType() bindings.StructType { @@ -309,12 +321,10 @@ func neighborsUpdateInputType() bindings.StructType { fields["locale_service_id"] = bindings.NewStringType() fields["neighbor_id"] = bindings.NewStringType() fields["bgp_neighbor_config"] = bindings.NewReferenceType(model.BgpNeighborConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["neighbor_id"] = "NeighborId" fieldNameMap["bgp_neighbor_config"] = "BgpNeighborConfig" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -330,28 +340,26 @@ func neighborsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["neighbor_id"] = bindings.NewStringType() fields["bgp_neighbor_config"] = bindings.NewReferenceType(model.BgpNeighborConfigBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier0_id"] = "Tier0Id" fieldNameMap["locale_service_id"] = "LocaleServiceId" fieldNameMap["neighbor_id"] = "NeighborId" fieldNameMap["bgp_neighbor_config"] = "BgpNeighborConfig" - fieldNameMap["override"] = "Override" paramsTypeMap["tier0_id"] = bindings.NewStringType() paramsTypeMap["locale_service_id"] = bindings.NewStringType() paramsTypeMap["bgp_neighbor_config"] = bindings.NewReferenceType(model.BgpNeighborConfigBindingType) paramsTypeMap["neighbor_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["tier0Id"] = bindings.NewStringType() paramsTypeMap["localeServiceId"] = bindings.NewStringType() paramsTypeMap["neighborId"] = bindings.NewStringType() pathParams["neighbor_id"] = "neighborId" pathParams["tier0_id"] = "tier0Id" pathParams["locale_service_id"] = "localeServiceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -361,14 +369,18 @@ func neighborsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "bgp_neighbor_config", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/locale-services/{localeServiceId}/bgp/neighbors/{neighborId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultNatRulesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultNatRulesClient.go index 51a14170c..17b95a843 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultNatRulesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultNatRulesClient.go @@ -45,12 +45,33 @@ func NewDefaultNatRulesClient(connector client.Connector) *DefaultNatRulesClient } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + nIface := DefaultNatRulesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} nIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) nIface.methodNameToDefMap["delete"] = nIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultStatisticsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultStatisticsClient.go index 944f3a568..0a50393b6 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultStatisticsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/DefaultStatisticsClient.go @@ -41,12 +41,33 @@ func NewDefaultStatisticsClient(connector client.Connector) *DefaultStatisticsCl } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStatisticsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["list"] = sIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/NatRulesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/NatRulesTypes.go index 3811dc044..dbff78149 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/NatRulesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/NatRulesTypes.go @@ -48,6 +48,8 @@ func natRulesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func natRulesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-0s/{tier0Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func natRulesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func natRulesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func natRulesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func natRulesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/nat/{natId}/nat-rules", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func natRulesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func natRulesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_nat_rule", "PATCH", "/policy/api/v1/infra/tier-0s/{tier0Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func natRulesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func natRulesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_nat_rule", "PUT", "/policy/api/v1/infra/tier-0s/{tier0Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/StatisticsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/StatisticsTypes.go index b817245e4..5a67f1cef 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/StatisticsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_0s/nat/StatisticsTypes.go @@ -58,6 +58,8 @@ func statisticsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier0_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -100,14 +102,18 @@ func statisticsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-0s/{tier0Id}/nat/statistics", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultDnsForwarderClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultDnsForwarderClient.go index bc3c74a81..595298c9f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultDnsForwarderClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultDnsForwarderClient.go @@ -45,12 +45,33 @@ func NewDefaultDnsForwarderClient(connector client.Connector) *DefaultDnsForward } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + dIface := DefaultDnsForwarderClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} dIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) dIface.methodNameToDefMap["create"] = dIface.createMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultFloodProtectionProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultFloodProtectionProfileBindingsClient.go index 5935ee865..90384ff66 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultFloodProtectionProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultFloodProtectionProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultFloodProtectionProfileBindingsClient(connector client.Connector) } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFloodProtectionProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultForwardingTableClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultForwardingTableClient.go index 3a4e45dd6..2707e78bd 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultForwardingTableClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultForwardingTableClient.go @@ -41,12 +41,33 @@ func NewDefaultForwardingTableClient(connector client.Connector) *DefaultForward } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultForwardingTableClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["list"] = fIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultGatewayFirewallClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultGatewayFirewallClient.go index cef488c51..40a0b9213 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultGatewayFirewallClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultGatewayFirewallClient.go @@ -41,12 +41,33 @@ func NewDefaultGatewayFirewallClient(connector client.Connector) *DefaultGateway } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGatewayFirewallClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["list"] = gIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultIpfixSwitchCollectionInstancesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultIpfixSwitchCollectionInstancesClient.go index 2f16ef93e..5a26bab03 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultIpfixSwitchCollectionInstancesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultIpfixSwitchCollectionInstancesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpfixSwitchCollectionInstancesClient(connector client.Connector) } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpfixSwitchCollectionInstancesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultLocaleServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultLocaleServicesClient.go index 3a25fcb3c..afb24b643 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultLocaleServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultLocaleServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultLocaleServicesClient(connector client.Connector) *DefaultLocaleSe } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultLocaleServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSegmentsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSegmentsClient.go index af23db22b..ac0a3b5bc 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSegmentsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSegmentsClient.go @@ -46,12 +46,33 @@ func NewDefaultSegmentsClient(connector client.Connector) *DefaultSegmentsClient } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSegmentsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSessionTimerProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSessionTimerProfileBindingsClient.go index e65e16301..dcdc53a4f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSessionTimerProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultSessionTimerProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultSessionTimerProfileBindingsClient(connector client.Connector) *De } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSessionTimerProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStateClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStateClient.go index 37bd8e838..4803dfb2e 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStateClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStateClient.go @@ -41,12 +41,33 @@ func NewDefaultStateClient(connector client.Connector) *DefaultStateClient { } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStateClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["get"] = sIface.getMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStaticRoutesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStaticRoutesClient.go index 8bc4ddf91..ae58d1c09 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStaticRoutesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DefaultStaticRoutesClient.go @@ -45,12 +45,33 @@ func NewDefaultStaticRoutesClient(connector client.Connector) *DefaultStaticRout } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStaticRoutesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DnsForwarderTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DnsForwarderTypes.go index f191a6c0d..3157ee64d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DnsForwarderTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/DnsForwarderTypes.go @@ -50,6 +50,8 @@ func dnsForwarderCreateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["action"] = bindings.NewStringType() fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -72,14 +74,18 @@ func dnsForwarderCreateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "POST", "/policy/api/v1/infra/tier-1s/{tier1Id}/dns-forwarder", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderDeleteInputType() bindings.StructType { @@ -102,6 +108,8 @@ func dnsForwarderDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" paramsTypeMap["tier1_id"] = bindings.NewStringType() @@ -116,14 +124,18 @@ func dnsForwarderDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/dns-forwarder", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderGetInputType() bindings.StructType { @@ -146,6 +158,8 @@ func dnsForwarderGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" paramsTypeMap["tier1_id"] = bindings.NewStringType() @@ -160,14 +174,18 @@ func dnsForwarderGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/dns-forwarder", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderPatchInputType() bindings.StructType { @@ -192,6 +210,8 @@ func dnsForwarderPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["policy_dns_forwarder"] = bindings.NewReferenceType(model.PolicyDnsForwarderBindingType) fieldNameMap["tier1_id"] = "Tier1Id" @@ -209,14 +229,18 @@ func dnsForwarderPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_dns_forwarder", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/dns-forwarder", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func dnsForwarderUpdateInputType() bindings.StructType { @@ -241,6 +265,8 @@ func dnsForwarderUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["policy_dns_forwarder"] = bindings.NewReferenceType(model.PolicyDnsForwarderBindingType) fieldNameMap["tier1_id"] = "Tier1Id" @@ -258,14 +284,18 @@ func dnsForwarderUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_dns_forwarder", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/dns-forwarder", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/FloodProtectionProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/FloodProtectionProfileBindingsTypes.go index f8ab77461..eb0ef2430 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/FloodProtectionProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/FloodProtectionProfileBindingsTypes.go @@ -46,6 +46,8 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -65,14 +67,18 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -116,14 +124,18 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsPatchInputType() bindings.StructType { @@ -150,6 +162,8 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_map"] = bindings.NewReferenceType(model.FloodProtectionProfileBindingMapBindingType) @@ -172,14 +186,18 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsUpdateInputType() bindings.StructType { @@ -206,6 +224,8 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_map"] = bindings.NewReferenceType(model.FloodProtectionProfileBindingMapBindingType) @@ -228,14 +248,18 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/ForwardingTableTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/ForwardingTableTypes.go index 439a37965..2134f85c4 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/ForwardingTableTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/ForwardingTableTypes.go @@ -70,6 +70,8 @@ func forwardingTableListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["edge_id"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -124,14 +126,18 @@ func forwardingTableListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/forwarding-table", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/GatewayFirewallTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/GatewayFirewallTypes.go index 690a64de8..673581e4f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/GatewayFirewallTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/GatewayFirewallTypes.go @@ -44,6 +44,8 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" paramsTypeMap["tier1_id"] = bindings.NewStringType() @@ -58,14 +60,18 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/gateway-firewall", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/IpfixSwitchCollectionInstancesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/IpfixSwitchCollectionInstancesTypes.go index 890bace24..5185d9094 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/IpfixSwitchCollectionInstancesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/IpfixSwitchCollectionInstancesTypes.go @@ -46,6 +46,8 @@ func ipfixSwitchCollectionInstancesDeleteRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["ipfix_switch_collection_instance_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -65,14 +67,18 @@ func ipfixSwitchCollectionInstancesDeleteRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/ipfix-switch-collection-instances/{ipfixSwitchCollectionInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixSwitchCollectionInstancesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func ipfixSwitchCollectionInstancesGetRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["ipfix_switch_collection_instance_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -116,14 +124,18 @@ func ipfixSwitchCollectionInstancesGetRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/ipfix-switch-collection-instances/{ipfixSwitchCollectionInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixSwitchCollectionInstancesListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func ipfixSwitchCollectionInstancesListRestMetadata() protocol.OperationRestMeta pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func ipfixSwitchCollectionInstancesListRestMetadata() protocol.OperationRestMeta pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/ipfix-switch-collection-instances", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixSwitchCollectionInstancesPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func ipfixSwitchCollectionInstancesPatchRestMetadata() protocol.OperationRestMet pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["ipfix_switch_collection_instance_id"] = bindings.NewStringType() fields["i_PFIX_switch_collection_instance"] = bindings.NewReferenceType(model.IPFIXSwitchCollectionInstanceBindingType) @@ -252,14 +272,18 @@ func ipfixSwitchCollectionInstancesPatchRestMetadata() protocol.OperationRestMet pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_switch_collection_instance", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/ipfix-switch-collection-instances/{ipfixSwitchCollectionInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipfixSwitchCollectionInstancesUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func ipfixSwitchCollectionInstancesUpdateRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["ipfix_switch_collection_instance_id"] = bindings.NewStringType() fields["i_PFIX_switch_collection_instance"] = bindings.NewReferenceType(model.IPFIXSwitchCollectionInstanceBindingType) @@ -308,14 +334,18 @@ func ipfixSwitchCollectionInstancesUpdateRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "i_PFIX_switch_collection_instance", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/ipfix-switch-collection-instances/{ipfixSwitchCollectionInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/LocaleServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/LocaleServicesTypes.go index 559c93579..60b829917 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/LocaleServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/LocaleServicesTypes.go @@ -46,6 +46,8 @@ func localeServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -65,14 +67,18 @@ func localeServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func localeServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -116,14 +124,18 @@ func localeServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func localeServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func localeServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func localeServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["locale_services"] = bindings.NewReferenceType(model.LocaleServicesBindingType) @@ -252,14 +272,18 @@ func localeServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "locale_services", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func localeServicesUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func localeServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["locale_services"] = bindings.NewReferenceType(model.LocaleServicesBindingType) @@ -308,14 +334,18 @@ func localeServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "locale_services", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SegmentsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SegmentsTypes.go index 45423b79c..cc2b46f56 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SegmentsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SegmentsTypes.go @@ -46,6 +46,8 @@ func segmentsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["segment_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -65,14 +67,18 @@ func segmentsDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/segments/{segmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsDelete0InputType() bindings.StructType { @@ -97,6 +103,8 @@ func segmentsDelete0RestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["segment_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -116,14 +124,18 @@ func segmentsDelete0RestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "force=true", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/segments/{segmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsGetInputType() bindings.StructType { @@ -148,6 +160,8 @@ func segmentsGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["segment_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -167,14 +181,18 @@ func segmentsGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/segments/{segmentId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsListInputType() bindings.StructType { @@ -209,6 +227,8 @@ func segmentsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -247,14 +267,18 @@ func segmentsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/segments", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsPatchInputType() bindings.StructType { @@ -281,6 +305,8 @@ func segmentsPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["segment_id"] = bindings.NewStringType() fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) @@ -303,14 +329,18 @@ func segmentsPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/segments/{segmentId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func segmentsUpdateInputType() bindings.StructType { @@ -337,6 +367,8 @@ func segmentsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["segment_id"] = bindings.NewStringType() fields["segment"] = bindings.NewReferenceType(model.SegmentBindingType) @@ -359,14 +391,18 @@ func segmentsUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "segment", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/segments/{segmentId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SessionTimerProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SessionTimerProfileBindingsTypes.go index f022bc5a1..38e646a73 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SessionTimerProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/SessionTimerProfileBindingsTypes.go @@ -46,6 +46,8 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -65,14 +67,18 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -116,14 +124,18 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsPatchInputType() bindings.StructType { @@ -150,6 +162,8 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fields["session_timer_profile_binding_map"] = bindings.NewReferenceType(model.SessionTimerProfileBindingMapBindingType) @@ -172,14 +186,18 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsUpdateInputType() bindings.StructType { @@ -206,6 +224,8 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() fields["session_timer_profile_binding_map"] = bindings.NewReferenceType(model.SessionTimerProfileBindingMapBindingType) @@ -228,14 +248,18 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StateTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StateTypes.go index 908ce5276..5f76e822c 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StateTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StateTypes.go @@ -58,6 +58,8 @@ func stateGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -100,14 +102,18 @@ func stateGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/state", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StaticRoutesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StaticRoutesTypes.go index d8d06052f..fc6c9b01d 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StaticRoutesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/StaticRoutesTypes.go @@ -46,6 +46,8 @@ func staticRoutesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -65,14 +67,18 @@ func staticRoutesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/static-routes/{routeId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesGetInputType() bindings.StructType { @@ -97,6 +103,8 @@ func staticRoutesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -116,14 +124,18 @@ func staticRoutesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/static-routes/{routeId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesListInputType() bindings.StructType { @@ -158,6 +170,8 @@ func staticRoutesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["include_mark_for_delete_objects"] = bindings.NewOptionalType(bindings.NewBooleanType()) @@ -196,14 +210,18 @@ func staticRoutesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/static-routes", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesPatchInputType() bindings.StructType { @@ -230,6 +248,8 @@ func staticRoutesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fields["static_routes"] = bindings.NewReferenceType(model.StaticRoutesBindingType) @@ -252,14 +272,18 @@ func staticRoutesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "static_routes", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/static-routes/{routeId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func staticRoutesUpdateInputType() bindings.StructType { @@ -286,6 +310,8 @@ func staticRoutesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["route_id"] = bindings.NewStringType() fields["static_routes"] = bindings.NewReferenceType(model.StaticRoutesBindingType) @@ -308,14 +334,18 @@ func staticRoutesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "static_routes", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/static-routes/{routeId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultFloodProtectionProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultFloodProtectionProfileBindingsClient.go index 391bcf1c2..881e68163 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultFloodProtectionProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultFloodProtectionProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultFloodProtectionProfileBindingsClient(connector client.Connector) } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + fIface := DefaultFloodProtectionProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} fIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) fIface.methodNameToDefMap["delete"] = fIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultGatewayFirewallClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultGatewayFirewallClient.go index 47d372b1e..5ed4b6136 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultGatewayFirewallClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultGatewayFirewallClient.go @@ -41,12 +41,33 @@ func NewDefaultGatewayFirewallClient(connector client.Connector) *DefaultGateway } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + gIface := DefaultGatewayFirewallClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} gIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) gIface.methodNameToDefMap["list"] = gIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultInterfacesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultInterfacesClient.go index fc0375dea..3ac89bb80 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultInterfacesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultInterfacesClient.go @@ -45,12 +45,33 @@ func NewDefaultInterfacesClient(connector client.Connector) *DefaultInterfacesCl } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultInterfacesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() @@ -61,14 +82,13 @@ func NewDefaultInterfacesClient(connector client.Connector) *DefaultInterfacesCl return &iIface } -func (iIface *DefaultInterfacesClient) Delete(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, overrideParam *bool) error { +func (iIface *DefaultInterfacesClient) Delete(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "delete") sv := bindings.NewStructValueBuilder(interfacesDeleteInputType(), typeConverter) sv.AddStructField("Tier1Id", tier1IdParam) sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -163,7 +183,7 @@ func (iIface *DefaultInterfacesClient) List(tier1IdParam string, localeServicesI } } -func (iIface *DefaultInterfacesClient) Patch(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface, overrideParam *bool) error { +func (iIface *DefaultInterfacesClient) Patch(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface) error { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "patch") sv := bindings.NewStructValueBuilder(interfacesPatchInputType(), typeConverter) @@ -171,7 +191,6 @@ func (iIface *DefaultInterfacesClient) Patch(tier1IdParam string, localeServices sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) sv.AddStructField("Tier1Interface", tier1InterfaceParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { return bindings.VAPIerrorsToError(inputError) @@ -193,7 +212,7 @@ func (iIface *DefaultInterfacesClient) Patch(tier1IdParam string, localeServices } } -func (iIface *DefaultInterfacesClient) Update(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface, overrideParam *bool) (model.Tier1Interface, error) { +func (iIface *DefaultInterfacesClient) Update(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface) (model.Tier1Interface, error) { typeConverter := iIface.connector.TypeConverter() methodIdentifier := core.NewMethodIdentifier(iIface.interfaceIdentifier, "update") sv := bindings.NewStructValueBuilder(interfacesUpdateInputType(), typeConverter) @@ -201,7 +220,6 @@ func (iIface *DefaultInterfacesClient) Update(tier1IdParam string, localeService sv.AddStructField("LocaleServicesId", localeServicesIdParam) sv.AddStructField("InterfaceId", interfaceIdParam) sv.AddStructField("Tier1Interface", tier1InterfaceParam) - sv.AddStructField("Override", overrideParam) inputDataValue, inputError := sv.GetStructValue() if inputError != nil { var emptyOutput model.Tier1Interface diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultIpsecVpnServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultIpsecVpnServicesClient.go index c7f7d098c..114c94673 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultIpsecVpnServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultIpsecVpnServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultIpsecVpnServicesClient(connector client.Connector) *DefaultIpsecV } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + iIface := DefaultIpsecVpnServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} iIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) iIface.methodNameToDefMap["delete"] = iIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultL2vpnServicesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultL2vpnServicesClient.go index 1e08f88ab..eaaf45831 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultL2vpnServicesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultL2vpnServicesClient.go @@ -45,12 +45,33 @@ func NewDefaultL2vpnServicesClient(connector client.Connector) *DefaultL2vpnServ } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + lIface := DefaultL2vpnServicesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} lIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) lIface.methodNameToDefMap["delete"] = lIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultServiceInstancesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultServiceInstancesClient.go index 75e008062..db6d1d8f8 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultServiceInstancesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultServiceInstancesClient.go @@ -45,12 +45,33 @@ func NewDefaultServiceInstancesClient(connector client.Connector) *DefaultServic } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultServiceInstancesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultSessionTimerProfileBindingsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultSessionTimerProfileBindingsClient.go index f18cd57ac..5ab6072e9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultSessionTimerProfileBindingsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/DefaultSessionTimerProfileBindingsClient.go @@ -44,12 +44,33 @@ func NewDefaultSessionTimerProfileBindingsClient(connector client.Connector) *De } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultSessionTimerProfileBindingsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["delete"] = sIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/FloodProtectionProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/FloodProtectionProfileBindingsTypes.go index ecf2ba51f..74c0f3d69 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/FloodProtectionProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/FloodProtectionProfileBindingsTypes.go @@ -48,6 +48,8 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func floodProtectionProfileBindingsDeleteRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func floodProtectionProfileBindingsGetRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsPatchInputType() bindings.StructType { @@ -166,6 +178,8 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -193,14 +207,18 @@ func floodProtectionProfileBindingsPatchRestMetadata() protocol.OperationRestMet pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func floodProtectionProfileBindingsUpdateInputType() bindings.StructType { @@ -229,6 +247,8 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["flood_protection_profile_binding_id"] = bindings.NewStringType() @@ -256,14 +276,18 @@ func floodProtectionProfileBindingsUpdateRestMetadata() protocol.OperationRestMe pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "flood_protection_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/flood-protection-profile-bindings/{floodProtectionProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/GatewayFirewallTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/GatewayFirewallTypes.go index fc19632f1..65c36d34f 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/GatewayFirewallTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/GatewayFirewallTypes.go @@ -46,6 +46,8 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fieldNameMap["tier1_id"] = "Tier1Id" @@ -65,14 +67,18 @@ func gatewayFirewallListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/gateway-firewall", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesClient.go index 8e758473e..d7529b8b9 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesClient.go @@ -21,13 +21,12 @@ type InterfacesClient interface { // @param tier1IdParam (required) // @param localeServicesIdParam (required) // @param interfaceIdParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Delete(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, overrideParam *bool) error + Delete(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string) error // Read Tier-1 interface // @@ -66,13 +65,12 @@ type InterfacesClient interface { // @param localeServicesIdParam (required) // @param interfaceIdParam (required) // @param tier1InterfaceParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Patch(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface, overrideParam *bool) error + Patch(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface) error // If an interface with the interface-id is not already present, create a new interface. If it already exists, replace the interface with this object. // @@ -80,12 +78,11 @@ type InterfacesClient interface { // @param localeServicesIdParam (required) // @param interfaceIdParam (required) // @param tier1InterfaceParam (required) - // @param overrideParam Locally override the global object (optional, default to false) // @return com.vmware.nsx_policy.model.Tier1Interface // @throws InvalidRequest Bad Request, Precondition Failed // @throws Unauthorized Forbidden // @throws ServiceUnavailable Service Unavailable // @throws InternalServerError Internal Server Error // @throws NotFound Not Found - Update(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface, overrideParam *bool) (model.Tier1Interface, error) + Update(tier1IdParam string, localeServicesIdParam string, interfaceIdParam string, tier1InterfaceParam model.Tier1Interface) (model.Tier1Interface, error) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesTypes.go index 95e7d2479..15544d195 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/InterfacesTypes.go @@ -30,11 +30,9 @@ func interfacesDeleteInputType() bindings.StructType { fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier1_id"] = "Tier1Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["interface_id"] = "InterfaceId" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -50,17 +48,16 @@ func interfacesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier1_id"] = "Tier1Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["interface_id"] = "InterfaceId" - fieldNameMap["override"] = "Override" paramsTypeMap["interface_id"] = bindings.NewStringType() paramsTypeMap["tier1_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["locale_services_id"] = bindings.NewStringType() paramsTypeMap["tier1Id"] = bindings.NewStringType() paramsTypeMap["localeServicesId"] = bindings.NewStringType() @@ -68,7 +65,6 @@ func interfacesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams["locale_services_id"] = "localeServicesId" pathParams["tier1_id"] = "tier1Id" pathParams["interface_id"] = "interfaceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -78,14 +74,18 @@ func interfacesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/interfaces/{interfaceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesGetInputType() bindings.StructType { @@ -112,6 +112,8 @@ func interfacesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() @@ -136,14 +138,18 @@ func interfacesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/interfaces/{interfaceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesListInputType() bindings.StructType { @@ -180,6 +186,8 @@ func interfacesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -223,14 +231,18 @@ func interfacesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/interfaces", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesPatchInputType() bindings.StructType { @@ -240,12 +252,10 @@ func interfacesPatchInputType() bindings.StructType { fields["locale_services_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier1_interface"] = bindings.NewReferenceType(model.Tier1InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier1_id"] = "Tier1Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier1_interface"] = "Tier1Interface" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -261,20 +271,19 @@ func interfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier1_interface"] = bindings.NewReferenceType(model.Tier1InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier1_id"] = "Tier1Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier1_interface"] = "Tier1Interface" - fieldNameMap["override"] = "Override" paramsTypeMap["interface_id"] = bindings.NewStringType() paramsTypeMap["tier1_interface"] = bindings.NewReferenceType(model.Tier1InterfaceBindingType) paramsTypeMap["tier1_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["locale_services_id"] = bindings.NewStringType() paramsTypeMap["tier1Id"] = bindings.NewStringType() paramsTypeMap["localeServicesId"] = bindings.NewStringType() @@ -282,7 +291,6 @@ func interfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams["locale_services_id"] = "localeServicesId" pathParams["tier1_id"] = "tier1Id" pathParams["interface_id"] = "interfaceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -292,14 +300,18 @@ func interfacesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier1_interface", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/interfaces/{interfaceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func interfacesUpdateInputType() bindings.StructType { @@ -309,12 +321,10 @@ func interfacesUpdateInputType() bindings.StructType { fields["locale_services_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier1_interface"] = bindings.NewReferenceType(model.Tier1InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier1_id"] = "Tier1Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier1_interface"] = "Tier1Interface" - fieldNameMap["override"] = "Override" var validators = []bindings.Validator{} return bindings.NewStructType("operation-input", fields, reflect.TypeOf(data.StructValue{}), fieldNameMap, validators) } @@ -330,20 +340,19 @@ func interfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["interface_id"] = bindings.NewStringType() fields["tier1_interface"] = bindings.NewReferenceType(model.Tier1InterfaceBindingType) - fields["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["tier1_id"] = "Tier1Id" fieldNameMap["locale_services_id"] = "LocaleServicesId" fieldNameMap["interface_id"] = "InterfaceId" fieldNameMap["tier1_interface"] = "Tier1Interface" - fieldNameMap["override"] = "Override" paramsTypeMap["interface_id"] = bindings.NewStringType() paramsTypeMap["tier1_interface"] = bindings.NewReferenceType(model.Tier1InterfaceBindingType) paramsTypeMap["tier1_id"] = bindings.NewStringType() - paramsTypeMap["override"] = bindings.NewOptionalType(bindings.NewBooleanType()) paramsTypeMap["locale_services_id"] = bindings.NewStringType() paramsTypeMap["tier1Id"] = bindings.NewStringType() paramsTypeMap["localeServicesId"] = bindings.NewStringType() @@ -351,7 +360,6 @@ func interfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams["locale_services_id"] = "localeServicesId" pathParams["tier1_id"] = "tier1Id" pathParams["interface_id"] = "interfaceId" - queryParams["override"] = "override" resultHeaders := map[string]string{} errorHeaders := map[string]string{} return protocol.NewOperationRestMetadata( @@ -361,14 +369,18 @@ func interfacesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "tier1_interface", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/interfaces/{interfaceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/IpsecVpnServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/IpsecVpnServicesTypes.go index e5d7a0a58..e0e7e9c8b 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/IpsecVpnServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/IpsecVpnServicesTypes.go @@ -48,6 +48,8 @@ func ipsecVpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func ipsecVpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func ipsecVpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func ipsecVpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func ipsecVpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func ipsecVpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/ipsec-vpn-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func ipsecVpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func ipsecVpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_service", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func ipsecVpnServicesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func ipsecVpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func ipsecVpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "ip_sec_vpn_service", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/ipsec-vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/L2vpnServicesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/L2vpnServicesTypes.go index 9350e6928..462591dfe 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/L2vpnServicesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/L2vpnServicesTypes.go @@ -48,6 +48,8 @@ func l2vpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func l2vpnServicesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func l2vpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func l2vpnServicesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func l2vpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func l2vpnServicesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/l2vpn-services", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func l2vpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func l2vpnServicesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l2_VPN_service", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func l2vpnServicesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func l2vpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func l2vpnServicesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "l2_VPN_service", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/l2vpn-services/{serviceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/ServiceInstancesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/ServiceInstancesTypes.go index f4bd4d89b..3ecf081fc 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/ServiceInstancesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/ServiceInstancesTypes.go @@ -48,6 +48,8 @@ func serviceInstancesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func serviceInstancesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func serviceInstancesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func serviceInstancesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func serviceInstancesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func serviceInstancesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/service-instances", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func serviceInstancesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func serviceInstancesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_service_instance", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func serviceInstancesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func serviceInstancesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_service_id"] = bindings.NewStringType() fields["service_instance_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func serviceInstancesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_service_instance", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServiceId}/service-instances/{serviceInstanceId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/SessionTimerProfileBindingsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/SessionTimerProfileBindingsTypes.go index 7e071a4bf..99d94e2f1 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/SessionTimerProfileBindingsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/locale_services/SessionTimerProfileBindingsTypes.go @@ -48,6 +48,8 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func sessionTimerProfileBindingsDeleteRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func sessionTimerProfileBindingsGetRestMetadata() protocol.OperationRestMetadata pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsPatchInputType() bindings.StructType { @@ -166,6 +178,8 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -193,14 +207,18 @@ func sessionTimerProfileBindingsPatchRestMetadata() protocol.OperationRestMetada pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func sessionTimerProfileBindingsUpdateInputType() bindings.StructType { @@ -229,6 +247,8 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["locale_services_id"] = bindings.NewStringType() fields["session_timer_profile_binding_id"] = bindings.NewStringType() @@ -256,14 +276,18 @@ func sessionTimerProfileBindingsUpdateRestMetadata() protocol.OperationRestMetad pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "session_timer_profile_binding_map", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/locale-services/{localeServicesId}/session-timer-profile-bindings/{sessionTimerProfileBindingId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultNatRulesClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultNatRulesClient.go index 845efb89d..83ca2f9cb 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultNatRulesClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultNatRulesClient.go @@ -45,12 +45,33 @@ func NewDefaultNatRulesClient(connector client.Connector) *DefaultNatRulesClient } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + nIface := DefaultNatRulesClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} nIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) nIface.methodNameToDefMap["delete"] = nIface.deleteMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultStatisticsClient.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultStatisticsClient.go index 0c1dd57b9..0db6d6c75 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultStatisticsClient.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/DefaultStatisticsClient.go @@ -41,12 +41,33 @@ func NewDefaultStatisticsClient(connector client.Connector) *DefaultStatisticsCl } interfaceDefinition := core.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) errorBindingMap := make(map[string]bindings.BindingType) + errorBindingMap[errors.AlreadyExists{}.Error()] = errors.AlreadyExistsBindingType() + errorBindingMap[errors.AlreadyInDesiredState{}.Error()] = errors.AlreadyInDesiredStateBindingType() + errorBindingMap[errors.Canceled{}.Error()] = errors.CanceledBindingType() + errorBindingMap[errors.ConcurrentChange{}.Error()] = errors.ConcurrentChangeBindingType() + errorBindingMap[errors.Error{}.Error()] = errors.ErrorBindingType() + errorBindingMap[errors.FeatureInUse{}.Error()] = errors.FeatureInUseBindingType() errorBindingMap[errors.InternalServerError{}.Error()] = errors.InternalServerErrorBindingType() errorBindingMap[errors.InvalidArgument{}.Error()] = errors.InvalidArgumentBindingType() + errorBindingMap[errors.InvalidElementConfiguration{}.Error()] = errors.InvalidElementConfigurationBindingType() + errorBindingMap[errors.InvalidElementType{}.Error()] = errors.InvalidElementTypeBindingType() + errorBindingMap[errors.InvalidRequest{}.Error()] = errors.InvalidRequestBindingType() + errorBindingMap[errors.NotFound{}.Error()] = errors.NotFoundBindingType() + errorBindingMap[errors.NotAllowedInCurrentState{}.Error()] = errors.NotAllowedInCurrentStateBindingType() errorBindingMap[errors.OperationNotFound{}.Error()] = errors.OperationNotFoundBindingType() - errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.ResourceBusy{}.Error()] = errors.ResourceBusyBindingType() + errorBindingMap[errors.ResourceInUse{}.Error()] = errors.ResourceInUseBindingType() + errorBindingMap[errors.ResourceInaccessible{}.Error()] = errors.ResourceInaccessibleBindingType() errorBindingMap[errors.ServiceUnavailable{}.Error()] = errors.ServiceUnavailableBindingType() errorBindingMap[errors.TimedOut{}.Error()] = errors.TimedOutBindingType() + errorBindingMap[errors.UnableToAllocateResource{}.Error()] = errors.UnableToAllocateResourceBindingType() + errorBindingMap[errors.Unauthenticated{}.Error()] = errors.UnauthenticatedBindingType() + errorBindingMap[errors.Unauthorized{}.Error()] = errors.UnauthorizedBindingType() + errorBindingMap[errors.UnexpectedInput{}.Error()] = errors.UnexpectedInputBindingType() + errorBindingMap[errors.Unsupported{}.Error()] = errors.UnsupportedBindingType() + errorBindingMap[errors.UnverifiedPeer{}.Error()] = errors.UnverifiedPeerBindingType() + + sIface := DefaultStatisticsClient{interfaceName: interfaceName, methodIdentifiers: methodIdentifiers, interfaceDefinition: interfaceDefinition, errorBindingMap: errorBindingMap, interfaceIdentifier: interfaceIdentifier, connector: connector} sIface.methodNameToDefMap = make(map[string]*core.MethodDefinition) sIface.methodNameToDefMap["list"] = sIface.listMethodDefinition() diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/NatRulesTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/NatRulesTypes.go index 1abb0bdca..45df1c9f7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/NatRulesTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/NatRulesTypes.go @@ -48,6 +48,8 @@ func natRulesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -72,14 +74,18 @@ func natRulesDeleteRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "DELETE", "/policy/api/v1/infra/tier-1s/{tier1Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesGetInputType() bindings.StructType { @@ -106,6 +112,8 @@ func natRulesGetRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -130,14 +138,18 @@ func natRulesGetRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesListInputType() bindings.StructType { @@ -174,6 +186,8 @@ func natRulesListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -217,14 +231,18 @@ func natRulesListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/nat/{natId}/nat-rules", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesPatchInputType() bindings.StructType { @@ -253,6 +271,8 @@ func natRulesPatchRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -280,14 +300,18 @@ func natRulesPatchRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_nat_rule", "PATCH", "/policy/api/v1/infra/tier-1s/{tier1Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 204, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } func natRulesUpdateInputType() bindings.StructType { @@ -316,6 +340,8 @@ func natRulesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["nat_id"] = bindings.NewStringType() fields["nat_rule_id"] = bindings.NewStringType() @@ -343,14 +369,18 @@ func natRulesUpdateRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "policy_nat_rule", "PUT", "/policy/api/v1/infra/tier-1s/{tier1Id}/nat/{natId}/nat-rules/{natRuleId}", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/StatisticsTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/StatisticsTypes.go index cdeff0fd1..e7c2278c7 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/StatisticsTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/tier_1s/nat/StatisticsTypes.go @@ -58,6 +58,8 @@ func statisticsListRestMetadata() protocol.OperationRestMetadata { pathParams := map[string]string{} queryParams := map[string]string{} headerParams := map[string]string{} + dispatchHeaderParams := map[string]string{} + bodyFieldsMap := map[string]string{} fields["tier1_id"] = bindings.NewStringType() fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -100,14 +102,18 @@ func statisticsListRestMetadata() protocol.OperationRestMetadata { pathParams, queryParams, headerParams, + dispatchHeaderParams, + bodyFieldsMap, "", "", "GET", "/policy/api/v1/infra/tier-1s/{tier1Id}/nat/statistics", + "", resultHeaders, 200, + "", errorHeaders, - map[string]int{"InvalidRequest": 400,"Unauthorized": 403,"ServiceUnavailable": 503,"InternalServerError": 500,"NotFound": 404}) + map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400,"com.vmware.vapi.std.errors.unauthorized": 403,"com.vmware.vapi.std.errors.service_unavailable": 503,"com.vmware.vapi.std.errors.internal_server_error": 500,"com.vmware.vapi.std.errors.not_found": 404}) } diff --git a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model/ModelPackageTypes.go b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model/ModelPackageTypes.go index e17f852de..7f3c1e993 100644 --- a/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model/ModelPackageTypes.go +++ b/vendor/github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model/ModelPackageTypes.go @@ -34,7 +34,7 @@ type ALGTypeServiceEntry struct { // * ALGTypeServiceEntry#ALGTypeServiceEntry_ALG_TFTP // // The Application Layer Gateway (ALG) protocol. Please note, protocol NBNS_BROADCAST and NBDG_BROADCAST are deprecated. Please use UDP protocol and create L4 Port Set type of service instead. - Alg string + Alg *string // The destination_port cannot be empty and must be a single value. format: port-or-range DestinationPorts []string SourcePorts []string @@ -88,7 +88,7 @@ type ALGTypeServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -149,7 +149,7 @@ type AbstractSpace struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -209,7 +209,7 @@ type AcceptableComponentVersion struct { // * AcceptableComponentVersion#AcceptableComponentVersion_COMPONENT_TYPE_MP // // Node type - ComponentType string + ComponentType *string } const AcceptableComponentVersion_COMPONENT_TYPE_HOST = "HOST" const AcceptableComponentVersion_COMPONENT_TYPE_EDGE = "EDGE" @@ -329,9 +329,9 @@ type ActiveDirectoryIdentitySource struct { // Opaque identifiers meaningful to the API user Tags []Tag // The subtree of the LDAP identity source to search when locating users and groups. - BaseDn string + BaseDn *string // The name of the authentication domain. When users log into NSX using an identity of the form \"user\\\\@domain\", NSX uses the domain portion to determine which LDAP identity source to use. For Active Directory, this domain name must match the domain of the Active Directory. - DomainName string + DomainName *string // The list of LDAP servers that provide LDAP service for this identity source. Currently, only one LDAP server is supported. LdapServers []IdentitySourceLdapServer } @@ -355,7 +355,7 @@ type AdvanceClusterRestoreRequest struct { // Aggregate of DNS forwarder statistics across enforcement points. type AggregateDNSForwarderStatistics struct { // String path of the DNS forwarder intent. - IntentPath string + IntentPath *string // List of DNS forwarder statistics per enforcement point. StatisticsPerEnforcementPoint []*data.StructValue } @@ -363,7 +363,7 @@ type AggregateDNSForwarderStatistics struct { // Aggregate of DNS forwarder status across enforcement points. type AggregateDNSForwarderStatus struct { // String path of the DNS forwarder intent. - IntentPath string + IntentPath *string // List of DNS forwarder status per enforcement point. StatusPerEnforcementPoint []*data.StructValue } @@ -411,7 +411,7 @@ type AggregateL2VPNSessionStatus struct { // Aggregate of L2Vpn peer config across Enforcement Points. type AggregateL2VpnPeerConfig struct { // Policy path referencing the L2Vpn. - L2vpnPath string + L2vpnPath *string // List of L2Vpn peer config per Enforcement Point. L2vpnPeerConfigPerEnforcementPoint []*data.StructValue } @@ -427,7 +427,7 @@ type AggregateL2VpnSessionRemoteMac struct { // Aggregate of L2Vpn Statistics across Enforcement Points. type AggregateL2VpnStatistics struct { // Intent path of object, forward slashes must be escaped using %2F. - IntentPath string + IntentPath *string // List of L2Vpn Statistics per Enforcement Point. L2vpnStatisticsPerEnforcementPoint []*data.StructValue } @@ -435,7 +435,7 @@ type AggregateL2VpnStatistics struct { // Aggregate of L3Vpn Statistics across Enforcement Points. type AggregateL3VpnStatistics struct { // Intent path of object, forward slashes must be escaped using %2F. - IntentPath string + IntentPath *string // List of L3Vpn Statistics per Enforcement Point. L3vpnStatisticsPerEnforcementPoint []*data.StructValue } @@ -509,7 +509,7 @@ type AggregatePolicyDnsAnswer struct { // List of DNS forwarder nslookup answer per enforcement point. DnsAnswerPerEnforcementPoint []*data.StructValue // String path of the DNS forwarder intent. - IntentPath string + IntentPath *string } // Aggregate of PolicyRuntimeInfoPerEP across Enforcement Points. @@ -560,7 +560,7 @@ type ApiError struct { // API Request Body is an Event Source that represents an API request body that is being reveived as part of an API. Supported Request Bodies are those received as part of a PATCH/PUT/POST request. type ApiRequestBody struct { // Regex path representing a regex expression on resources. This regex is used to identify the request body(ies) that is/are the source of the Event. For instance: specifying \"Lb\* | /infra/tier-0s/vmc/ipsec-vpn-services/default\" as a source means that ANY resource starting with Lb or ANY resource with \"/infra/tier-0s/vmc/ipsec-vpn-services/default\" as path would be the source of the event in question. - ResourcePointer string + ResourcePointer *string // Possible values are: // // * Source#Source_RESOURCE_TYPE_RESOURCEOPERATION @@ -618,7 +618,7 @@ type Application struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Path of the sites Sites []string @@ -668,12 +668,12 @@ type ApplicationService struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Property containing attributes for Policy Application Service. Attributes []ApplicationServiceAttribute // Application Service template id using which Application Service will be created. This will be available under the application service templates. - ServiceTemplateId string + ServiceTemplateId *string } // Policy Application Service data holder @@ -726,7 +726,7 @@ type ApplicationTier struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -768,14 +768,14 @@ const ApplicationTier_SIZE_XXXL = "XXXL" type ArpHeader struct { // The destination IP address format: ipv4 - DstIp string + DstIp *string // Possible values are: // // * ArpHeader#ArpHeader_OP_CODE_REQUEST // * ArpHeader#ArpHeader_OP_CODE_REPLY // // This field specifies the nature of the Arp message being sent. - OpCode string + OpCode *string // This field specifies the IP address of the sender. If omitted, the src_ip is set to 0.0.0.0. format: ipv4 SrcIp *string } @@ -806,7 +806,7 @@ type Attribute struct { // Attribute display name string value. DisplayName *string // Attribute key string value. - Key string + Key *string // Read only Attribute cannot be overdidden by service instance/deployment. ReadOnly *bool // Attribute value string value. @@ -863,7 +863,7 @@ type BackupConfiguration struct { // Passphrase used to encrypt backup files. The passphrase specified must be at least 8 characters in length and must contain at least one lowercase, one uppercase, one numeric character and one special character (any other non-space character). Passphrase *string // The server to which backups will be sent. - RemoteFileServer RemoteFileServer + RemoteFileServer *RemoteFileServer } // Past backup operation details @@ -879,7 +879,7 @@ type BackupOperationHistory struct { // Backup operation status type BackupOperationStatus struct { // Unique identifier of a backup - BackupId string + BackupId *string // Time when operation was ended format: int64 EndTime *int64 // Possible values are: @@ -899,7 +899,7 @@ type BackupOperationStatus struct { // Time when operation was started format: int64 StartTime *int64 // True if backup is successfully completed, else false - Success bool + Success *bool } const BackupOperationStatus_ERROR_CODE_NOT_RUN_ON_MASTER = "BACKUP_NOT_RUN_ON_MASTER" const BackupOperationStatus_ERROR_CODE_SERVER_UNREACHABLE = "BACKUP_SERVER_UNREACHABLE" @@ -928,11 +928,13 @@ type BackupOverview struct { // List of timestamps of backed-up cluster files Results []ClusterBackupInfo // Configuration to generate a manual/automated backup - BackupConfig BackupConfiguration + BackupConfig *BackupConfiguration // Status of the last backup execution per component - BackupOperationHistory BackupOperationHistory + BackupOperationHistory *BackupOperationHistory // Backup status decribes type, phase, success/failure and time of a | latest backup execution - CurrentBackupOperationStatus CurrentBackupOperationStatus + CurrentBackupOperationStatus *CurrentBackupOperationStatus + // Status of restore process executing/executed on appliance + RestoreStatus *ClusterRestoreStatus } // Abstract base type for Weekly or Interval Backup Schedule @@ -952,6 +954,25 @@ const BackupSchedule__TYPE_IDENTIFIER = "BackupSchedule" const BackupSchedule_RESOURCE_TYPE_WEEKLYBACKUPSCHEDULE = "WeeklyBackupSchedule" const BackupSchedule_RESOURCE_TYPE_INTERVALBACKUPSCHEDULE = "IntervalBackupSchedule" +// Consolidated Realized Status Per Enforcement Point. +type BaseConsolidatedStatusPerEnforcementPoint struct { + // Alarm information details. + Alarm *PolicyRuntimeAlarm + // Policy Path referencing the enforcement point where the info is fetched. + EnforcementPointPath *string + // Consolidated Realized Status of an Intent object per enforcement point. + ConsolidatedStatus *ConsolidatedStatus + // Enforcement Point Id. + EnforcementPointId *string + ResourceType string + // The site where this enforcement point resides. + SitePath *string +} +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const BaseConsolidatedStatusPerEnforcementPoint__TYPE_IDENTIFIER = "BaseConsolidatedStatusPerEnforcementPoint" + // Represents an endpoint which will be used as subject in rule. It is a polymorphic type object which can be either of the types - 1. Virtual 2. Logical We have 2 separate objects representing these 2 types. VirtualEndPoint for Virtual type and ServiceInstanceEndpoint for Logical. type BaseEndpoint struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -999,7 +1020,7 @@ type BaseEndpoint struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IPs where either inbound or outbound traffic is to be redirected. TargetIps []IPInfo @@ -1055,7 +1076,7 @@ type BasePolicyServiceInstance struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -1065,7 +1086,7 @@ type BasePolicyServiceInstance struct { // Deployment mode specifies how the partner appliance will be deployed i.e. in HA or standalone mode. DeploymentMode *string // Unique name of Partner Service in the Marketplace - PartnerServiceName string + PartnerServiceName *string // Possible values are: // // * BasePolicyServiceInstance#BasePolicyServiceInstance_TRANSPORT_TYPE_L2_BRIDGE @@ -1123,7 +1144,7 @@ type BaseRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // We need paths as duplicate names may exist for groups under different domains. Along with paths we support IP Address of type IPv4 and IPv6. IP Address can be in one of the format(CIDR, IP Address, Range of IP Address). In order to specify all groups, use the constant \"ANY\". This is case insensitive. If \"ANY\" is used, it should be the ONLY element in the group array. Error will be thrown if ANY is used in conjunction with other values. DestinationGroups []string @@ -1241,7 +1262,7 @@ type BaseTier0Interface struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Specify IP address and network prefix for interface. Subnets []InterfaceSubnet @@ -1266,9 +1287,9 @@ type BatchRequestItem struct { // * BatchRequestItem#BatchRequestItem_METHOD_PATCH // // http method type - Method string + Method *string // relative uri (path and args), of the call including resource id (if this is a POST/DELETE), exclude hostname and port and prefix, exploded form of parameters - Uri string + Uri *string } const BatchRequestItem_METHOD_GET = "GET" const BatchRequestItem_METHOD_POST = "POST" @@ -1291,7 +1312,7 @@ type BatchResponseItem struct { // object returned by api Body *data.StructValue // http status code format: int64 - Code int64 + Code *int64 // The headers returned by the API call Headers *data.StructValue } @@ -1340,7 +1361,7 @@ type BfdProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Time interval between heartbeat packets in milliseconds. format: int32 Interval *int64 @@ -1467,7 +1488,7 @@ type BgpNeighborConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Flag to enable allowas_in option for BGP neighbor AllowAsIn *bool @@ -1490,13 +1511,13 @@ type BgpNeighborConfig struct { // Maximum number of hops allowed to reach BGP neighbor. format: int32 MaximumHopLimit *int64 // Neighbor IP Address format: ip - NeighborAddress string + NeighborAddress *string // Specify path of prefix-list or route map to filter routes for OUT direction. When not specified, a built-in prefix-list named 'prefixlist-out-default' is automatically applied. This property is deprecated, use route_filtering instead. Specifying different values for both properties will result in error. OutRouteFilters []string // Specify password for BGP neighbor authentication. Empty string (\"\") clears existing password. Password *string // 4 Byte ASN of the neighbor in ASPLAIN Format - RemoteAsNum string + RemoteAsNum *string // Enable address families and route filtering in each direction. RouteFiltering []BgpRouteFiltering // Source addresses should belong to Tier0 external or loopback interface IP Addresses . BGP peering is formed from all these addresses. This property is mandatory when maximum_hop_limit is greater than 1. format: ip @@ -1654,7 +1675,7 @@ type BgpRoutingConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Flag to enable ECMP. Ecmp *bool @@ -1706,13 +1727,13 @@ const BinaryPacketData__TYPE_IDENTIFIER = "BinaryPacketData" // configuration parameters for Bridge Profile type BridgeProfileConfig struct { // Same bridge profile can be configured on different segments. Each bridge profile on a segment must unique. - BridgeProfilePath string + BridgeProfilePath *string // The name of the switching uplink teaming policy for the bridge endpoint. This name corresponds to one fot he switching uplink teaming policy names listed in teh transport zone. When this property is not specified, the teaming policy is assigned by MP. UplinkTeamingPolicyName *string // VLAN specification for bridge endpoint. Either VLAN ID or VLAN ranges can be specified. Not both. VlanIds []string // VLAN transport zone should belong to the enforcment-point as the transport zone specified in the segment. - VlanTransportZonePath string + VlanTransportZonePath *string } // Represents an instance of partner's service whose wiring will be done by partner itself. As partner does all the wiring, we call it as Byod - Bring your own device. @@ -1759,7 +1780,7 @@ type ByodPolicyServiceInstance struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -1769,7 +1790,7 @@ type ByodPolicyServiceInstance struct { // Deployment mode specifies how the partner appliance will be deployed i.e. in HA or standalone mode. DeploymentMode *string // Unique name of Partner Service in the Marketplace - PartnerServiceName string + PartnerServiceName *string // Possible values are: // // * ByodPolicyServiceInstance#ByodPolicyServiceInstance_TRANSPORT_TYPE_L2_BRIDGE @@ -1803,126 +1824,10 @@ type ByodPolicyServiceInstanceListResult struct { Results []ByodPolicyServiceInstance } -// Results of analyzing compatibility between federated sites or local and standby global managers. -type CheckCompatibilityTask struct { - // NSX version running on the remote site. - NsxVersion *string - // Possible values are: - // - // * CheckCompatibilityTask#CheckCompatibilityTask_RESULTS_NSX_VERSION_NOT_COMPATIBLE - // * CheckCompatibilityTask#CheckCompatibilityTask_RESULTS_RTT_TIME_TOO_LARGE - // * CheckCompatibilityTask#CheckCompatibilityTask_RESULTS_PART_OF_DIFFERENT_FEDERATION - // - // If empty, no issues were found when checking the remote site. - Results []string - // Estimated round-trip-time (RTT) for network traffic between this site and the remote site, in milliseconds. Prior to federating the site, this estimate is performed using TCP packets on port 443. The actual RTT once the site is federated may differ, depending on the network configuration. format: int64 - Rtt *int64 - // Site name of the remote site, if any. - SiteName *string - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKCOMPATIBILITYTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKRTEPTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CREATESTANDBYGLOBALMANAGERTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_ONBOARDLOCALMANAGERTASK - // - // Action being performed by this task. - Action string - // End time for the task. format: int64 - EndTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_RESULT_SUCCESS - // * RealizedManagementTask#RealizedManagementTask_RESULT_ERROR - // - // Result of the task. - Result *string - // Additional information about the task result. - ResultDescription *string - // Start time for the task. format: int64 - StartTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_STATE_STARTING - // * RealizedManagementTask#RealizedManagementTask_STATE_RUNNING - // * RealizedManagementTask#RealizedManagementTask_STATE_COMPLETE - // - // State of the task. - State *string -} -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const CheckCompatibilityTask__TYPE_IDENTIFIER = "CheckCompatibilityTask" -const CheckCompatibilityTask_RESULTS_NSX_VERSION_NOT_COMPATIBLE = "NSX_VERSION_NOT_COMPATIBLE" -const CheckCompatibilityTask_RESULTS_RTT_TIME_TOO_LARGE = "RTT_TIME_TOO_LARGE" -const CheckCompatibilityTask_RESULTS_PART_OF_DIFFERENT_FEDERATION = "PART_OF_DIFFERENT_FEDERATION" - -// Results of analyzing local and remote RTEP configuration. -type CheckRtepTask struct { - // ID of the local edge cluster containing RTEPs. - LocalEdgeClusterId *string - // IP Addresses of local RTEPs. format: ip - LocalRteps []string - // ID of the remote edge cluster containing RTEPs. - RemoteEdgeClusterId *string - // IP Addresses of remote RTEPs. format: ip - RemoteRteps []string - // Possible values are: - // - // * CheckRtepTask#CheckRtepTask_RESULTS_LOCAL_EDGE_CLUSTER_UNDEFINED - // * CheckRtepTask#CheckRtepTask_RESULTS_LOCAL_RTEPS_NOT_DEFINED - // * CheckRtepTask#CheckRtepTask_RESULTS_REMOTE_EDGE_CLUSTER_UNDEFINED - // * CheckRtepTask#CheckRtepTask_RESULTS_REMOTE_RTEPS_NOT_DEFINED - // - // If empty, no issues were found when checking the remote RTEPs. - Results []string - // Name of the remote site. - SiteName *string - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKCOMPATIBILITYTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKRTEPTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CREATESTANDBYGLOBALMANAGERTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_ONBOARDLOCALMANAGERTASK - // - // Action being performed by this task. - Action string - // End time for the task. format: int64 - EndTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_RESULT_SUCCESS - // * RealizedManagementTask#RealizedManagementTask_RESULT_ERROR - // - // Result of the task. - Result *string - // Additional information about the task result. - ResultDescription *string - // Start time for the task. format: int64 - StartTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_STATE_STARTING - // * RealizedManagementTask#RealizedManagementTask_STATE_RUNNING - // * RealizedManagementTask#RealizedManagementTask_STATE_COMPLETE - // - // State of the task. - State *string -} -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const CheckRtepTask__TYPE_IDENTIFIER = "CheckRtepTask" -const CheckRtepTask_RESULTS_LOCAL_EDGE_CLUSTER_UNDEFINED = "LOCAL_EDGE_CLUSTER_UNDEFINED" -const CheckRtepTask_RESULTS_LOCAL_RTEPS_NOT_DEFINED = "LOCAL_RTEPS_NOT_DEFINED" -const CheckRtepTask_RESULTS_REMOTE_EDGE_CLUSTER_UNDEFINED = "REMOTE_EDGE_CLUSTER_UNDEFINED" -const CheckRtepTask_RESULTS_REMOTE_RTEPS_NOT_DEFINED = "REMOTE_RTEPS_NOT_DEFINED" - // Child wrapper object for Application, used in hierarchical API type ChildApplication struct { // Contains the actual Application object - Application Application + Application *Application // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -1959,7 +1864,7 @@ type ChildApplication struct { // Child wrapper object for ApplicationService, used in hierarchical API type ChildApplicationService struct { // Contains the actual ApplicationService object - ApplicationService ApplicationService + ApplicationService *ApplicationService // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -1996,7 +1901,7 @@ type ChildApplicationService struct { // Child wrapper object for ApplicationTier, used in hierarchical API type ChildApplicationTier struct { // Contains the actual ApplicationTier object - ApplicationTier ApplicationTier + ApplicationTier *ApplicationTier // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2033,7 +1938,7 @@ type ChildApplicationTier struct { // Child wrapper for BfdProfile, used in hierarchical API. type ChildBfdProfile struct { // Contains the actual BfdProfile object. - BfdProfile BfdProfile + BfdProfile *BfdProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2070,7 +1975,7 @@ type ChildBfdProfile struct { // Child wrapper object for BgpNeighborConfig, used in hierarchical API. type ChildBgpNeighborConfig struct { // Contains the actual BgpNeighborConfig object. - BgpNeighborConfig BgpNeighborConfig + BgpNeighborConfig *BgpNeighborConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2107,7 +2012,7 @@ type ChildBgpNeighborConfig struct { // Child wrapper object for BgpRoutingConfig, used in hierarchical API. type ChildBgpRoutingConfig struct { // Contains the actual BgpRoutingConfig object. - BgpRoutingConfig BgpRoutingConfig + BgpRoutingConfig *BgpRoutingConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2144,7 +2049,7 @@ type ChildBgpRoutingConfig struct { // Child wrapper object for ByodPolicyServiceInstance used in hierarchical API. type ChildByodPolicyServiceInstance struct { // Contains actual ByodPolicyServiceInstance. - ByodPolicyServiceInstance ByodPolicyServiceInstance + ByodPolicyServiceInstance *ByodPolicyServiceInstance // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2181,7 +2086,7 @@ type ChildByodPolicyServiceInstance struct { // Child wrapper object for CommunicationEntry, used in hierarchical API This type is deprecated. Use the type ChildRule instead. type ChildCommunicationEntry struct { // Contains the actual CommunicationEntry object. - CommunicationEntry CommunicationEntry + CommunicationEntry *CommunicationEntry // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2218,7 +2123,7 @@ type ChildCommunicationEntry struct { // Child wrapper object for CommunicationMap, used in hierarchical API This type is deprecated. Use the type ChildSecurityPolicy instead. type ChildCommunicationMap struct { // Contains the actual CommunicationMap object. - CommunicationMap CommunicationMap + CommunicationMap *CommunicationMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2255,7 +2160,7 @@ type ChildCommunicationMap struct { // Child wrapper object for CommunityList, used in hierarchical API type ChildCommunityList struct { // Contains the actual CommunityList object - CommunityList CommunityList + CommunityList *CommunityList // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2292,7 +2197,7 @@ type ChildCommunityList struct { // Wrapper object for ComputeClusterIdfwConfiguration type ChildComputeClusterIdfwConfiguration struct { // Contains the actual compute cluster idfw configuration object. - ComputeClusterIdfwConfiguration ComputeClusterIdfwConfiguration + ComputeClusterIdfwConfiguration *ComputeClusterIdfwConfiguration // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2329,7 +2234,7 @@ type ChildComputeClusterIdfwConfiguration struct { // Child wrapper object for Constraint, used in hierarchical API type ChildConstraint struct { // Contains the actual Constraint object - Constraint Constraint + Constraint *Constraint // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2366,7 +2271,7 @@ type ChildConstraint struct { // Child wrapper object for DeploymentZone, used in hierarchical API type ChildDeploymentZone struct { // Contains the actual DeploymentZone object - DeploymentZone DeploymentZone + DeploymentZone *DeploymentZone // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2403,7 +2308,7 @@ type ChildDeploymentZone struct { // Wrapper object for FirewallConfiguration type ChildDfwFirewallConfiguration struct { // Contains the actual dfw firewall configuration list object. - DfwFirewallConfiguration DfwFirewallConfiguration + DfwFirewallConfiguration *DfwFirewallConfiguration // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2440,7 +2345,7 @@ type ChildDfwFirewallConfiguration struct { // Child wrapper object for DhcpRelayConfig, used in hierarchical API type ChildDhcpRelayConfig struct { // Contains the actual DhcpRelayConfig object - DhcpRelayConfig DhcpRelayConfig + DhcpRelayConfig *DhcpRelayConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2477,7 +2382,7 @@ type ChildDhcpRelayConfig struct { // Child wrapper object for DhcpServerConfig, used in hierarchical API type ChildDhcpServerConfig struct { // Contains the actual DhcpServerConfig object - DhcpServerConfig DhcpServerConfig + DhcpServerConfig *DhcpServerConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2551,7 +2456,7 @@ type ChildDhcpStaticBindingConfig struct { // Child wrapper object for DnsSecurityProfile, used in hierarchical API type ChildDnsSecurityProfile struct { // Contains the actual DnsSecurityProfile object - DnsSecurityProfile DnsSecurityProfile + DnsSecurityProfile *DnsSecurityProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2588,7 +2493,7 @@ type ChildDnsSecurityProfile struct { // Child wrapper obejct for DnsSecurityProfileBindingMap used in hierarchical API type ChildDnsSecurityProfileBindingMap struct { // Contains the actual DnsSecurityProfileBindingMap object - DnsSecurityProfileBindingMap DnsSecurityProfileBindingMap + DnsSecurityProfileBindingMap *DnsSecurityProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2625,7 +2530,7 @@ type ChildDnsSecurityProfileBindingMap struct { // Child wrapper object for domain, used in hierarchical API. type ChildDomain struct { // Contains the actual domain object. - Domain Domain + Domain *Domain // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2662,7 +2567,7 @@ type ChildDomain struct { // Child wrapper object for DomainDeploymentMap, used in hierarchical API. type ChildDomainDeploymentMap struct { // Contains the actual DomainDeploymentMap object. - DomainDeploymentMap DomainDeploymentMap + DomainDeploymentMap *DomainDeploymentMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2699,7 +2604,7 @@ type ChildDomainDeploymentMap struct { // Child wrapper object for EndpointPolicy used in hierarchical API. type ChildEndpointPolicy struct { // Contains actual EndpointPolicy. - EndpointPolicy EndpointPolicy + EndpointPolicy *EndpointPolicy // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2736,7 +2641,7 @@ type ChildEndpointPolicy struct { // Child wrapper object for EndpointRule used in hierarchical API. type ChildEndpointRule struct { // Contains actual EndpointRule. - EndpointRule EndpointRule + EndpointRule *EndpointRule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2773,7 +2678,7 @@ type ChildEndpointRule struct { // Child wrapper object for EnforcementPoint, used in hierarchical API. type ChildEnforcementPoint struct { // Contains the actual Enforcement point object. - EnforcementPoint EnforcementPoint + EnforcementPoint *EnforcementPoint // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2810,7 +2715,7 @@ type ChildEnforcementPoint struct { // Child wrapper object for EvpnConfig, used in hierarchical API. type ChildEvpnConfig struct { // Contains the actual EvpnConfig object. - EvpnConfig EvpnConfig + EvpnConfig *EvpnConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2847,7 +2752,7 @@ type ChildEvpnConfig struct { // Child wrapper object for EvpnTunnelEndpointConfig, used in hierarchical API. type ChildEvpnTunnelEndpointConfig struct { // Contains the actual EvpnTunnelEndpointConfig object. - EvpnTunnelEndpointConfig EvpnTunnelEndpointConfig + EvpnTunnelEndpointConfig *EvpnTunnelEndpointConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2884,7 +2789,7 @@ type ChildEvpnTunnelEndpointConfig struct { // Child wrapper for FirewallIdentityStore, used in hierarchical API. type ChildFirewallIdentityStore struct { // Contains the actual FirewallIdentityStore object. - FirewallIdentityStore FirewallIdentityStore + FirewallIdentityStore *FirewallIdentityStore // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2958,7 +2863,7 @@ type ChildFloodProtectionProfile struct { // Child wrapper object for FloodProtectionProfileBindingMap, used in hierarchical API type ChildFloodProtectionProfileBindingMap struct { // Contains the actual FloodProtectionProfileBindingMap object - FloodProtectionProfileBindingMap FloodProtectionProfileBindingMap + FloodProtectionProfileBindingMap *FloodProtectionProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -2995,7 +2900,7 @@ type ChildFloodProtectionProfileBindingMap struct { // Child wrapper object for ForwardingPolicy used in Hierarchical API. type ChildForwardingPolicy struct { // Contains actual ForwardingPolicy. - ForwardingPolicy ForwardingPolicy + ForwardingPolicy *ForwardingPolicy // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3032,7 +2937,7 @@ type ChildForwardingPolicy struct { // Child wrapper object for ForwardingRule used in Hierarchical API. type ChildForwardingRule struct { // Contains actual ForwardingRule. - ForwardingRule ForwardingRule + ForwardingRule *ForwardingRule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3069,7 +2974,7 @@ type ChildForwardingRule struct { // Child wrapper object for GatewayPolicy, used in hierarchical API type ChildGatewayPolicy struct { // Contains the actual GatewayPolicy object - GatewayPolicy GatewayPolicy + GatewayPolicy *GatewayPolicy // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3106,7 +3011,7 @@ type ChildGatewayPolicy struct { // Child wrapper for GatewayQosProfile, used in hierarchical API. type ChildGatewayQosProfile struct { // Contains the actual GatewayQosProfile object. - QosProfile GatewayQosProfile + QosProfile *GatewayQosProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3143,7 +3048,7 @@ type ChildGatewayQosProfile struct { // Child wrapper object for GlobalConfig, used in hierarchical API type ChildGlobalConfig struct { // Contains the actual GlobalConfig object. - GlobalConfig GlobalConfig + GlobalConfig *GlobalConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3180,7 +3085,7 @@ type ChildGlobalConfig struct { // Child wrapper object for Global Manager, used in hierarchical API. type ChildGlobalManager struct { // Contains the actual Global Manager object. - GlobalManager GlobalManager + GlobalManager *GlobalManager // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3217,7 +3122,7 @@ type ChildGlobalManager struct { // Child wrapper object for group, used in hierarchical API. type ChildGroup struct { // Contains the actual group objects. - Group Group + Group *Group // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3254,7 +3159,7 @@ type ChildGroup struct { // Child wrapper obejct for GroupDiscoveryProfileBindingMap used in hierarchical API type ChildGroupDiscoveryProfileBindingMap struct { // Contains the actual GroupDiscoveryProfileBindingMap object - GroupDiscoveryProfileBindingMap GroupDiscoveryProfileBindingMap + GroupDiscoveryProfileBindingMap *GroupDiscoveryProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3291,7 +3196,7 @@ type ChildGroupDiscoveryProfileBindingMap struct { // Child wrapper object for GroupMonitoringProfileBindingMap, used in hierarchical API type ChildGroupMonitoringProfileBindingMap struct { // Contains the actual GroupMonitoringProfileBindingMap object - GroupMonitoringProfileBindingMap GroupMonitoringProfileBindingMap + GroupMonitoringProfileBindingMap *GroupMonitoringProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3328,7 +3233,7 @@ type ChildGroupMonitoringProfileBindingMap struct { // Child wrapper object for IPDiscoveryProfile, used in hierarchical API type ChildIPDiscoveryProfile struct { // Contains the actual IPDiscoveryProfile object - IpDiscoveryProfile IPDiscoveryProfile + IpDiscoveryProfile *IPDiscoveryProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3365,7 +3270,7 @@ type ChildIPDiscoveryProfile struct { // Child wrapper object for IPFIXDFWCollectorProfile, used in hierarchical API type ChildIPFIXDFWCollectorProfile struct { // Contains the actual IPFIXDFWCollectorProfile object - IPFIXDFWCollectorProfile IPFIXDFWCollectorProfile + IPFIXDFWCollectorProfile *IPFIXDFWCollectorProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3402,7 +3307,7 @@ type ChildIPFIXDFWCollectorProfile struct { // Child wrapper object for IPFIXDFWProfile, used in hierarchical API type ChildIPFIXDFWProfile struct { // Contains the actual IPFIXDFWProfile object - IPFIXDFWProfile IPFIXDFWProfile + IPFIXDFWProfile *IPFIXDFWProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3439,7 +3344,7 @@ type ChildIPFIXDFWProfile struct { // Child wrapper object for IPFIXL2CollectorProfile, used in hierarchical API type ChildIPFIXL2CollectorProfile struct { // Contains the actual IPFIXL2CollectorProfile object - IPFIXL2CollectorProfile IPFIXL2CollectorProfile + IPFIXL2CollectorProfile *IPFIXL2CollectorProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3476,7 +3381,7 @@ type ChildIPFIXL2CollectorProfile struct { // Child wrapper object for IPFIXL2Profile, used in hierarchical API type ChildIPFIXL2Profile struct { // Contains the actual IPFIXL2Profile object - IPFIXL2Profile IPFIXL2Profile + IPFIXL2Profile *IPFIXL2Profile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3513,7 +3418,7 @@ type ChildIPFIXL2Profile struct { // Child wrapper object for IPSecVpnDpdProfile, used in hierarchical API. type ChildIPSecVpnDpdProfile struct { // Contains the actual IPSecVpnDpdProfile object. - IpSecVpnDpdProfile IPSecVpnDpdProfile + IpSecVpnDpdProfile *IPSecVpnDpdProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3550,7 +3455,7 @@ type ChildIPSecVpnDpdProfile struct { // Child wrapper object for IPSecVpnIkeProfile, used in hierarchical API. type ChildIPSecVpnIkeProfile struct { // Contains the actual IPSecVpnIkeProfile object. - IpSecVpnIkeProfile IPSecVpnIkeProfile + IpSecVpnIkeProfile *IPSecVpnIkeProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3587,7 +3492,7 @@ type ChildIPSecVpnIkeProfile struct { // Child wrapper object for IPSecVpnLocalEndpoint, used in hierarchical API. type ChildIPSecVpnLocalEndpoint struct { // Contains the actual IPSecVpnLocalEndpoint object. - IpSecVpnLocalEndpoint IPSecVpnLocalEndpoint + IpSecVpnLocalEndpoint *IPSecVpnLocalEndpoint // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3624,7 +3529,7 @@ type ChildIPSecVpnLocalEndpoint struct { // Child wrapper object for IPSecVpnService, used in hierarchical API. type ChildIPSecVpnService struct { // Contains the actual IPSecVpnService object. - IpSecVpnService IPSecVpnService + IpSecVpnService *IPSecVpnService // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3698,7 +3603,7 @@ type ChildIPSecVpnSession struct { // Child wrapper object for IPSecVpnTunnelProfile, used in hierarchical API. type ChildIPSecVpnTunnelProfile struct { // Contains the actual IPSecVpnTunnelProfile object - IpSecVpnTunnelProfile IPSecVpnTunnelProfile + IpSecVpnTunnelProfile *IPSecVpnTunnelProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3735,7 +3640,7 @@ type ChildIPSecVpnTunnelProfile struct { // Child wrapper object for IdsClusterConfig, used in hierarchical API type ChildIdsClusterConfig struct { // Contains the IdsClusterConfig object - IdsClusterConfig IdsClusterConfig + IdsClusterConfig *IdsClusterConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3772,7 +3677,7 @@ type ChildIdsClusterConfig struct { // Child wrapper object for IdsProfile, used in hierarchical API type ChildIdsProfile struct { // Contains the IdsProfile object - IdsProfile IdsProfile + IdsProfile *IdsProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3809,7 +3714,7 @@ type ChildIdsProfile struct { // Child wrapper object for IdsRule, used in hierarchical API type ChildIdsRule struct { // Contains the IdsRule object - IdsRule IdsRule + IdsRule *IdsRule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3846,7 +3751,7 @@ type ChildIdsRule struct { // Child wrapper object for IdsSecurityPolicy, used in hierarchical API type ChildIdsSecurityPolicy struct { // Contains the IdsSecurityPolicy object - IdsSecurityPolicy IdsSecurityPolicy + IdsSecurityPolicy *IdsSecurityPolicy // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3883,7 +3788,7 @@ type ChildIdsSecurityPolicy struct { // Child wrapper object for IdsSignature, used in hierarchical API type ChildIdsSignature struct { // Contains the IdsSignature object - IdsSignature IdsSignature + IdsSignature *IdsSignature // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3920,7 +3825,7 @@ type ChildIdsSignature struct { // Child wrapper object for IdsStandaloneHostConfig, used in hierarchical API type ChildIdsStandaloneHostConfig struct { // Contains the IdsStandaloneHostConfig object - IdsStandaloneHostConfig IdsStandaloneHostConfig + IdsStandaloneHostConfig *IdsStandaloneHostConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3957,7 +3862,7 @@ type ChildIdsStandaloneHostConfig struct { // Child wrapper object for IpAddressAllocation, used in hierarchical API type ChildIpAddressAllocation struct { // Contains the actual IpAddressAllocation object - IpAddressAllocation IpAddressAllocation + IpAddressAllocation *IpAddressAllocation // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -3994,7 +3899,7 @@ type ChildIpAddressAllocation struct { // Child wrapper object for IpAddressBlock, used in hierarchical API type ChildIpAddressBlock struct { // Contains the actual IpAddressBlock object - IpAddressBlock IpAddressBlock + IpAddressBlock *IpAddressBlock // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4031,7 +3936,7 @@ type ChildIpAddressBlock struct { // Child wrapper object for IpAddressPool, used in hierarchical API type ChildIpAddressPool struct { // Contains the actual IpAddressPool object - IpAddressPool IpAddressPool + IpAddressPool *IpAddressPool // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4105,7 +4010,7 @@ type ChildIpAddressPoolSubnet struct { // Child wrapper object for Ipv6DadProfile, used in hierarchical API type ChildIpv6DadProfile struct { // Contains the actual Ipv6DadProfile objects - Ipv6DadProfile Ipv6DadProfile + Ipv6DadProfile *Ipv6DadProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4142,7 +4047,7 @@ type ChildIpv6DadProfile struct { // Child wrapper object for Ipv6NdraProfile, used in hierarchical API type ChildIpv6NdraProfile struct { // Contains the actual Ipv6NdraProfile objects - Ipv6NdraProfile Ipv6NdraProfile + Ipv6NdraProfile *Ipv6NdraProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4179,7 +4084,7 @@ type ChildIpv6NdraProfile struct { // Child wrapper object for L2BridgeEndpointProfile, used in hierarchical API type ChildL2BridgeEndpointProfile struct { // Contains the actual L2BridgeEndpointProfile object - L2BridgeEndpointProfile L2BridgeEndpointProfile + L2BridgeEndpointProfile *L2BridgeEndpointProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4216,7 +4121,7 @@ type ChildL2BridgeEndpointProfile struct { // Child wrapper object for L2VPNService, used in hierarchical API. type ChildL2VPNService struct { // Contains the actual L2VPNService object. - L2VPNService L2VPNService + L2VPNService *L2VPNService // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4253,7 +4158,7 @@ type ChildL2VPNService struct { // Child wrapper object for L2VPNSession, used in hierarchical API. type ChildL2VPNSession struct { // Contains the actual L2VPNSession object. - L2VPNSession L2VPNSession + L2VPNSession *L2VPNSession // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4290,7 +4195,7 @@ type ChildL2VPNSession struct { // Child wrapper object for L2Vpn, used in hierarchical API. type ChildL2Vpn struct { // Contains the actual L2Vpn object. - L2Vpn L2Vpn + L2Vpn *L2Vpn // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4327,7 +4232,7 @@ type ChildL2Vpn struct { // Child wrapper object for L2VpnContext, used in hierarchical API. type ChildL2VpnContext struct { // Contains the actual L2VpnContext object. - L2VpnContext L2VpnContext + L2VpnContext *L2VpnContext // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4364,7 +4269,7 @@ type ChildL2VpnContext struct { // Child wrapper object for L3Vpn, used in hierarchical API. type ChildL3Vpn struct { // Contains the actual L3Vpn object. - L3Vpn L3Vpn + L3Vpn *L3Vpn // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4401,7 +4306,7 @@ type ChildL3Vpn struct { // Child wrapper object for L3VpnContext, used in hierarchical API. type ChildL3VpnContext struct { // Contains the actual L3VpnContext object. - L3VpnContext L3VpnContext + L3VpnContext *L3VpnContext // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4475,7 +4380,7 @@ type ChildLBAppProfile struct { // Child wrapper for LBClientSslProfile, used in hierarchical API. type ChildLBClientSslProfile struct { // Contains the actual LBClientSslProfile object. - LbClientSslProfile LBClientSslProfile + LbClientSslProfile *LBClientSslProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4586,7 +4491,7 @@ type ChildLBPersistenceProfile struct { // Child wrapper for LBPool, used in hierarchical API. type ChildLBPool struct { // Contains the actual LBPool object. - LbPool LBPool + LbPool *LBPool // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4623,7 +4528,7 @@ type ChildLBPool struct { // Child wrapper for LBServerSslProfile, used in hierarchical API. type ChildLBServerSslProfile struct { // Contains the actual LBServerSslProfile object. - LbServerSslProfile LBServerSslProfile + LbServerSslProfile *LBServerSslProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4660,7 +4565,7 @@ type ChildLBServerSslProfile struct { // Child wrapper for LBService, used in hierarchical API. type ChildLBService struct { // Contains the actual LBService object. - LbService LBService + LbService *LBService // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4697,7 +4602,7 @@ type ChildLBService struct { // Child wrapper for LBVirtualServer, used in hierarchical API. type ChildLBVirtualServer struct { // Contains the actual LBVirtualServer object. - LbVirtualServer LBVirtualServer + LbVirtualServer *LBVirtualServer // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4734,7 +4639,7 @@ type ChildLBVirtualServer struct { // Child wrapper object for LocaleServices, used in hierarchical API type ChildLocaleServices struct { // Contains the actual LocaleServices object - LocaleServices LocaleServices + LocaleServices *LocaleServices // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4771,7 +4676,7 @@ type ChildLocaleServices struct { // Child wrapper object for MacDiscoveryProfile, used in hierarchical API type ChildMacDiscoveryProfile struct { // Contains the actual MacDiscoveryProfile object - MacDiscoveryProfile MacDiscoveryProfile + MacDiscoveryProfile *MacDiscoveryProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4808,7 +4713,7 @@ type ChildMacDiscoveryProfile struct { // Wrapper object for MetadataProxyConfig type ChildMetadataProxyConfig struct { // Contains the actual MetadataProxyConfig object. - MetadataProxyConfig MetadataProxyConfig + MetadataProxyConfig *MetadataProxyConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4884,7 +4789,7 @@ const ChildPolicyConfigResource__TYPE_IDENTIFIER = "ChildPolicyConfigResource" // Child wrapper object for PolicyContextProfile, used in hierarchical API type ChildPolicyContextProfile struct { // Contains the actual PolicyContextProfile objects - PolicyContextProfile PolicyContextProfile + PolicyContextProfile *PolicyContextProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4925,7 +4830,7 @@ const ChildPolicyContextProfile__TYPE_IDENTIFIER = "ChildPolicyContextProfile" // Child wrapper object for PolicyDnsForwarder, used in hierarchical API type ChildPolicyDnsForwarder struct { // Contains the actual PolicyDnsForwarder object - PolicyDnsForwarder PolicyDnsForwarder + PolicyDnsForwarder *PolicyDnsForwarder // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -4966,7 +4871,7 @@ const ChildPolicyDnsForwarder__TYPE_IDENTIFIER = "ChildPolicyDnsForwarder" // Child wrapper object for PolicyDnsForwarderZone, used in hierarchical API type ChildPolicyDnsForwarderZone struct { // Contains the actual PolicyDnsForwarderZone object - PolicyDnsForwarderZone PolicyDnsForwarderZone + PolicyDnsForwarderZone *PolicyDnsForwarderZone // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5007,7 +4912,7 @@ const ChildPolicyDnsForwarderZone__TYPE_IDENTIFIER = "ChildPolicyDnsForwarderZon // Child wrapper object for PolicyEdgeCluster, used in hierarchical API. type ChildPolicyEdgeCluster struct { // Contains the actual PolicyEdgeCluster object. - PolicyEdgeCluster PolicyEdgeCluster + PolicyEdgeCluster *PolicyEdgeCluster // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5048,7 +4953,7 @@ const ChildPolicyEdgeCluster__TYPE_IDENTIFIER = "ChildPolicyEdgeCluster" // Child wrapper object for PolicyEdgeNode, used in hierarchical API. type ChildPolicyEdgeNode struct { // Contains the actual PolicyEdgeNode object. - PolicyEdgeNode PolicyEdgeNode + PolicyEdgeNode *PolicyEdgeNode // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5089,7 +4994,7 @@ const ChildPolicyEdgeNode__TYPE_IDENTIFIER = "ChildPolicyEdgeNode" // Wrapper object for PolicyExcludeList type ChildPolicyExcludeList struct { // Contains the actual policy exclude list object. - PolicyExcludeList PolicyExcludeList + PolicyExcludeList *PolicyExcludeList // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5130,7 +5035,7 @@ const ChildPolicyExcludeList__TYPE_IDENTIFIER = "ChildPolicyExcludeList" // Child wrapper object for PolicyFirewallCPUMemThresholdsProfileBindingMap, used in hierarchical API. type ChildPolicyFirewallCPUMemThresholdsProfileBindingMap struct { // Contains the actual PolicyFirewallCPUMemThresholdsProfileBindingMap object. - PolicyFirewallCPUMemThresholdsProfileBindingMap PolicyFirewallCPUMemThresholdsProfileBindingMap + PolicyFirewallCPUMemThresholdsProfileBindingMap *PolicyFirewallCPUMemThresholdsProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5171,7 +5076,7 @@ const ChildPolicyFirewallCPUMemThresholdsProfileBindingMap__TYPE_IDENTIFIER = "C // Child wrapper object for PolicyFirewallCpuMemThresholdsProfile, used in hierarchical API. type ChildPolicyFirewallCpuMemThresholdsProfile struct { // Contains the actual PolicyFirewallCpuMemThresholdsProfile object - PolicyFirewallCpuMemThresholdsProfile PolicyFirewallCpuMemThresholdsProfile + PolicyFirewallCpuMemThresholdsProfile *PolicyFirewallCpuMemThresholdsProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5212,7 +5117,7 @@ const ChildPolicyFirewallCpuMemThresholdsProfile__TYPE_IDENTIFIER = "ChildPolicy // Child wrapper object for PolicyFirewallFloodProtectionProfileBindingMap, used in hierarchical API type ChildPolicyFirewallFloodProtectionProfileBindingMap struct { // Contains the actual PolicyFirewallFloodProtectionProfileBindingMap object - PolicyFirewallFloodProtectionProfileBindingMap PolicyFirewallFloodProtectionProfileBindingMap + PolicyFirewallFloodProtectionProfileBindingMap *PolicyFirewallFloodProtectionProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5253,7 +5158,7 @@ const ChildPolicyFirewallFloodProtectionProfileBindingMap__TYPE_IDENTIFIER = "Ch // Child wrapper object for PolicyFirewallScheduler, used in hierarchical API type ChildPolicyFirewallScheduler struct { // Contains the actual PolicyFirewallScheduler objects - PolicyFirewallScheduler PolicyFirewallScheduler + PolicyFirewallScheduler *PolicyFirewallScheduler // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5294,7 +5199,7 @@ const ChildPolicyFirewallScheduler__TYPE_IDENTIFIER = "ChildPolicyFirewallSchedu // Child wrapper object for PolicyFirewallSessionTimerProfile, used in hierarchical API type ChildPolicyFirewallSessionTimerProfile struct { // Contains the actual PolicyFirewallSessionTimerProfile object - PolicyFirewallSessionTimerProfile PolicyFirewallSessionTimerProfile + PolicyFirewallSessionTimerProfile *PolicyFirewallSessionTimerProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5335,7 +5240,7 @@ const ChildPolicyFirewallSessionTimerProfile__TYPE_IDENTIFIER = "ChildPolicyFire // Child wrapper object for PolicyFirewallSessionTimerProfileBindingMap, used in hierarchical API type ChildPolicyFirewallSessionTimerProfileBindingMap struct { // Contains the actual PolicyFirewallSessionTimerProfileBindingMap object - PolicyFirewallSessionTimerProfileBindingMap PolicyFirewallSessionTimerProfileBindingMap + PolicyFirewallSessionTimerProfileBindingMap *PolicyFirewallSessionTimerProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5376,7 +5281,7 @@ const ChildPolicyFirewallSessionTimerProfileBindingMap__TYPE_IDENTIFIER = "Child // Child wrapper object for PolicyGroupReference, used in hierarchical API type ChildPolicyGroupReference struct { // Contains the actual PolicyGroupReference object - PolicyGroupReference PolicyGroupReference + PolicyGroupReference *PolicyGroupReference // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5414,10 +5319,10 @@ type ChildPolicyGroupReference struct { // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. const ChildPolicyGroupReference__TYPE_IDENTIFIER = "ChildPolicyGroupReference" -// Child wrapper object for PolicyIgmpConfig used in hierarchical API. -type ChildPolicyIgmpConfig struct { - // Contains actual PolicyIgmpConfig. - PolicyIgmpConfig PolicyIgmpConfig +// Child wrapper object for PolicyIgmpProfile used in hierarchical API. +type ChildPolicyIgmpProfile struct { + // Contains actual PolicyIgmpProfile. + PolicyIgmpProfile *PolicyIgmpProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5453,12 +5358,12 @@ type ChildPolicyIgmpConfig struct { // Identifier denoting this class, when it is used in polymorphic context. // // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const ChildPolicyIgmpConfig__TYPE_IDENTIFIER = "ChildPolicyIgmpConfig" +const ChildPolicyIgmpProfile__TYPE_IDENTIFIER = "ChildPolicyIgmpProfile" // Child wrapper object for PolicyLabel, used in hierarchical API type ChildPolicyLabel struct { // Contains the actual PolicyLabel object - PolicyLabel PolicyLabel + PolicyLabel *PolicyLabel // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5581,7 +5486,7 @@ const ChildPolicyLbPersistenceProfile__TYPE_IDENTIFIER = "ChildPolicyLbPersisten // Child wrapper for PolicyLbPoolAccess, used in hierarchical API type ChildPolicyLbPoolAccess struct { // Contains the actual PolicyLbPoolAccess object - PolicyLbPoolAccess PolicyLbPoolAccess + PolicyLbPoolAccess *PolicyLbPoolAccess // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5622,7 +5527,7 @@ const ChildPolicyLbPoolAccess__TYPE_IDENTIFIER = "ChildPolicyLbPoolAccess" // Child wrapper for PolicyLbRule, used in hierarchical API type ChildPolicyLbRule struct { // Contains the actual PolicyLbRule object - PolicyLbRule PolicyLbRule + PolicyLbRule *PolicyLbRule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5704,7 +5609,7 @@ const ChildPolicyLbVirtualServer__TYPE_IDENTIFIER = "ChildPolicyLbVirtualServer" // Child wrapper object for PolicyMulticastConfig used in hierarchical API. type ChildPolicyMulticastConfig struct { // Contains actual PolicyMulticastConfig. - PolicyMulticastConfig PolicyMulticastConfig + PolicyMulticastConfig *PolicyMulticastConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5745,7 +5650,7 @@ const ChildPolicyMulticastConfig__TYPE_IDENTIFIER = "ChildPolicyMulticastConfig" // Child wrapper object for PolicyNat, used in hierarchical API type ChildPolicyNat struct { // Contains the actual PolicyNAT object - PolicyNat PolicyNat + PolicyNat *PolicyNat // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5786,7 +5691,7 @@ const ChildPolicyNat__TYPE_IDENTIFIER = "ChildPolicyNat" // Child wrapper object for PolicyNatRule, used in hierarchical API type ChildPolicyNatRule struct { // Contains the actual PolicyNatRule object - PolicyNatRule PolicyNatRule + PolicyNatRule *PolicyNatRule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5824,10 +5729,10 @@ type ChildPolicyNatRule struct { // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. const ChildPolicyNatRule__TYPE_IDENTIFIER = "ChildPolicyNatRule" -// Child wrapper object for PolicyPimConfig used in hierarchical API. -type ChildPolicyPimConfig struct { - // Contains actual PolicyPimConfig. - PolicyPimConfig PolicyPimConfig +// Child wrapper object for PolicyPimProfile used in hierarchical API. +type ChildPolicyPimProfile struct { + // Contains actual PolicyPimProfile. + PolicyPimProfile *PolicyPimProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5863,12 +5768,12 @@ type ChildPolicyPimConfig struct { // Identifier denoting this class, when it is used in polymorphic context. // // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const ChildPolicyPimConfig__TYPE_IDENTIFIER = "ChildPolicyPimConfig" +const ChildPolicyPimProfile__TYPE_IDENTIFIER = "ChildPolicyPimProfile" // Child wrapper object for PolicyServiceInstance used in hierarchical API. type ChildPolicyServiceChain struct { // Contains actual PolicyServiceChain. - PolicyServiceChain PolicyServiceChain + PolicyServiceChain *PolicyServiceChain // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5909,7 +5814,7 @@ const ChildPolicyServiceChain__TYPE_IDENTIFIER = "ChildPolicyServiceChain" // Child wrapper object for PolicyServiceInstance used in hierarchical API. type ChildPolicyServiceInstance struct { // Contains actual PolicyServiceInstance. - PolicyServiceInstance PolicyServiceInstance + PolicyServiceInstance *PolicyServiceInstance // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5950,7 +5855,7 @@ const ChildPolicyServiceInstance__TYPE_IDENTIFIER = "ChildPolicyServiceInstance" // Child wrapper object for PolicyServiceProfile used in hierarchical API. type ChildPolicyServiceProfile struct { // Contains actual PolicyServiceProfile. - PolicyServiceProfile PolicyServiceProfile + PolicyServiceProfile *PolicyServiceProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -5991,7 +5896,7 @@ const ChildPolicyServiceProfile__TYPE_IDENTIFIER = "ChildPolicyServiceProfile" // Child wrapper object for PolicyTransportZone, used in hierarchical API. type ChildPolicyTransportZone struct { // Contains the actual PolicyTransportZone object. - PolicyTransportZone PolicyTransportZone + PolicyTransportZone *PolicyTransportZone // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6032,7 +5937,7 @@ const ChildPolicyTransportZone__TYPE_IDENTIFIER = "ChildPolicyTransportZone" // Child wrapper object for PolicyUrlCategorizationConfig, used in hierarchical API type ChildPolicyUrlCategorizationConfig struct { // Contains the actual PolicyUrlCategorizationConfig object - Rule PolicyUrlCategorizationConfig + PolicyUrlCategorizationConfig *PolicyUrlCategorizationConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6073,7 +5978,7 @@ const ChildPolicyUrlCategorizationConfig__TYPE_IDENTIFIER = "ChildPolicyUrlCateg // Child wrapper object for PortDiscoveryProfileBindingMap, used in hierarchical API type ChildPortDiscoveryProfileBindingMap struct { // Contains the actual PortDiscoveryProfileBindingMap object - PortDiscoveryProfileBindingMap PortDiscoveryProfileBindingMap + PortDiscoveryProfileBindingMap *PortDiscoveryProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6114,7 +6019,7 @@ const ChildPortDiscoveryProfileBindingMap__TYPE_IDENTIFIER = "ChildPortDiscovery // Child wrapper object for PortMirroringProfile, used in hierarchical API type ChildPortMirroringProfile struct { // Contains the actual PortMirroringProfile object - PortMirroringProfile PortMirroringProfile + PortMirroringProfile *PortMirroringProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6155,7 +6060,7 @@ const ChildPortMirroringProfile__TYPE_IDENTIFIER = "ChildPortMirroringProfile" // Child wrapper object for PortMonitoringProfileBindingMap, used in hierarchical API type ChildPortMonitoringProfileBindingMap struct { // Contains the actual PortMonitoringProfileBindingMap object - PortMonitoringProfileBindingMap PortMonitoringProfileBindingMap + PortMonitoringProfileBindingMap *PortMonitoringProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6196,7 +6101,7 @@ const ChildPortMonitoringProfileBindingMap__TYPE_IDENTIFIER = "ChildPortMonitori // Child wrapper object for PortQoSProfileBindingMap, used in hierarchical API type ChildPortQosProfileBindingMap struct { // Contains the actual PortQoSProfileBindingMap object - PortQosProfileBindingMap PortQosProfileBindingMap + PortQosProfileBindingMap *PortQosProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6237,7 +6142,7 @@ const ChildPortQosProfileBindingMap__TYPE_IDENTIFIER = "ChildPortQoSProfileBindi // Child wrapper object for PortSecurityProfileBindingMap, used in hierarchical API type ChildPortSecurityProfileBindingMap struct { // Contains the actual PortSecurityProfileBindingMap object - PortSecurityProfileBindingMap PortSecurityProfileBindingMap + PortSecurityProfileBindingMap *PortSecurityProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6278,7 +6183,7 @@ const ChildPortSecurityProfileBindingMap__TYPE_IDENTIFIER = "ChildPortSecurityPr // Child wrapper object for PrefixList, used in hierarchical API. type ChildPrefixList struct { // Contains the actual PrefixList object. - PrefixList PrefixList + PrefixList *PrefixList // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6319,7 +6224,7 @@ const ChildPrefixList__TYPE_IDENTIFIER = "ChildPrefixList" // Child wrapper object for QoSProfile, used in hierarchical API type ChildQosProfile struct { // Contains the actual QoSProfile object - QosProfile QosProfile + QosProfile *QosProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6360,7 +6265,7 @@ const ChildQosProfile__TYPE_IDENTIFIER = "ChildQoSProfile" // Child wrapper object for Reaction used in hierarchical API. type ChildReaction struct { // Contains the actual Reaction object. - Reaction Reaction + Reaction *Reaction // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6401,7 +6306,7 @@ const ChildReaction__TYPE_IDENTIFIER = "ChildReaction" // Child wrapper object for RedirectionPolicy used in Hierarchical API. type ChildRedirectionPolicy struct { // Contains actual RedirectionPolicy. - RedirectionPolicy RedirectionPolicy + RedirectionPolicy *RedirectionPolicy // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6442,7 +6347,7 @@ const ChildRedirectionPolicy__TYPE_IDENTIFIER = "ChildRedirectionPolicy" // Child wrapper object for ChildRedirectionRule used in Hierarchical API. type ChildRedirectionRule struct { // Contains actual RedirectionRule. - RedirectionRule RedirectionRule + RedirectionRule *RedirectionRule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6485,7 +6390,7 @@ type ChildResourceReference struct { // subtree for this type within policy tree containing nested elements. Children []*data.StructValue // The target type of this reference - TargetType string + TargetType *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6526,7 +6431,7 @@ const ChildResourceReference__TYPE_IDENTIFIER = "ChildResourceReference" // Child wrapper object for Rule, used in hierarchical API type ChildRule struct { // Contains the actual Rule object - Rule Rule + Rule *Rule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6567,7 +6472,7 @@ const ChildRule__TYPE_IDENTIFIER = "ChildRule" // Child wrapper object for SecurityPolicy, used in hierarchical API type ChildSecurityPolicy struct { // Contains the actual SecurityPolicy object - SecurityPolicy SecurityPolicy + SecurityPolicy *SecurityPolicy // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6608,7 +6513,7 @@ const ChildSecurityPolicy__TYPE_IDENTIFIER = "ChildSecurityPolicy" // Child wrapper object for SecurityZone, used in hierarchical API type ChildSecurityZone struct { // Contains the actual SecurityZone object - SecurityZone SecurityZone + SecurityZone *SecurityZone // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6649,7 +6554,7 @@ const ChildSecurityZone__TYPE_IDENTIFIER = "ChildSecurityZone" // Child wrapper object for SecurityZoneBinding, used in hierarchical API type ChildSecurityZoneBinding struct { // Security zone binding for a tier. - SecurityZoneBinding SecurityZoneBinding + SecurityZoneBinding *SecurityZoneBinding // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6690,7 +6595,7 @@ const ChildSecurityZoneBinding__TYPE_IDENTIFIER = "ChildSecurityZoneBinding" // Child wrapper object for SecurityZoneRule, used in hierarchical API This type is deprecated. Use the type ChildRule instead. type ChildSecurityZoneRule struct { // Contains the actual SecurityZoneRule object. - SecurityZoneRule SecurityZoneRule + SecurityZoneRule *SecurityZoneRule // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6731,7 +6636,7 @@ const ChildSecurityZoneRule__TYPE_IDENTIFIER = "ChildSecurityZoneRule" // Child wrapper object for Segment, used in hierarchical API. type ChildSegment struct { // Contains the actual Segment object. - Segment Segment + Segment *Segment // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6772,7 +6677,7 @@ const ChildSegment__TYPE_IDENTIFIER = "ChildSegment" // Child wrapper object for SegmentDiscoveryProfileBindingMap, used in hierarchical API type ChildSegmentDiscoveryProfileBindingMap struct { // Contains the actual SegmentDiscoveryProfileBindingMap object - SegmentDiscoveryProfileBindingMap SegmentDiscoveryProfileBindingMap + SegmentDiscoveryProfileBindingMap *SegmentDiscoveryProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6813,7 +6718,7 @@ const ChildSegmentDiscoveryProfileBindingMap__TYPE_IDENTIFIER = "ChildSegmentDis // Child wrapper object for SegmentMonitoringProfileBindingMap, used in hierarchical API type ChildSegmentMonitoringProfileBindingMap struct { // Contains the actual SegmentMonitoringProfileBindingMap object - SegmentMonitoringProfileBindingMap SegmentMonitoringProfileBindingMap + SegmentMonitoringProfileBindingMap *SegmentMonitoringProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6854,7 +6759,7 @@ const ChildSegmentMonitoringProfileBindingMap__TYPE_IDENTIFIER = "ChildSegmentMo // Child wrapper object for SegmentPort, used in hierarchical API type ChildSegmentPort struct { // Contains the actual SegmentPort object - SegmentPort SegmentPort + SegmentPort *SegmentPort // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6895,7 +6800,7 @@ const ChildSegmentPort__TYPE_IDENTIFIER = "ChildSegmentPort" // Child wrapper object for SegmentQoSProfileBindingMap, used in hierarchical API type ChildSegmentQosProfileBindingMap struct { // Contains the actual SegmentQoSProfileBindingMap object - SegmentQosProfileBindingMap SegmentQosProfileBindingMap + SegmentQosProfileBindingMap *SegmentQosProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6936,7 +6841,7 @@ const ChildSegmentQosProfileBindingMap__TYPE_IDENTIFIER = "ChildSegmentQoSProfil // Child wrapper object for SegmentSecurityProfile, used in hierarchical API type ChildSegmentSecurityProfile struct { // Contains the actual SegmentSecurityProfile object - SegmentSecurityProfile SegmentSecurityProfile + SegmentSecurityProfile *SegmentSecurityProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -6977,7 +6882,7 @@ const ChildSegmentSecurityProfile__TYPE_IDENTIFIER = "ChildSegmentSecurityProfil // Child wrapper object for SegmentSecurityProfileBindingMap, used in hierarchical API type ChildSegmentSecurityProfileBindingMap struct { // Contains the actual SegmentSecurityProfileBindingMap object - SegmentSecurityProfileBindingMap SegmentSecurityProfileBindingMap + SegmentSecurityProfileBindingMap *SegmentSecurityProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7018,7 +6923,7 @@ const ChildSegmentSecurityProfileBindingMap__TYPE_IDENTIFIER = "ChildSegmentSecu // Child wrapper object for Service, used in hierarchical API. type ChildService struct { // Contains the actual Service object. - Service Service + Service *Service // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7102,7 +7007,7 @@ const ChildServiceEntry__TYPE_IDENTIFIER = "ChildServiceEntry" // Child wrapper object for ServiceInstanceEndpoint used in hierarchical API. type ChildServiceInstanceEndpoint struct { // Contains actual ServiceInstanceEndpoint. - ServiceInstanceEndpoint ServiceInstanceEndpoint + ServiceInstanceEndpoint *ServiceInstanceEndpoint // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7143,7 +7048,7 @@ const ChildServiceInstanceEndpoint__TYPE_IDENTIFIER = "ChildServiceInstanceEndpo // Child wrapper object for ServiceInterface, used in hierarchical API. type ChildServiceInterface struct { // Contains the actual ServiceInterface object. - ServiceInterface ServiceInterface + ServiceInterface *ServiceInterface // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7184,7 +7089,7 @@ const ChildServiceInterface__TYPE_IDENTIFIER = "ChildServiceInterface" // Child wrapper object for ServiceReference used in hierarchical API. type ChildServiceReference struct { // Contains actual ServiceReference. - ServiceReference ServiceReference + ServiceReference *ServiceReference // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7225,7 +7130,7 @@ const ChildServiceReference__TYPE_IDENTIFIER = "ChildServiceReference" // Child wrapper object for ServiceSegment, used in hierarchical API type ChildServiceSegment struct { // Contains the actual ServiceSegment objects - ServiceSegment ServiceSegment + ServiceSegment *ServiceSegment // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7266,7 +7171,7 @@ const ChildServiceSegment__TYPE_IDENTIFIER = "ChildServiceSegment" // Child wrapper object for SessionTimerProfileBindingMap, used in hierarchical API type ChildSessionTimerProfileBindingMap struct { // Contains the actual SessionTimerProfileBindingMap object - SessionTimerProfileBindingMap SessionTimerProfileBindingMap + SessionTimerProfileBindingMap *SessionTimerProfileBindingMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7307,7 +7212,7 @@ const ChildSessionTimerProfileBindingMap__TYPE_IDENTIFIER = "ChildSessionTimerPr // Child wrapper object for Site, used in hierarchical API. type ChildSite struct { // Contains the actual Site object. - Site Site + Site *Site // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7348,7 +7253,7 @@ const ChildSite__TYPE_IDENTIFIER = "ChildSite" // Child wrapper object for SpoofGuardProfile, used in hierarchical API type ChildSpoofGuardProfile struct { // Contains the actual SpoofGuardProfile object - SpoofGuardProfile SpoofGuardProfile + SpoofGuardProfile *SpoofGuardProfile // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7389,7 +7294,7 @@ const ChildSpoofGuardProfile__TYPE_IDENTIFIER = "ChildSpoofGuardProfile" // Child wrapper for SslTrustObjectData, used in hierarchical API type ChildSslTrustObjectData struct { // Contains the actual SslTrustObjectData object - SslTrustObjectData SslTrustObjectData + SslTrustObjectData *SslTrustObjectData // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7430,7 +7335,7 @@ const ChildSslTrustObjectData__TYPE_IDENTIFIER = "ChildSslTrustObjectData" // Wrapper object for StandaloneHostIdfwConfiguration type ChildStandaloneHostIdfwConfiguration struct { // Contains the actual standalone host idfw configuration object. - StandaloneHostIdfwConfiguration StandaloneHostIdfwConfiguration + StandaloneHostIdfwConfiguration *StandaloneHostIdfwConfiguration // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7471,7 +7376,7 @@ const ChildStandaloneHostIdfwConfiguration__TYPE_IDENTIFIER = "ChildStandaloneHo // Child wrapper object for StaticARPConfig, used in hierarchical API. type ChildStaticARPConfig struct { // Contains the actual StaticARPConfig object. - StaticARPConfig StaticARPConfig + StaticARPConfig *StaticARPConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7512,7 +7417,7 @@ const ChildStaticARPConfig__TYPE_IDENTIFIER = "ChildStaticARPConfig" // Child wrapper for StaticRouteBfdPeer, used in hierarchical API. type ChildStaticRouteBfdPeer struct { // Contains the actual StaticRouteBfdPeer object. - BfdPeer StaticRouteBfdPeer + BfdPeer *StaticRouteBfdPeer // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7553,7 +7458,7 @@ const ChildStaticRouteBfdPeer__TYPE_IDENTIFIER = "ChildStaticRouteBfdPeer" // Child wrapper object for StaticRoutes, used in hierarchical API. type ChildStaticRoutes struct { // Contains the actual StaticRoutes object. - StaticRoutes StaticRoutes + StaticRoutes *StaticRoutes // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7594,7 +7499,7 @@ const ChildStaticRoutes__TYPE_IDENTIFIER = "ChildStaticRoutes" // Child wrapper object for Tier-0, used in hierarchical API. type ChildTier0 struct { // Contains the actual Tier-0 object. - Tier0 Tier0 + Tier0 *Tier0 // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7635,7 +7540,7 @@ const ChildTier0__TYPE_IDENTIFIER = "ChildTier0" // Child wrapper object for Tier0DeploymentMap, used in hierarchical API. type ChildTier0DeploymentMap struct { // Contains the actual Tier0DeploymentMap object. - Tier0DeploymentMap Tier0DeploymentMap + Tier0DeploymentMap *Tier0DeploymentMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7676,7 +7581,7 @@ const ChildTier0DeploymentMap__TYPE_IDENTIFIER = "ChildTier0DeploymentMap" // Child wrapper object for Tier0Interface, used in hierarchical API. type ChildTier0Interface struct { // Contains the actual Tier0Interface object. - Tier0Interface Tier0Interface + Tier0Interface *Tier0Interface // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7717,7 +7622,7 @@ const ChildTier0Interface__TYPE_IDENTIFIER = "ChildTier0Interface" // Child wrapper object for Tier0RouteMap, used in hierarchical API type ChildTier0RouteMap struct { // Contains the actual Tier0RouteMap object - Tier0RouteMap Tier0RouteMap + Tier0RouteMap *Tier0RouteMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7758,7 +7663,7 @@ const ChildTier0RouteMap__TYPE_IDENTIFIER = "ChildTier0RouteMap" // Child wrapper object for Tier-1 , used in hierarchical API. type ChildTier1 struct { // Contains the actual Tier-1 object. - Tier1 Tier1 + Tier1 *Tier1 // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7799,7 +7704,7 @@ const ChildTier1__TYPE_IDENTIFIER = "ChildTier1" // Child wrapper object for Tier1DeploymentMap, used in hierarchical API. type ChildTier1DeploymentMap struct { // Contains the actual Tier1DeploymentMap object. - Tier1DeploymentMap Tier1DeploymentMap + Tier1DeploymentMap *Tier1DeploymentMap // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7840,7 +7745,7 @@ const ChildTier1DeploymentMap__TYPE_IDENTIFIER = "ChildTier1DeploymentMap" // Child wrapper object for Tier1Interface, used in hierarchical API. type ChildTier1Interface struct { // Contains the actual Tier1Interface object. - Tier1Interface Tier1Interface + Tier1Interface *Tier1Interface // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7881,7 +7786,7 @@ const ChildTier1Interface__TYPE_IDENTIFIER = "ChildTier1Interface" // Child wrapper for TlsCertificate, used in hierarchical API. type ChildTlsCertificate struct { // Contains the actual TlsCertificate object. - TlsCertificate TlsCertificate + TlsCertificate *TlsCertificate // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7922,7 +7827,7 @@ const ChildTlsCertificate__TYPE_IDENTIFIER = "ChildTlsCertificate" // Child wrapper for TlsCrl, used in hierarchical API. type ChildTlsCrl struct { // Contains the actual TlsCrl object. - TlsCrl TlsCrl + TlsCrl *TlsCrl // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -7963,7 +7868,7 @@ const ChildTlsCrl__TYPE_IDENTIFIER = "ChildTlsCrl" // Child wrapper for TlsTrustData, used in hierarchical API. type ChildTlsTrustData struct { // Contains the actual TlsTrustData object. - TlsTrustData TlsTrustData + TlsTrustData *TlsTrustData // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -8004,7 +7909,7 @@ const ChildTlsTrustData__TYPE_IDENTIFIER = "ChildTlsTrustData" // Child wrapper for TraceflowConfig, used in hierarchical API type ChildTraceflowConfig struct { // Contains the actual TraceflowConfig object. - TraceflowConfig TraceflowConfig + TraceflowConfig *TraceflowConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -8045,7 +7950,7 @@ const ChildTraceflowConfig__TYPE_IDENTIFIER = "ChildTraceflowConfig" // Child wrapper object for VHC, used in hierarchical API type ChildVhc struct { // Contains the actual VHC object - Vhc Vhc + Vhc *Vhc // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -8086,7 +7991,7 @@ const ChildVhc__TYPE_IDENTIFIER = "ChildVhc" // Child wrapper object for VhcDnsConfig, used in hierarchical API type ChildVhcDnsConfig struct { // Contains the actual VhcDnsConfig object - VhcDnsConfig VhcDnsConfig + VhcDnsConfig *VhcDnsConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -8127,7 +8032,7 @@ const ChildVhcDnsConfig__TYPE_IDENTIFIER = "ChildVhcDnsConfig" // Child wrapper object for VirtualEndpoint used in hierarchical API. type ChildVirtualEndpoint struct { // Contains reference to actual VirtualEndpoint. - VirtualEndpoint VirtualEndpoint + VirtualEndpoint *VirtualEndpoint // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -8168,7 +8073,7 @@ const ChildVirtualEndpoint__TYPE_IDENTIFIER = "ChildVirtualEndpoint" // Child wrapper object for VniPoolConfig, used in hierarchical API. type ChildVniPoolConfig struct { // Contains the actual VniPoolConfig object. - VniPoolConfig VniPoolConfig + VniPoolConfig *VniPoolConfig // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -8209,63 +8114,9 @@ const ChildVniPoolConfig__TYPE_IDENTIFIER = "ChildVniPoolConfig" // DHCP classless static route option. type ClasslessStaticRoute struct { // Destination network in CIDR format. format: address-or-block-or-range - Network string + Network *string // IP address of next hop of the route. format: ip - NextHop string -} - -// The connection status of the edge/host with the URL categorization cloud service which provides the URL data and the URL data version. -type CloudConnectionState struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // The type of this resource. - ResourceType *string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // subtree for this type within policy tree containing nested elements. - Children []*data.StructValue - // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. - MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. - Overridden *bool - // The status of the connection between the URL categorization cloud service and the node. - CloudConnectionStatus *string - // The time at which data was synced from the cloud represented in seconds since Epoch. format: int32 - LastSyncTime *int64 - // The version of the file which contains the category and reputation of the URLs. The version consists of the major, minor and the update versions. An example of the data version is 4.5.214. - UrlDataVersion *string + NextHop *string } // Stores the information about cloud native service instance. @@ -8359,11 +8210,11 @@ type ColumnItem struct { // Id of drilldown widget, if any. Id should be a valid id of an existing widget. DrilldownId *string // Field from which values of the column will be derived. - Field string + Field *string // If set to true, hides the column Hidden *bool // Label of the column. - Label Label + Label *Label // Hyperlink of the specified UI page that provides details. If drilldown_id is provided, then navigation cannot be used. Navigation *string // Render configuration to be applied, if any. @@ -8381,7 +8232,7 @@ type ColumnItem struct { // * ColumnItem#ColumnItem_TYPE_DATE // // Data type of the field. - Type_ string + Type_ *string } const ColumnItem_TYPE_STRING = "String" const ColumnItem_TYPE_NUMBER = "Number" @@ -8431,7 +8282,7 @@ type CommunicationEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -8558,7 +8409,7 @@ type CommunicationMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // - Distributed Firewall - Policy framework for Distributed Firewall provides four pre-defined categories for classifying a communication map. They are \"Emergency\", \"Infrastructure\", \"Environment\" and \"Application\". Amongst the layer 3 communication maps,there is a pre-determined order in which the policy framework manages the priority of these communication maps. Emergency category has the highest priority followed by Infrastructure, Environment and then Application rules. Administrator can choose to categorize a communication map into the above categories or can choose to leave it empty. If empty it will have the least precedence w.r.t the above four layer 3 categories. Category *string @@ -8632,7 +8483,7 @@ type CommunityList struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // List of BGP community entries. Both standard and large communities are supported. Standard community format: aa:nn where aa and nn must be within the range [1 - 65536]. Large BGP Community format: aa:bb:nn where aa (Global Administrator), bb (Local Data Part 1) and nn (Local Data Part 2) must be within the range [1 - 4294967295]. In additon to numbered communites (e.g. 3356:2040), predefined communities (NO_EXPORT, NO_ADVERTISE, NO_EXPORT_SUBCONFED) are supported. Communities []string @@ -8661,7 +8512,7 @@ type CommunityListListResult struct { // Match criteria based on a community list type CommunityMatchCriteria struct { // Match criteria specified as a community list path or a regular expression. - Criteria string + Criteria *string // Possible values are: // // * CommunityMatchCriteria#CommunityMatchCriteria_MATCH_OPERATOR_ANY @@ -8679,20 +8530,6 @@ const CommunityMatchCriteria_MATCH_OPERATOR_EXACT = "MATCH_EXACT" const CommunityMatchCriteria_MATCH_OPERATOR_COMMUNITY_REGEX = "MATCH_COMMUNITY_REGEX" const CommunityMatchCriteria_MATCH_OPERATOR_LARGE_COMMUNITY_REGEX = "MATCH_LARGE_COMMUNITY_REGEX" -// Result of prechecks run for onboarding standby Global Manager or remote site. The checks include NSX version compatibility with active Global Manager, Round Trip Time (RTT), etc. Note that some of checks like RTT are soft limits. -type CompatibilityCheckResult struct { - // Local Site NSX version where active Global Mananger is running. - LocalNsxVersion *string - // Remote Site NSX version. - NsxVersion *string - // Round trip time to the remote Site or Global Manager from active Global Manager. format: int64 - Rtt *int64 - // Flag to indicate if RTT to remote Site exceeds the recommended limit. - RttExceeded *bool - // Flag to indicate if remote Site NSX version is compatible with active Global Manager. - VersionCompatible *bool -} - // Idfw configuration for enable/disable idfw on cluster level. type ComputeClusterIdfwConfiguration struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -8737,12 +8574,12 @@ type ComputeClusterIdfwConfiguration struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If set to true, idfw is enabled for this cluster - ClusterIdfwEnabled bool + ClusterIdfwEnabled *bool // Contains actual policy resource reference object - Member PolicyResourceReference + Member *PolicyResourceReference } // Paged collection of compute cluster idfw configuration @@ -8806,7 +8643,7 @@ type Condition struct { // * Condition#Condition_KEY_COMPUTERNAME // // Key - Key string + Key *string // Possible values are: // // * Condition#Condition_MEMBER_TYPE_IPSET @@ -8817,7 +8654,7 @@ type Condition struct { // * Condition#Condition_MEMBER_TYPE_SEGMENTPORT // // Group member type - MemberType string + MemberType *string // Possible values are: // // * Condition#Condition_OPERATOR_EQUALS @@ -8827,9 +8664,9 @@ type Condition struct { // * Condition#Condition_OPERATOR_NOTEQUALS // // operator - Operator string + Operator *string // Value - Value string + Value *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -8881,7 +8718,7 @@ type Condition struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -8913,11 +8750,11 @@ type ConditionalValueConstraintExpression struct { // * ConditionalValueConstraintExpression#ConditionalValueConstraintExpression_OPERATOR_EQUALS // // Set operation to constraint values. - Operator string + Operator *string // List of values. RhsValue []string // Values to apply the conditional constraint on target. - ValueConstraint ValueConstraintExpression + ValueConstraint *ValueConstraintExpression } const ConditionalValueConstraintExpression_OPERATOR_INCLUDES = "INCLUDES" const ConditionalValueConstraintExpression_OPERATOR_EXCLUDES = "EXCLUDES" @@ -9187,7 +9024,7 @@ type ConjunctionOperator struct { // * ConjunctionOperator#ConjunctionOperator_CONJUNCTION_OPERATOR_AND // // Conjunction Operator Node - ConjunctionOperator string + ConjunctionOperator *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -9239,7 +9076,7 @@ type ConjunctionOperator struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -9291,6 +9128,23 @@ const ConsolidatedStatus_CONSOLIDATED_STATUS_ERROR = "ERROR" const ConsolidatedStatus_CONSOLIDATED_STATUS_UNKNOWN = "UNKNOWN" const ConsolidatedStatus_CONSOLIDATED_STATUS_UNINITIALIZED = "UNINITIALIZED" +// Detailed Realized Status of an intent object on an NSX-T type of enforcement point. +type ConsolidatedStatusNsxt struct { + // Detailed Realized Status inherent to an NSX-T Enforcement Point. + EnforcedStatus *EnforcedStatusDetailsNsxt + // Alarm information details. + Alarm *PolicyRuntimeAlarm + // Policy Path referencing the enforcement point where the info is fetched. + EnforcementPointPath *string + // Consolidated Realized Status of an Intent object per enforcement point. + ConsolidatedStatus *ConsolidatedStatus + // Enforcement Point Id. + EnforcementPointId *string + ResourceType string + // The site where this enforcement point resides. + SitePath *string +} + // Consolidated Realized Status Per Enforcement Point. type ConsolidatedStatusPerEnforcementPoint struct { // Alarm information details. @@ -9301,7 +9155,14 @@ type ConsolidatedStatusPerEnforcementPoint struct { ConsolidatedStatus *ConsolidatedStatus // Enforcement Point Id. EnforcementPointId *string + ResourceType string + // The site where this enforcement point resides. + SitePath *string } +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const ConsolidatedStatusPerEnforcementPoint__TYPE_IDENTIFIER = "ConsolidatedStatusPerEnforcementPoint" // Constant Field Value. type ConstantFieldValue struct { @@ -9363,14 +9224,14 @@ type Constraint struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Expression to constrain the target attribute value. ConstraintExpression *data.StructValue // User friendly message to be shown to users upon violation. Message *string // Target resource attribute details. - Target ConstraintTarget + Target *ConstraintTarget } // All the types of the expression extend from this abstract class. This is present for extensibility. @@ -9447,7 +9308,7 @@ type ConstraintTarget struct { // Path prefix of the entity to apply constraint. This is required to further disambiguiate if multiple policy entities share the same resource type. Example - Edge FW and DFW use the same resource type CommunicationMap, CommunicationEntry, Group, etc. PathPrefix *string // Resource type of the target entity. - TargetResourceType string + TargetResourceType *string } // Container application within a project. @@ -9457,7 +9318,7 @@ type ContainerApplication struct { // Identifier of the project which this container application belongs to. ContainerProjectId *string // Identifier of the container application on container cluster e.g. PCF app id, k8s service id. - ExternalId string + ExternalId *string // List of network errors related to container application. NetworkErrors []NetworkError // Possible values are: @@ -9519,7 +9380,7 @@ type ContainerApplicationInstance struct { // Identifier of the container project which this container application instance belongs to. ContainerProjectId *string // Identifier of the container application instance on container cluster. - ExternalId string + ExternalId *string // List of network errors related to container application instance. NetworkErrors []NetworkError // Possible values are: @@ -9635,7 +9496,7 @@ type ContainerClusterNode struct { // External identifier of the container cluster. ContainerClusterId *string // External identifier of the container cluster node in K8S/PAS. - ExternalId string + ExternalId *string // List of IP addresses of container cluster node. format: ip IpAddresses []string // List of network errors related to container cluster node. @@ -9682,8 +9543,6 @@ type ContainerConfiguration struct { Layout *Layout // Hyperlink of the specified UI page that provides details. Navigation *string - // Represents the horizontal span of the container. format: int32 - Span *int64 // If not specified, creates an empty container. Widgets []WidgetItem // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -9747,6 +9606,8 @@ type ContainerConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -9767,7 +9628,7 @@ type ContainerInfrastructureInfo struct { // * ContainerInfrastructureInfo#ContainerInfrastructureInfo_INFRA_TYPE_BAREMETAL // // Type of the infrastructure. - InfraType string + InfraType *string } const ContainerInfrastructureInfo_INFRA_TYPE_VSPHERE = "vSphere" const ContainerInfrastructureInfo_INFRA_TYPE_AWS = "AWS" @@ -9785,7 +9646,7 @@ type ContainerIngressPolicy struct { // Identifier of the project which this container ingress belongs to. ContainerProjectId *string // Identifier of the container ingress policy. - ExternalId string + ExternalId *string // List of network errors related to container ingress. NetworkErrors []NetworkError // Possible values are: @@ -9830,7 +9691,7 @@ type ContainerNetworkPolicy struct { // Identifier of the project which this network policy belongs to. ContainerProjectId *string // Identifier of the container network policy. - ExternalId string + ExternalId *string // List of network errors related to container network policy. NetworkErrors []NetworkError // Possible values are: @@ -9882,7 +9743,7 @@ type ContainerProject struct { // Identifier of the container cluster to which this project/namespace belongs. ContainerClusterId *string // External identifier of the container project. - ExternalId string + ExternalId *string // List of network errors related to container project. NetworkErrors []NetworkError // Possible values are: @@ -9918,44 +9779,6 @@ const ContainerProject__TYPE_IDENTIFIER = "ContainerProject" const ContainerProject_NETWORK_STATUS_HEALTHY = "HEALTHY" const ContainerProject_NETWORK_STATUS_UNHEALTHY = "UNHEALTHY" -// Results of creating standby global manager task. -type CreateStandbyGlobalManagerTask struct { - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKCOMPATIBILITYTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKRTEPTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CREATESTANDBYGLOBALMANAGERTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_ONBOARDLOCALMANAGERTASK - // - // Action being performed by this task. - Action string - // End time for the task. format: int64 - EndTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_RESULT_SUCCESS - // * RealizedManagementTask#RealizedManagementTask_RESULT_ERROR - // - // Result of the task. - Result *string - // Additional information about the task result. - ResultDescription *string - // Start time for the task. format: int64 - StartTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_STATE_STARTING - // * RealizedManagementTask#RealizedManagementTask_STATE_RUNNING - // * RealizedManagementTask#RealizedManagementTask_STATE_COMPLETE - // - // State of the task. - State *string -} -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const CreateStandbyGlobalManagerTask__TYPE_IDENTIFIER = "CreateStandbyGlobalManagerTask" - // Event Criterion is the logical evaluations by which the event may be deemed fulfilled. All the evaluations must be met in order for the criterion to be met (implicit AND). type Criterion struct { // Criterion Evaluations. @@ -9993,7 +9816,7 @@ type CurrentBackupOperationStatus struct { // * CurrentBackupOperationStatus#CurrentBackupOperationStatus_OPERATION_TYPE_BACKUP // // Type of operation that is in progress. Returns none if no operation is in progress, in which case none of the other fields will be set. - OperationType string + OperationType *string // Time when operation was started format: int64 StartTime *int64 } @@ -10010,7 +9833,7 @@ type CustomPolicyLbPersistenceProfile struct { // * CustomPolicyLbPersistenceProfile#CustomPolicyLbPersistenceProfile_PERSISTENCE_SOURCE_IP // // This field indicates the persistence method used for the PolicyLbVirtualServer. - COOKIE persistence allows related client connections, identified by the same cookie in HTTP requests [Refer to HTTP Cookie for details on HTTP cookies], to be redirected to the same server. Load balancer does not maintain any persistence table for cookie persistence. Instead, it encodes the necessary information in the HTTP cookie value sent to client and relies on the client to store it and send it back in subsequent related HTTP requests. Hence there is no limit on the number of cookie persistence entries that can be supported. - SOURCE_IP persistence ensures all connections from a client (identified by IP address) are sent to the same backend server for a specified period. - This object is not required and without creation of this object the virtual server persistence is disabled by default - Persistence string + Persistence *string // Persistence shared setting indicates that all PolicyLbVirtualServers that consume this PolicyLbPersistenceProfile should share the same persistence mechanism when enabled. Meaning, persistence entries of a client accessing one virtual server will also affect the same client's connections to a different virtual server. For example, say there are two virtual servers vip-ip1:80 and vip-ip1:8080 bound to the same Group g1 consisting of two servers (s11:80 and s12:80). By default, each virtual server will have its own persistence table or cookie. So, in the earlier example, there will be two tables (vip-ip1:80, p1) and (vip-ip1:8080, p1) or cookies. So, if a client connects to vip1:80 and later connects to vip1:8080, the second connection may be sent to a different server than the first. When persistence_shared is enabled, then the second connection will always connect to the same server as the original connection. For COOKIE persistence type, the same cookie will be shared by multiple virtual servers. For SOURCE_IP persistenct type, the persistence table will be shared across virtual servers. PersistenceShared *bool // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -10059,7 +9882,7 @@ type CustomPolicyLbPersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -10079,7 +9902,7 @@ type CustomPolicyLbVirtualServer struct { // * CustomPolicyLbVirtualServer#CustomPolicyLbVirtualServer_APP_PROTOCOL_HTTPS // // As the custom type allows for more complex settings than the simplified PolicyLbVirtualServer types, also specify the desired protocol for receiving all client connections. - AppProtocol string + AppProtocol *string // Client-side SSL profile binding allows multiple certificates, for different hostnames, to be bound to the same virtual server. The setting is used when load balancer acts as an SSL server and terminating the client SSL connection ClientSslCertificateIds []string // Possible values are: @@ -10153,18 +9976,18 @@ type CustomPolicyLbVirtualServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If access log is enabled, all HTTP requests sent to an L7 virtual server are logged to the access log file. Both successful requests (backend server returns 2xx) and unsuccessful requests (backend server returns 4xx or 5xx) are logged to access log, if enabled. AccessLogEnabled *bool // Configures the IP address of the PolicyLbVirtualServer where it receives all client connections and distributes them among the backend servers. format: ip - IpAddress string + IpAddress *string // Path to optional object that enables persistence on a virtual server allowing related client connections to be sent to the same backend server. Persistence is disabled by default. LbPersistenceProfile *string // Ports contains a list of at least one port or port range such as \"80\", \"1234-1236\". Each port element in the list should be a single port or a single port range. format: port-or-range Ports []string // Path to router type object that PolicyLbVirtualServer connects to. The only supported router object is Network. - RouterPath string + RouterPath *string TrafficSource *string } const CustomPolicyLbVirtualServer_APP_PROTOCOL_TCP = "TCP" @@ -10244,6 +10067,8 @@ type CustomWidgetConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -10261,7 +10086,7 @@ type CvxConnectionInfo struct { // Username. Username *string // Value of this property could be Hostname or IP. For instance: - On an NSX-T MP running on default port, the value could be \"10.192.1.1\" - On an NSX-T MP running on custom port, the value could be \"192.168.1.1:32789\" - On an NSX-T MP in VMC deployments, the value could be \"192.168.1.1:5480/nsxapi\" - EnforcementPointAddress string + EnforcementPointAddress *string // Possible values are: // // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXTCONNECTIONINFO @@ -10312,7 +10137,7 @@ type DataCounter struct { // The multicast and broadcast packets or bytes format: int64 MulticastBroadcast *int64 // The total packets or bytes format: int64 - Total int64 + Total *int64 } type DataSourceParameters struct { @@ -10330,7 +10155,7 @@ const DataSourceParameters_SOURCE_CACHED = "cached" // An instance of a datasource configuration. type Datasource struct { // Name of a datasource instance. - DisplayName string + DisplayName *string // Array of urls relative to the datasource configuration. For example, api/v1/fabric/nodes is a relative url of nsx-manager instance. Urls []UrlAlias } @@ -10338,9 +10163,9 @@ type Datasource struct { // An instance of a datasource configuration. type DefaultFilterValue struct { // Filter alias. - Alias string + Alias *string // Filter default value. - Value string + Value *string } // Deployment Template holds the attributes specific to partner for which the service is created. These attributes are opaque to NSX. @@ -10395,7 +10220,7 @@ type DeploymentZone struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Logical grouping of enforcement points EnforcementPoints []EnforcementPoint @@ -10469,7 +10294,7 @@ type DfwFirewallConfiguration struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // To disable auto drafts, set it to true. By default, auto drafts are enabled. DisableAutoDrafts *bool @@ -10495,26 +10320,26 @@ const DhcpHeader_OP_CODE_BOOTREPLY = "BOOTREPLY" type DhcpIpPoolUsage struct { // allocated number. COULD BE INACCURATE, REFERENCE ONLY. format: int64 - AllocatedNumber int64 + AllocatedNumber *int64 // allocated percentage. COULD BE INACCURATE, REFERENCE ONLY. format: int64 - AllocatedPercentage int64 + AllocatedPercentage *int64 // uuid of dhcp ip pool - DhcpIpPoolId string + DhcpIpPoolId *string // pool size format: int64 - PoolSize int64 + PoolSize *int64 } type DhcpLeasePerIP struct { // expire time of the lease ExpireTime *string // ip address of client - IpAddress string + IpAddress *string // lease time of the ip address, in seconds LeaseTime *string // mac address of client - MacAddress string + MacAddress *string // start time of lease - StartTime string + StartTime *string // subnet of client network Subnet *string } @@ -10589,7 +10414,7 @@ type DhcpRelayConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // DHCP server IP addresses for DHCP relay configuration. Both IPv4 and IPv6 addresses are supported. format: ip ServerAddresses []string @@ -10659,7 +10484,7 @@ type DhcpServerConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Edge cluster path. Auto assigned if only one edge cluster is configured on enforcement-point. Modifying edge cluster will reallocate DHCP server to the new edge cluster. Please note that re-allocating edge-cluster will result in losing of all exisitng DHCP lease information. Change edge cluster only when losing DHCP leases is not a real problem, e.g. cross-site migration or failover and all client hosts will be reboot and get new IP addresses. EdgeClusterPath *string @@ -10831,34 +10656,34 @@ const DhcpServerState_STATE_REGISTRATION_TIMEDOUT = "REGISTRATION_TIMEDOUT" type DhcpServerStatistics struct { // The total number of DHCP ACK packets format: int64 - Acks int64 + Acks *int64 // The total number of DHCP DECLINE packets format: int64 - Declines int64 + Declines *int64 // dhcp server uuid - DhcpServerId string + DhcpServerId *string // The total number of DHCP DISCOVER packets format: int64 - Discovers int64 + Discovers *int64 // The total number of DHCP errors format: int64 - Errors int64 + Errors *int64 // The total number of DHCP INFORM packets format: int64 - Informs int64 + Informs *int64 // The DHCP ip pool usage statistics IpPoolStats []DhcpIpPoolUsage // The total number of DHCP NACK packets format: int64 - Nacks int64 + Nacks *int64 // The total number of DHCP OFFER packets format: int64 - Offers int64 + Offers *int64 // The total number of DHCP RELEASE packets format: int64 - Releases int64 + Releases *int64 // The total number of DHCP REQUEST packets format: int64 - Requests int64 + Requests *int64 // timestamp of the statistics format: int64 - Timestamp int64 + Timestamp *int64 } type DhcpServerStatus struct { // uuid of active transport node - ActiveNode string + ActiveNode *string // Error message, if available ErrorMessage *string // Possible values are: @@ -10869,7 +10694,7 @@ type DhcpServerStatus struct { // * DhcpServerStatus#DhcpServerStatus_SERVICE_STATUS_NO_STANDBY // // UP means the dhcp service is working fine on both active transport-node and stand-by transport-node (if have), hence fail-over can work at this time if there is failure happens on one of the transport-node; DOWN means the dhcp service is down on both active transport-node and stand-by node (if have), hence the dhcp-service will not repsonse any dhcp request; Error means error happens on transport-node(s) or no status is reported from transport-node(s). The dhcp service may be working (or not working); NO_STANDBY means dhcp service is working in one of the transport node while not in the other transport-node (if have). Hence if the dhcp service in the working transport-node is down, fail-over will not happen and the dhcp service will go down. - ServiceStatus string + ServiceStatus *string // uuid of stand_by transport node. null if non-HA mode StandByNode *string } @@ -10925,7 +10750,7 @@ type DhcpStaticBindingConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -11092,36 +10917,36 @@ const DhcpStaticBindingState_STATE_REGISTRATION_TIMEDOUT = "REGISTRATION_TIMEDOU type DhcpStatistics struct { // The total number of DHCP ACK packets format: int64 - Acks int64 + Acks *int64 // The total number of DHCP DECLINE packets format: int64 - Declines int64 + Declines *int64 // dhcp server uuid - DhcpServerId string + DhcpServerId *string // The total number of DHCP DISCOVER packets format: int64 - Discovers int64 + Discovers *int64 // The total number of DHCP errors format: int64 - Errors int64 + Errors *int64 // The total number of DHCP INFORM packets format: int64 - Informs int64 + Informs *int64 // The DHCP ip pool usage statistics IpPoolStats []DhcpIpPoolUsage // The total number of DHCP NACK packets format: int64 - Nacks int64 + Nacks *int64 // The total number of DHCP OFFER packets format: int64 - Offers int64 + Offers *int64 // The total number of DHCP RELEASE packets format: int64 - Releases int64 + Releases *int64 // The total number of DHCP REQUEST packets format: int64 - Requests int64 + Requests *int64 // timestamp of the statistics format: int64 - Timestamp int64 + Timestamp *int64 } // DHCP options for IPv4 server. type DhcpV4Options struct { // DHCP option 121 to define classless static routes. Option121 *DhcpOption121 - // To define DHCP options other than option 121 in generic format. Please note, only the following options can be defined in generic format. Those other options will be accepted without validation but will not take effect. -------------------------- Code Name -------------------------- 2 Time Offset 13 Boot File Size 19 Forward On/Off 26 MTU Interface 28 Broadcast Address 35 ARP Timeout 40 NIS Domain 41 NIS Servers 42 NTP Servers 44 NETBIOS Name Srv 45 NETBIOS Dist Srv 46 NETBIOS Node Type 47 NETBIOS Scope 50 Requested address 55 Parameter List 56 DHCP Message 57 DHCP Max Msg Size 58 Renewal Time 59 Rebinding Time 60 PXE: Class-Id 61 Client Id 64 NIS+-Domain-Name 65 NIS+-Server-Addr 66 TFTP Server-Name (used by PXE) 67 Bootfile-Name (used by PXE) 93 PXE: Client system architecture 94 PXE: Client NDI 97 PXE: UUID/UNDI 117 Name Service Search 118 Subnet Selection Option - 119 Domain Search 121 Classless Static Route Option 150 TFTP server address (used by PXE) 175 Etherboot 209 PXE Configuration File 210 PXE Path Prefix 211 PXE Reboot Time 249 Microsoft classless IP static route + // To define DHCP options other than option 121 in generic format. Please note, only the following options can be defined in generic format. Those other options will be accepted without validation but will not take effect. -------------------------- Code Name -------------------------- 2 Time Offset 6 Domain Name Server 13 Boot File Size 19 Forward On/Off 26 MTU Interface 28 Broadcast Address 35 ARP Timeout 40 NIS Domain 41 NIS Servers 42 NTP Servers 44 NETBIOS Name Srv 45 NETBIOS Dist Srv 46 NETBIOS Node Type 47 NETBIOS Scope 58 Renewal Time 59 Rebinding Time 64 NIS+-Domain-Name 65 NIS+-Server-Addr 66 TFTP Server-Name (used by PXE) 67 Bootfile-Name (used by PXE) 93 PXE: Client system architecture 94 PXE: Client NDI 97 PXE: UUID/UNDI 117 Name Service Search 119 Domain Search 150 TFTP server address (used by PXE) 175 Etherboot 209 PXE Configuration File 210 PXE Path Prefix 211 PXE Reboot Time Others []GenericDhcpOption } @@ -11132,11 +10957,11 @@ type DhcpV4StaticBindingConfig struct { // Hostname to assign to the host. HostName *string // IP assigned to host. The IP address must belong to the subnet, if any, configured on Segment. format: ipv4 - IpAddress string + IpAddress *string // DHCP lease time in seconds. format: int64 LeaseTime *int64 - // MAC address of the host. - MacAddress string + // MAC address of the host. format: mac-address + MacAddress *string // IPv4 DHCP options. Options *DhcpV4Options // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -11184,7 +11009,7 @@ type DhcpV4StaticBindingConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -11206,8 +11031,8 @@ type DhcpV6StaticBindingConfig struct { IpAddresses []string // Lease time, in seconds. format: int64 LeaseTime *int64 - // The MAC address of the client host. Either client-duid or mac-address, but not both. - MacAddress string + // The MAC address of the client host. Either client-duid or mac-address, but not both. format: mac-address + MacAddress *string // Preferred time, in seconds. If this value is not provided, the value of lease_time\*0.8 will be used. format: int64 PreferredTime *int64 // SNTP server IP addresses. format: ipv6 @@ -11257,7 +11082,7 @@ type DhcpV6StaticBindingConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -11396,7 +11221,7 @@ type DiscoveryProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -11452,7 +11277,7 @@ type DistributedFloodProtectionProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If this field is empty, firewall will not set a limit to active ICMP connections. format: int64 IcmpActiveFlowLimit *int64 @@ -11618,7 +11443,7 @@ type DnsSecurityProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Time to live for DNS cache entry in seconds. Valid TTL values are between 3600 to 864000. However, this field accepts values between 0 through 864000. We define TTL type based on the value of TTL as follows: TTL 0 - cached entry never expires. TTL 1 to 3599 - invalid input and error is thrown TTL 3600 to 864000 - ttl is set to user input TTL field not set by user - TTL type is 'AUTO' and ttl value is set from DNS response packet. User defined TTL value is used only when it is betweeen 3600 to 864000. format: int64 Ttl *int64 @@ -11668,10 +11493,10 @@ type DnsSecurityProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Profile - ProfilePath string + ProfilePath *string // Sequence number used to resolve conflicts betweeen two profiles applied on the same group. Lower sequence number takes higher precedence. Two binding maps applied to the same profile must have the same sequence number. User defined sequence numbers range from 1 through 100,000. System defined sequence numbers range from 100,001 through 200,000. format: int64 SequenceNumber *int64 } @@ -11760,7 +11585,7 @@ type Domain struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -11808,10 +11633,10 @@ type DomainDeploymentMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Path of enforcement point on which domain shall be enforced. - EnforcementPointPath string + EnforcementPointPath *string } // Paged collection of Domain Deployment Map. @@ -11927,6 +11752,8 @@ type DonutConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -11942,7 +11769,7 @@ type DonutPart struct { // Id of drilldown widget, if any. Id should be a valid id of an existing widget. A widget is considered as drilldown widget when it is associated with any other widget and provides more detailed information about any data item from the parent widget. DrilldownId *string // A numerical value that represents the portion or entity of the donut or stats chart. - Field string + Field *string // If true, legend will be shown only if the data for the part is available. This is applicable only if legends are specified in widget configuration. HideEmptyLegend *bool // If a section 'template' holds this donut or stats part, then the label is auto-generated from the fetched field values after applying the template. @@ -11970,7 +11797,7 @@ type DropdownFilterWidgetConfiguration struct { // Expression to specify default value of filter. DefaultValue *string // Defines the item of a dropdown. - DropdownItem DropdownItem + DropdownItem *DropdownItem // Placeholder message to be displayed in dropdown filter. PlaceholderMsg *string // If the condition is met then the static filter will be added. If no condition is provided, then the static filters will be applied unconditionally. @@ -12040,6 +11867,8 @@ type DropdownFilterWidgetConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -12049,9 +11878,9 @@ type DropdownItem struct { // expression to extract display name to be shown in the drop down. DisplayName *string // An expression that represents the items of the dropdown filter. - Field string + Field *string // Value of filter inside dropdown filter. - Value string + Value *string } // Contains dupliacte IP detection related discovery options. @@ -12069,7 +11898,7 @@ type EULAAcceptance struct { // Link to this resource Self *SelfResourceLink // Acceptance status of End User License Agreement - Acceptance bool + Acceptance *bool } // End User License Agreement content @@ -12231,7 +12060,7 @@ type EgressRateLimiter struct { BurstSize *int64 // Peak bandwidth in Mb/s format: int32 PeakBandwidth *int64 - Enabled bool + Enabled *bool // Possible values are: // // * QosBaseRateLimiter#QosBaseRateLimiter_RESOURCE_TYPE_INGRESSRATELIMITER @@ -12290,7 +12119,7 @@ type EndpointPolicy struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Endpoint Rules that are a part of this EndpointPolicy EndpointRules []EndpointRule @@ -12362,7 +12191,7 @@ type EndpointRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // We need paths as duplicate names may exist for groups under different domains. In order to specify all groups, use the constant \"ANY\". This is case insensitive. If \"ANY\" is used, it should be the ONLY element in the group array. Error will be thrown if ANY is used in conjunction with other values. Groups []string @@ -12392,107 +12221,177 @@ type EndpointRuleListResult struct { Results []EndpointRule } -// Enforcement point is the endpoint where policy configurations are applied. -type EnforcementPoint struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // The type of this resource. - ResourceType *string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // subtree for this type within policy tree containing nested elements. - Children []*data.StructValue - // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. - MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. - Overridden *bool - // Auto enforce flag suggests whether the policy objects shall be automatically enforced on this enforcement point or not. When this flag is set to true, all policy objects will be automatically enforced on this enforcement point. If this flag is set to false, user shall rely on the usual means of realization, i.e., deployment maps. - AutoEnforce *bool - // Connection Info of the Enforcement Point. - ConnectionInfo *data.StructValue - // Version of the Enforcement point. - Version *string +// Detailed Realized Status of an intent object on an NSX-T type of enforcement point. This is a detailed view of the Realized Status of an intent object from an NSX-T enforcement point perspective. +type EnforcedStatusDetailsNsxt struct { + // Information about the realized status of the intent on this enforcement point. Some very recent changes may be excluded when preparing this information, which is indicated by Pending Changes Info. + EnforcedStatusInfo *EnforcedStatusInfoNsxt + // Information about pending changes, if any, that aren't reflected in the Enforced Realized Status. + PendingChangesInfo *PendingChangesInfoNsxt } -// Contains information required to connect to enforcement point. -type EnforcementPointConnectionInfo struct { - // Value of this property could be Hostname or IP. For instance: - On an NSX-T MP running on default port, the value could be \"10.192.1.1\" - On an NSX-T MP running on custom port, the value could be \"192.168.1.1:32789\" - On an NSX-T MP in VMC deployments, the value could be \"192.168.1.1:5480/nsxapi\" - EnforcementPointAddress string +// Information about the realized status of the intent object on an NSX-T type of enforcement point. Some very recent changes may be excluded when preparing this information, which is indicated by Pending Changes Info. In addition to the realized status across all scopes, this information holds details about enforced realized status per scope. +type EnforcedStatusInfoNsxt struct { + // Consolidated Realized Status of an Intent object across all scopes of an NSX-T type of enforcement point. + EnforcedStatus *EnforcedStatusNsxt + // List of Enforced Realized Status per Scope. + EnforcedStatusPerScope []*data.StructValue +} + +// NSX-T Enforced Status. +type EnforcedStatusNsxt struct { // Possible values are: // - // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXTCONNECTIONINFO - // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXVCONNECTIONINFO - // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_CVXCONNECTIONINFO + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_UNINITIALIZED + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_UNKNOWN + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_UP + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_DOWN + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_DEGRADED + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_SUCCESS + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_FAILURE + // * EnforcedStatusNsxt#EnforcedStatusNsxt_STATUS_IN_PROGRESS // - // Resource Type of Enforcement Point Connection Info. + // Enforced Realized Status. + Status *string + // Status Message conveying hints depending on the status value. + StatusMessage *string +} +const EnforcedStatusNsxt_STATUS_UNINITIALIZED = "UNINITIALIZED" +const EnforcedStatusNsxt_STATUS_UNKNOWN = "UNKNOWN" +const EnforcedStatusNsxt_STATUS_UP = "UP" +const EnforcedStatusNsxt_STATUS_DOWN = "DOWN" +const EnforcedStatusNsxt_STATUS_DEGRADED = "DEGRADED" +const EnforcedStatusNsxt_STATUS_SUCCESS = "SUCCESS" +const EnforcedStatusNsxt_STATUS_FAILURE = "FAILURE" +const EnforcedStatusNsxt_STATUS_IN_PROGRESS = "IN_PROGRESS" + +// NSX-T Detailed Realized Status Per Scope. +type EnforcedStatusPerScopeNsxt struct { + // Possible values are: + // + // * EnforcedStatusPerScopeNsxt#EnforcedStatusPerScopeNsxt_RESOURCE_TYPE_TRANSPORTNODESPANENFORCEDSTATUS + // + // Enforced Realized Status Per Scope Resource Type. ResourceType string } // Identifier denoting this class, when it is used in polymorphic context. // // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const EnforcementPointConnectionInfo__TYPE_IDENTIFIER = "EnforcementPointConnectionInfo" -const EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXTCONNECTIONINFO = "NSXTConnectionInfo" -const EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXVCONNECTIONINFO = "NSXVConnectionInfo" -const EnforcementPointConnectionInfo_RESOURCE_TYPE_CVXCONNECTIONINFO = "CvxConnectionInfo" +const EnforcedStatusPerScopeNsxt__TYPE_IDENTIFIER = "EnforcedStatusPerScopeNsxT" +const EnforcedStatusPerScopeNsxt_RESOURCE_TYPE_TRANSPORTNODESPANENFORCEDSTATUS = "TransportNodeSpanEnforcedStatus" -// Paged collection of enforcement points. -type EnforcementPointListResult struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // Opaque cursor to be used for getting next page of records (supplied by current result page) - Cursor *string - // Count of results found (across all pages), set only on first page format: int64 - ResultCount *int64 - // If true, results are sorted in ascending order - SortAscending *bool - // Field by which records are sorted - SortBy *string - // Enforcement Point list Results. - Results []EnforcementPoint +// Detailed Realized Status Per Transport Node. +type EnforcedStatusPerTransportNode struct { + // Display name of the transport node. + DisplayName *string + // Realized Status of an Intent object on this Transport Node. + EnforcedStatus *EnforcedStatusNsxt + // UUID identifying uniquely the Transport Node. + NsxId *string + // Policy Path referencing the transport node. + Path *string } -// Represents the leaf level constraint to restrict the number instances of an entity type can be created. This is useful in restricting number of CGWs or MGWs or Providers that can created in a system. -type EntityInstanceCountConstraintExpression struct { - // Instance count. format: int64 - Count int64 - // Operations supported '<' and '<='. - Operator string +// Enforcement point is the endpoint where policy configurations are applied. +type EnforcementPoint struct { + // The server will populate this field when returing the resource. Ignored on PUT and POST. + Links []ResourceLink + // Schema for this resource + Schema *string + // Link to this resource + Self *SelfResourceLink + // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 + Revision *int64 + // Timestamp of resource creation format: int64 + CreateTime *int64 + // ID of the user who created this resource + CreateUser *string + // Timestamp of last modification format: int64 + LastModifiedTime *int64 + // ID of the user who last modified this resource + LastModifiedUser *string + // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. + Protection *string + // Indicates system owned resource + SystemOwned *bool + // Description of this resource + Description *string + // Defaults to ID if not set + DisplayName *string + // Unique identifier of this resource + Id *string + // The type of this resource. + ResourceType *string + // Opaque identifiers meaningful to the API user + Tags []Tag + // Path of its parent + ParentPath *string + // Absolute path of this object + Path *string + // Path relative from its parent + RelativePath *string + // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. + UniqueId *string + // subtree for this type within policy tree containing nested elements. + Children []*data.StructValue + // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. + MarkedForDelete *bool + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. + Overridden *bool + // Auto enforce flag suggests whether the policy objects shall be automatically enforced on this enforcement point or not. When this flag is set to true, all policy objects will be automatically enforced on this enforcement point. If this flag is set to false, user shall rely on the usual means of realization, i.e., deployment maps. + AutoEnforce *bool + // Connection Info of the Enforcement Point. + ConnectionInfo *data.StructValue + // Version of the Enforcement point. + Version *string +} + +// Contains information required to connect to enforcement point. +type EnforcementPointConnectionInfo struct { + // Value of this property could be Hostname or IP. For instance: - On an NSX-T MP running on default port, the value could be \"10.192.1.1\" - On an NSX-T MP running on custom port, the value could be \"192.168.1.1:32789\" - On an NSX-T MP in VMC deployments, the value could be \"192.168.1.1:5480/nsxapi\" + EnforcementPointAddress *string + // Possible values are: + // + // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXTCONNECTIONINFO + // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXVCONNECTIONINFO + // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_CVXCONNECTIONINFO + // + // Resource Type of Enforcement Point Connection Info. + ResourceType string +} +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const EnforcementPointConnectionInfo__TYPE_IDENTIFIER = "EnforcementPointConnectionInfo" +const EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXTCONNECTIONINFO = "NSXTConnectionInfo" +const EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXVCONNECTIONINFO = "NSXVConnectionInfo" +const EnforcementPointConnectionInfo_RESOURCE_TYPE_CVXCONNECTIONINFO = "CvxConnectionInfo" + +// Paged collection of enforcement points. +type EnforcementPointListResult struct { + // The server will populate this field when returing the resource. Ignored on PUT and POST. + Links []ResourceLink + // Schema for this resource + Schema *string + // Link to this resource + Self *SelfResourceLink + // Opaque cursor to be used for getting next page of records (supplied by current result page) + Cursor *string + // Count of results found (across all pages), set only on first page format: int64 + ResultCount *int64 + // If true, results are sorted in ascending order + SortAscending *bool + // Field by which records are sorted + SortBy *string + // Enforcement Point list Results. + Results []EnforcementPoint +} + +// Represents the leaf level constraint to restrict the number instances of an entity type can be created. This is useful in restricting number of CGWs or MGWs or Providers that can created in a system. +type EntityInstanceCountConstraintExpression struct { + // Instance count. format: int64 + Count *int64 + // Operations supported '<' and '<='. + Operator *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -12537,9 +12436,9 @@ const EntityInstanceCountConstraintExpression__TYPE_IDENTIFIER = "EntityInstance // Metadata related to a given error_id type ErrorResolverInfo struct { // The error id for which metadata information is needed format: int64 - ErrorId int64 + ErrorId *int64 // Indicates whether there is a resolver associated with the error or not - ResolverPresent bool + ResolverPresent *bool // User supplied metadata that might be required by the resolver UserMetadata *ErrorResolverUserMetadata } @@ -12553,9 +12452,9 @@ type ErrorResolverInfoList struct { // Error along with its metadata type ErrorResolverMetadata struct { // The entity/node UUID where the error has occurred. - EntityId string + EntityId *string // The error id as reported by the entity where the error occurred. format: int64 - ErrorId int64 + ErrorId *int64 // This can come from some external system like syslog collector SystemMetadata *ErrorResolverSystemMetadata // User supplied metadata that might be required by the resolver @@ -12583,9 +12482,9 @@ type ErrorResolverUserInputData struct { // * ErrorResolverUserInputData#ErrorResolverUserInputData_DATA_TYPE_PASSWORD // // The datatype of the given property. Useful for data validation - DataType string + DataType *string // Name of the property supplied by the user - PropertyName string + PropertyName *string // The value associated with the above property PropertyValue *string } @@ -12602,7 +12501,7 @@ type ErrorResolverUserMetadata struct { // A ServiceEntry that represents an ethertype protocol type EtherTypeServiceEntry struct { // Type of the encapsulated protocol format: int64 - EtherType int64 + EtherType *int64 // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -12653,7 +12552,7 @@ type EtherTypeServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -12693,7 +12592,7 @@ type Event struct { Source *data.StructValue } -// Evpn Config. +// Evpn Configuration. type EvpnConfig struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -12737,7 +12636,7 @@ type EvpnConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Encapsulation method for EVPN service that is used by the transport layer. EncapsulationMethod *EvpnEncapConfig @@ -12794,13 +12693,13 @@ type EvpnEncapConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // vni pool path VniPoolPath *string } -// Evpn Tunnel Endpoint Config. +// Evpn Tunnel Endpoint Configuration. type EvpnTunnelEndpointConfig struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -12844,17 +12743,17 @@ type EvpnTunnelEndpointConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // edge path - EdgePath string + EdgePath *string // local addresses format: ipv4 LocalAddresses []string // MTU format: int32 Mtu *int64 } -// Collection of Evpn Tunnel Endpoint Config. +// Collection of Evpn Tunnel Endpoint Configuration. type EvpnTunnelEndpointConfigListResult struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -12870,7 +12769,7 @@ type EvpnTunnelEndpointConfigListResult struct { SortAscending *bool // Field by which records are sorted SortBy *string - // Evpn Tunnel Endpoint Config list results + // Evpn Tunnel Endpoint Configuration list results Results []EvpnTunnelEndpointConfig } @@ -12927,7 +12826,7 @@ type Expression struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -12955,7 +12854,7 @@ type ExternalIDExpression struct { // * ExternalIDExpression#ExternalIDExpression_MEMBER_TYPE_PHYSICALSERVER // // External ID member type - MemberType string + MemberType *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -13007,7 +12906,7 @@ type ExternalIDExpression struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -13028,7 +12927,7 @@ type FIPSGlobalConfig struct { // Feature Permission type FeaturePermission struct { // Feature Id - Feature string + Feature *string // Feature Description FeatureDescription *string // Feature Name @@ -13045,37 +12944,13 @@ type FeaturePermission struct { // * FeaturePermission#FeaturePermission_PERMISSION_NONE // // Permission - Permission string + Permission *string } const FeaturePermission_PERMISSION_CRUD = "crud" const FeaturePermission_PERMISSION_READ = "read" const FeaturePermission_PERMISSION_EXECUTE = "execute" const FeaturePermission_PERMISSION_NONE = "none" -type FeaturePermissionArray struct { - // Array of FeaturePermission - FeaturePermissions []FeaturePermission -} - -type FeaturePermissionListResult struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // Opaque cursor to be used for getting next page of records (supplied by current result page) - Cursor *string - // Count of results found (across all pages), set only on first page format: int64 - ResultCount *int64 - // If true, results are sorted in ascending order - SortAscending *bool - // Field by which records are sorted - SortBy *string - // List results - Results []FeaturePermission -} - type FederationComponentUpgradeStatus struct { // Component type for the upgrade status ComponentType *string @@ -13222,7 +13097,7 @@ type FieldSanityConstraintExpression struct { // * FieldSanityConstraintExpression#FieldSanityConstraintExpression_OPERATOR_AND // // A conditional operator - Operator string + Operator *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -13271,7 +13146,7 @@ const FieldSanityConstraintExpression_OPERATOR_AND = "AND" // Field Setting. type FieldSetting struct { // Field Pointer. - FieldPointer string + FieldPointer *string // Value that the field must be set to. Value *data.StructValue } @@ -13339,24 +13214,24 @@ type FileTransferAuthenticationScheme struct { // * FileTransferAuthenticationScheme#FileTransferAuthenticationScheme_SCHEME_NAME_PASSWORD // // Authentication scheme name - SchemeName string + SchemeName *string // User name to authenticate with - Username string + Username *string } const FileTransferAuthenticationScheme_SCHEME_NAME_PASSWORD = "PASSWORD" // Protocol to transfer backup file to remote server type FileTransferProtocol struct { // Scheme to authenticate if required - AuthenticationScheme FileTransferAuthenticationScheme + AuthenticationScheme *FileTransferAuthenticationScheme // Possible values are: // // * FileTransferProtocol#FileTransferProtocol_PROTOCOL_NAME_SFTP // // Protocol name - ProtocolName string + ProtocolName *string // The expected SSH fingerprint of the server. If the server's fingerprint does not match this fingerprint, the connection will be terminated. Only ECDSA fingerprints hashed with SHA256 are supported. To obtain the host's ssh fingerprint, you should connect via some method other than SSH to obtain this information. You can use one of these commands to view the key's fingerprint: 1. ssh-keygen -l -E sha256 -f ssh_host_ecdsa_key.pub 2. awk '{print $2}' ssh_host_ecdsa_key.pub | base64 -d | sha256sum -b | sed 's/ .\*$//' | xxd -r -p | base64 | sed 's/.//44g' | awk '{print \"SHA256:\"$1}' - SshFingerprint string + SshFingerprint *string } const FileTransferProtocol_PROTOCOL_NAME_SFTP = "sftp" @@ -13425,6 +13300,8 @@ type FilterWidgetConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -13479,7 +13356,7 @@ type FirewallConfiguration struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // To disable auto drafts, set it to true. By default, auto drafts are enabled. DisableAutoDrafts *bool @@ -13536,16 +13413,16 @@ type FirewallIdentityStore struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Each active directory domain has a domain naming context (NC), which contains domain-specific data. The root of this naming context is represented by a domain's distinguished name (DN) and is typically referred to as the NC head. - BaseDistinguishedName string + BaseDistinguishedName *string // Directory domain LDAP servers' information including host, name, port, protocol and so on. LdapServers []FirewallIdentityStoreLdapServer // Directory domain name which best describes the domain. It could be unique fqdn name or it could also be descriptive. There is no unique contraint for domain name among different domains. - Name string + Name *string // NetBIOS names can contain all alphanumeric characters except for the certain disallowed characters. Names can contain a period, but names cannot start with a period. NetBIOS is similar to DNS in that it can serve as a directory service, but more limited as it has no provisions for a name hierarchy and names are limited to 15 characters. The netbios name is case insensitive and is stored in upper case regardless of input case. - NetbiosName string + NetbiosName *string // SelectiveSync settings toggle the SelectiveSync feature and selected OrgUnits. If this is not specified, SelectiveSync is disabled by default. SelectiveSyncSettings *FirewallIdentityStoreSelectiveSyncSettings // Each domain sync settings can be changed using this object. It is not required since there are default values used if there is no specification for this object. @@ -13596,12 +13473,12 @@ type FirewallIdentityStoreLdapServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Directory domain name which best describes the domain. It could be unique fqdn name or it could also be descriptive. There is no unique constraint for domain name among different domains. DomainName *string // Directory LDAP server DNS host name or ip address which is reachable by NSX manager to be connected and do object synchronization. format: ip-or-hostname - Host string + Host *string // Directory LDAP server connection password. Password *string // Directory LDAP server connection TCP/UDP port. format: int32 @@ -13638,7 +13515,7 @@ type FirewallIdentityStoreSelectiveSyncSettings struct { // Field by which records are sorted SortBy *string // Enable or disable SelectiveSync - Enabled bool + Enabled *bool // If SelectiveSync is enabled, this contains 1 or more OrgUnits, NSX will synchronize with in LDAP server. If SelectiveSync is disabled, do not define this or specify an empty list. SelectedOrgUnits []string } @@ -13702,7 +13579,7 @@ type FloodProtectionProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If this field is empty, firewall will not set a limit to active ICMP connections. format: int64 IcmpActiveFlowLimit *int64 @@ -13784,10 +13661,10 @@ type FloodProtectionProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Profile - ProfilePath string + ProfilePath *string } // Paged Collection of flood protection profiles @@ -13823,7 +13700,7 @@ type FooterAction struct { // If true, the footer will appear in the underlying container that holds the widget. DockToContainerFooter *bool // Label to be displayed against the footer action. - Label Label + Label *Label // Hyperlink to the UI page that provides details of action. Url *string } @@ -13872,7 +13749,7 @@ type ForwardingPolicy struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // - Distributed Firewall - Policy framework provides five pre-defined categories for classifying a security policy. They are \"Ethernet\",\"Emergency\", \"Infrastructure\" \"Environment\" and \"Application\". There is a pre-determined order in which the policy framework manages the priority of these security policies. Ethernet category is for supporting layer 2 firewall rules. The other four categories are applicable for layer 3 rules. Amongst them, the Emergency category has the highest priority followed by Infrastructure, Environment and then Application rules. Administrator can choose to categorize a security policy into the above categories or can choose to leave it empty. If empty it will have the least precedence w.r.t the above four categories. - Edge Firewall - Policy Framework for Edge Firewall provides six pre-defined categories \"Emergency\", \"SystemRules\", \"SharedPreRules\", \"LocalGatewayRules\", \"AutoServiceRules\" and \"Default\", in order of priority of rules. All categories are allowed for Gatetway Policies that belong to 'default' Domain. However, for user created domains, category is restricted to \"SharedPreRules\" or \"LocalGatewayRules\" only. Also, the users can add/modify/delete rules from only the \"SharedPreRules\" and \"LocalGatewayRules\" categories. If user doesn't specify the category then defaulted to \"Rules\". System generated category is used by NSX created rules, for example BFD rules. Autoplumbed category used by NSX verticals to autoplumb data path rules. Finally, \"Default\" category is the placeholder default rules with lowest in the order of priority. Category *string @@ -13968,7 +13845,7 @@ type ForwardingRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // We need paths as duplicate names may exist for groups under different domains. Along with paths we support IP Address of type IPv4 and IPv6. IP Address can be in one of the format(CIDR, IP Address, Range of IP Address). In order to specify all groups, use the constant \"ANY\". This is case insensitive. If \"ANY\" is used, it should be the ONLY element in the group array. Error will be thrown if ANY is used in conjunction with other values. DestinationGroups []string @@ -14105,7 +13982,7 @@ type FullSyncState struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Errors occurred during full sync. Errors []string @@ -14114,22 +13991,28 @@ type FullSyncState struct { // Possible values are: // // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_INITIAL + // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_PAUSE_DCNS // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_DELETED_STALE_ENTITIES // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_PROCESSED_FULLSYNC_DATA // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_PROCESSED_DELTAS - // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_INVOKED_POLICY_FULLSYNC + // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_UNPAUSE_DCNS // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_COMPLETED // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_ERROR // * FullSyncState#FullSyncState_LAST_COMPLETED_STAGE_ABORTED // // The current stage of full sync completion for ongoing sync. When Local Manager (LM) receives full sync data from AR, LM starts with workflow to prserve the state and restore the full sync from where it has left off in case of change of leadership of the service to different NSX node or LM is restarted. LM starts the full sync workflow with state INITIAL capturing the AR full sync id and data location details. The stage/state transition follows the order given below INITIAL - Full sync started PROCESSED_FULLSYNC_DATA - Compelted processing the full state data provided by AR PRCESSED_DELTAS - Completed processing pending delta changes provided by AR. DELETED_STALE_ENTITIES - Completed deletion of all global entities on LM that are not in GM anymore COMPLETED - Full sync handling is completed on LM ERROR - Full sync failed with errors on LM, in which case AR will re-attempt full sync later point in time for the LM ABORTED - Indicates that the full sync cancelled as per user request LastCompletedStage *string + // Timestamp of last update, could be progress or success or error. format: int64 + LastUpateTime *int64 + // Timestamp of Full Sync start. format: int64 + StartTime *int64 } const FullSyncState_LAST_COMPLETED_STAGE_INITIAL = "INITIAL" +const FullSyncState_LAST_COMPLETED_STAGE_PAUSE_DCNS = "PAUSE_DCNS" const FullSyncState_LAST_COMPLETED_STAGE_DELETED_STALE_ENTITIES = "DELETED_STALE_ENTITIES" const FullSyncState_LAST_COMPLETED_STAGE_PROCESSED_FULLSYNC_DATA = "PROCESSED_FULLSYNC_DATA" const FullSyncState_LAST_COMPLETED_STAGE_PROCESSED_DELTAS = "PROCESSED_DELTAS" -const FullSyncState_LAST_COMPLETED_STAGE_INVOKED_POLICY_FULLSYNC = "INVOKED_POLICY_FULLSYNC" +const FullSyncState_LAST_COMPLETED_STAGE_UNPAUSE_DCNS = "UNPAUSE_DCNS" const FullSyncState_LAST_COMPLETED_STAGE_COMPLETED = "COMPLETED" const FullSyncState_LAST_COMPLETED_STAGE_ERROR = "ERROR" const FullSyncState_LAST_COMPLETED_STAGE_ABORTED = "ABORTED" @@ -14202,7 +14085,7 @@ type GatewayFloodProtectionProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If this field is empty, firewall will not set a limit to active ICMP connections. format: int64 IcmpActiveFlowLimit *int64 @@ -14262,7 +14145,7 @@ type GatewayPolicy struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // - Distributed Firewall - Policy framework provides five pre-defined categories for classifying a security policy. They are \"Ethernet\",\"Emergency\", \"Infrastructure\" \"Environment\" and \"Application\". There is a pre-determined order in which the policy framework manages the priority of these security policies. Ethernet category is for supporting layer 2 firewall rules. The other four categories are applicable for layer 3 rules. Amongst them, the Emergency category has the highest priority followed by Infrastructure, Environment and then Application rules. Administrator can choose to categorize a security policy into the above categories or can choose to leave it empty. If empty it will have the least precedence w.r.t the above four categories. - Edge Firewall - Policy Framework for Edge Firewall provides six pre-defined categories \"Emergency\", \"SystemRules\", \"SharedPreRules\", \"LocalGatewayRules\", \"AutoServiceRules\" and \"Default\", in order of priority of rules. All categories are allowed for Gatetway Policies that belong to 'default' Domain. However, for user created domains, category is restricted to \"SharedPreRules\" or \"LocalGatewayRules\" only. Also, the users can add/modify/delete rules from only the \"SharedPreRules\" and \"LocalGatewayRules\" categories. If user doesn't specify the category then defaulted to \"Rules\". System generated category is used by NSX created rules, for example BFD rules. Autoplumbed category used by NSX verticals to autoplumb data path rules. Finally, \"Default\" category is the placeholder default rules with lowest in the order of priority. Category *string @@ -14358,7 +14241,7 @@ type GatewayQosProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Burst size in bytes. format: int32 BurstSize *int64 @@ -14412,11 +14295,11 @@ type GatewayRouteCsvRecord struct { // Logical router component(Service Router/Distributed Router) type LrComponentType *string // CIDR network address format: ip-cidr-block - Network string + Network *string // The IP of the next hop format: ip NextHop *string // Route type (USER, CONNECTED, NSX_INTERNAL,..) - RouteType string + RouteType *string } type GatewayRouteTableInCsvFormat struct { @@ -14430,7 +14313,7 @@ type GatewayRouteTableInCsvFormat struct { // Define DHCP options other than option 121. type GenericDhcpOption struct { // Code of the dhcp option. format: int64 - Code int64 + Code *int64 // Value of the option. Values []string } @@ -14495,13 +14378,17 @@ type GenericPolicyRealizedResource struct { // * GenericPolicyRealizedResource#GenericPolicyRealizedResource_STATE_ERROR // // Realization state of this object - State string + State *string + // The path of the enforcement point. + EnforcementPointPath *string // Type of realized entity EntityType *string // Collection of type specific properties ExtendedAttributes []AttributeVal // Collection of intent paths IntentPaths []string + // The site where this entity resides. + SitePath *string } const GenericPolicyRealizedResource_STATE_UNAVAILABLE = "UNAVAILABLE" const GenericPolicyRealizedResource_STATE_UNREALIZED = "UNREALIZED" @@ -14572,7 +14459,7 @@ type GlobalConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Contains the FIPSGlobalConfig object. Fips *FIPSGlobalConfig @@ -14633,7 +14520,7 @@ type GlobalManager struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // To create a standby GM, the connection information (username, password, and API thumbprint) for at least one NSX manager node in the remote site must be provided. Once the GM has been successfully onboarded, the connection_info is discarded and authentication to the standby GM occurs using an X.509 client certificate. ConnectionInfo []SiteNodeConnectionInfo @@ -14649,74 +14536,61 @@ type GlobalManager struct { // * GlobalManager#GlobalManager_MODE_STANDBY // // There can be at most one ACTIVE global manager and one STANDBY global manager. In order to add a STANDBY manager, there must be an ACTIVE manager defined. - Mode string + Mode *string // UUID of the site where Global manager is running. This is the Site Manager generated UUID for every NSX deployment. SiteId *string } const GlobalManager_MODE_ACTIVE = "ACTIVE" const GlobalManager_MODE_STANDBY = "STANDBY" -// Global Manager Cluster Realized State. -type GlobalManagerClusterRealizedState struct { - // Identifier of the cluster. - ClusterId *string - // Cluster nodes. - ClusterNodes []GlobalManagerNodeRealizedState - // Possible values are: - // - // * GlobalManagerClusterRealizedState#GlobalManagerClusterRealizedState_CLUSTER_STATUS_STABLE - // * GlobalManagerClusterRealizedState#GlobalManagerClusterRealizedState_CLUSTER_STATUS_DEGRADED - // * GlobalManagerClusterRealizedState#GlobalManagerClusterRealizedState_CLUSTER_STATUS_UNSTABLE - // * GlobalManagerClusterRealizedState#GlobalManagerClusterRealizedState_CLUSTER_STATUS_UNAVAILABLE - // - // Status of the appliance cluster for this global manager - ClusterStatus *string - // Virtual IP of the cluster, if any. format: ip - Vip *string -} -const GlobalManagerClusterRealizedState_CLUSTER_STATUS_STABLE = "STABLE" -const GlobalManagerClusterRealizedState_CLUSTER_STATUS_DEGRADED = "DEGRADED" -const GlobalManagerClusterRealizedState_CLUSTER_STATUS_UNSTABLE = "UNSTABLE" -const GlobalManagerClusterRealizedState_CLUSTER_STATUS_UNAVAILABLE = "UNAVAILABLE" - -// Global Manager deployment state provides the details about deployed NSX virtual appliances, cluster information and the state. -type GlobalManagerDeploymentState struct { - // NSX cluster node information. - ClusterNodes []SiteNodeInfo - // Deployment name - Global Manager or Site Name. - Name *string - // Site UUID. - SiteId *string - // NSX version details. - Version *string - // Virtual IP for the Site. - Vip *string - // Global Manager service cluster id. - ClusterId *string - // Status can be - NO_CONTROLLERS, UNSTABLE, DEGRADED, STABLE, UNKNOWN. - ClusterStatus *string - // Global Manager mode - ACTIVE or STANDBY. - Mode *string -} - -// Paged collection of GlobalManagerDeploymentStates -type GlobalManagerDeploymentStateListResult struct { +// This configuration is distributed to all Sites participating in federation. +type GlobalManagerConfig struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource Schema *string // Link to this resource Self *SelfResourceLink - // Opaque cursor to be used for getting next page of records (supplied by current result page) - Cursor *string - // Count of results found (across all pages), set only on first page format: int64 - ResultCount *int64 - // If true, results are sorted in ascending order - SortAscending *bool - // Field by which records are sorted - SortBy *string - // GlobalManagerDeploymentState list results - Results []GlobalManagerDeploymentState + // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 + Revision *int64 + // Timestamp of resource creation format: int64 + CreateTime *int64 + // ID of the user who created this resource + CreateUser *string + // Timestamp of last modification format: int64 + LastModifiedTime *int64 + // ID of the user who last modified this resource + LastModifiedUser *string + // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. + Protection *string + // Indicates system owned resource + SystemOwned *bool + // Description of this resource + Description *string + // Defaults to ID if not set + DisplayName *string + // Unique identifier of this resource + Id *string + // The type of this resource. + ResourceType *string + // Opaque identifiers meaningful to the API user + Tags []Tag + // Path of its parent + ParentPath *string + // Absolute path of this object + Path *string + // Path relative from its parent + RelativePath *string + // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. + UniqueId *string + // subtree for this type within policy tree containing nested elements. + Children []*data.StructValue + // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. + MarkedForDelete *bool + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. + Overridden *bool + // Global Manager federation RTEP configuration. This configuration is distributed to all Sites participating in federation. + RtepConfig *GmRtepConfig } // Paged Collection of Global Managers. @@ -14739,14 +14613,6 @@ type GlobalManagerListResult struct { Results []GlobalManager } -// Information about one node in a Global Manager cluster. -type GlobalManagerNodeRealizedState struct { - // Hostname of the cluster node. - Hostname *string - // Management IP address of the cluster node. format: ip - IpAddress *string -} - // Overall restore process status type GlobalRestoreStatus struct { // A description of the restore status @@ -14780,6 +14646,12 @@ type GmFederationSiteConfig struct { TransitSubnet *string } +// Global Manager federation RTEP configuration. This configuration is distributed to all Sites participating in federation. +type GmRtepConfig struct { + // Password to authenticate IBGP session between remote tunnel endpoints created on federated sites. This is applied to inter-site underlay IBGP neighbors created over remote tunnel endpoints on all sites. Empty string (\"\") clears existing password. + IbgpPassword *string +} + // Represents configuration of a graph widget type GraphConfiguration struct { // Axes of a graph @@ -14859,6 +14731,8 @@ type GraphConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -14875,7 +14749,7 @@ type GraphDefinition struct { // Describes the graph. It labels the entities of graph. If the label is not provided then it is not shown for a graph. For example, for a single graph, the title of widget can describe the graph and a label may not be necessary to be shown. Label *Label // Defines the points of a graph. - PointDefinition PointDefinition + PointDefinition *PointDefinition // Additional rendering or conditional evaluation of the field values to be performed, if any. RenderConfiguration []RenderConfiguration } @@ -14888,8 +14762,6 @@ type GridConfiguration struct { PageSize *int64 // Rows of grid or table are formed from the list of objects returned by a row list field. RowListFields []RowListField - // Represents the horizontal span of the Grid. format: int32 - Span *int64 // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -14951,6 +14823,8 @@ type GridConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -15003,7 +14877,7 @@ type Group struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The expression list must follow below criteria: 1. A non-empty expression list, must be of odd size. In a list, with indices starting from 0, all non-conjunction expressions must be at even indices, separated by a conjunction expression at odd indices. 2. The total of ConditionExpression and NestedExpression in a list should not exceed 5. 3. The total of IPAddressExpression, MACAddressExpression, external IDs in an ExternalIDExpression and paths in a PathExpression must not exceed 500. 4. Each expression must be a valid Expression. See the definition of the Expression type for more information. Expression []*data.StructValue @@ -15068,10 +14942,10 @@ type GroupDiscoveryProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Profile - ProfilePath string + ProfilePath *string // Sequence number used to resolve conflicts betweeen two profiles applied on the same group. Lower sequence number takes higher precedence. Two binding maps applied to the same profile must have the same sequence number. User defined sequence numbers range from 1 through 100,000. System defined sequence numbers range from 100,001 through 200,000. format: int64 SequenceNumber *int64 } @@ -15113,7 +14987,7 @@ type GroupMemberList struct { // Collection of tags used in a policy group for a particular member type type GroupMemberTagsList struct { // Member type for which we will list the tags - MemberType string + MemberType *string // List of tags for the member type Tags []string } @@ -15192,7 +15066,7 @@ type GroupMonitoringProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated IPFIX DFW Profile IpfixDfwProfilePath *string @@ -15305,7 +15179,7 @@ type HttpPolicyLbMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Only if a healthcheck fails consecutively for a specified number of times, given with fall_count, to a member will the member status be marked DOWN. format: int64 FallCount *int64 @@ -15375,18 +15249,18 @@ type HttpPolicyLbVirtualServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If access log is enabled, all HTTP requests sent to an L7 virtual server are logged to the access log file. Both successful requests (backend server returns 2xx) and unsuccessful requests (backend server returns 4xx or 5xx) are logged to access log, if enabled. AccessLogEnabled *bool // Configures the IP address of the PolicyLbVirtualServer where it receives all client connections and distributes them among the backend servers. format: ip - IpAddress string + IpAddress *string // Path to optional object that enables persistence on a virtual server allowing related client connections to be sent to the same backend server. Persistence is disabled by default. LbPersistenceProfile *string // Ports contains a list of at least one port or port range such as \"80\", \"1234-1236\". Each port element in the list should be a single port or a single port range. format: port-or-range Ports []string // Path to router type object that PolicyLbVirtualServer connects to. The only supported router object is Network. - RouterPath string + RouterPath *string TrafficSource *string } // Identifier denoting this class, when it is used in polymorphic context. @@ -15446,7 +15320,7 @@ type HttpsPolicyLbMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Only if a healthcheck fails consecutively for a specified number of times, given with fall_count, to a member will the member status be marked DOWN. format: int64 FallCount *int64 @@ -15473,7 +15347,7 @@ type HttpsPolicyLbVirtualServer struct { // Security settings representing various security settings when the VirtualServer acts as an SSL server - BASE_SECURE_111317 - MODERATE_SECURE_111317 - HIGH_SECURE_111317 ClientSslSettings *string // The setting is used when load balancer acts as an SSL server and terminating the client SSL connection. A default certificate should be specified which will be used if the server does not host multiple hostnames on the same IP address or if the client does not support SNI extension. - DefaultClientSslCertificateId string + DefaultClientSslCertificateId *string // Backend web servers typically log each request they handle along with the requesting client IP address. These logs are used for debugging, analytics and other such purposes. If the deployment topology requires enabling SNAT on the load balancer, then server will see the client as the SNAT IP which defeats the purpose of logging. To work around this issue, load balancer can be configured to insert XFF HTTP header with the original client IP address. Backend servers can then be configured to log the IP address in XFF header instead of the source IP address of the connection. If XFF header is not present in the incoming request, load balancer inserts a new XFF header with the client IP address. InsertClientIpHeader *bool // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -15524,18 +15398,18 @@ type HttpsPolicyLbVirtualServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If access log is enabled, all HTTP requests sent to an L7 virtual server are logged to the access log file. Both successful requests (backend server returns 2xx) and unsuccessful requests (backend server returns 4xx or 5xx) are logged to access log, if enabled. AccessLogEnabled *bool // Configures the IP address of the PolicyLbVirtualServer where it receives all client connections and distributes them among the backend servers. format: ip - IpAddress string + IpAddress *string // Path to optional object that enables persistence on a virtual server allowing related client connections to be sent to the same backend server. Persistence is disabled by default. LbPersistenceProfile *string // Ports contains a list of at least one port or port range such as \"80\", \"1234-1236\". Each port element in the list should be a single port or a single port range. format: port-or-range Ports []string // Path to router type object that PolicyLbVirtualServer connects to. The only supported router object is Network. - RouterPath string + RouterPath *string TrafficSource *string } const HttpsPolicyLbVirtualServer_CLIENT_SSL_SETTINGS_BASE_SECURE_111317 = "BASE_SECURE_111317" @@ -15552,7 +15426,7 @@ type ICMPTypeServiceEntry struct { // // * ICMPTypeServiceEntry#ICMPTypeServiceEntry_PROTOCOL_ICMPV4 // * ICMPTypeServiceEntry#ICMPTypeServiceEntry_PROTOCOL_ICMPV6 - Protocol string + Protocol *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -15603,7 +15477,7 @@ type ICMPTypeServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -15665,7 +15539,7 @@ type IGMPTypeServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -15673,7 +15547,7 @@ type IGMPTypeServiceEntry struct { // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. const IGMPTypeServiceEntry__TYPE_IDENTIFIER = "IGMPTypeServiceEntry" -// Represents IP address expressions in the form of an array, to support addition of IP addresses in a group. +// Represents IP address expressions in the form of an array, to support addition of IP addresses in a group. Avoid creating groups with multiple IPAddressExpression. In future releases, group will be restricted to contain a single IPAddressExpression. To group IPAddresses, use nested groups instead of multiple IPAddressExpressions. type IPAddressExpression struct { // This array can consist of a single IP address, IP address range or a subnet. Its type can be of either IPv4 or IPv6. Both IPv4 and IPv6 addresses within one expression is not allowed. Supported list of formats are, \"192.168.1.1\", \"192.168.1.1-192.168.1.100\", \"192.168.0.0/24\", \"fe80::250:56ff:fe83:318c\", \"fe80::250:56ff:fe83:3181-fe80::250:56ff:fe83:318c\", \"fe80::250:56ff:fe83:318c/64\". format: address-or-block-or-range IpAddresses []string @@ -15728,7 +15602,7 @@ type IPAddressExpression struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -15745,7 +15619,7 @@ type IPAddressList struct { // IP Address and Port information type IPAddressPortPair struct { // The IPAddress to be combined with Port for defining specific access point. format: ip - IpAddress string + IpAddress *string // The port to be combined with IPAddress for defining a specific access point. format: int32 Port *int64 } @@ -15794,7 +15668,7 @@ type IPDiscoveryProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // This property controls the ARP and ND cache timeout period. It is recommended that this property be greater than the ARP/ND cache timeout on the VM. format: int32 ArpNdBindingTimeout *int64 @@ -15872,12 +15746,12 @@ type IPFIXCollectorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IP address for the IPFIX collector. format: ip - Ipaddress string + Ipaddress *string // Port for the IPFIX collector. format: int32 - Port int64 + Port *int64 } // Paged collection of IPFIX collector profiles. @@ -15944,12 +15818,12 @@ type IPFIXDFWCollector struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IP address for the IPFIX DFW collector. IP addresses such as 0.0.0.0, 127.0.0.1, 255.255.255.255 are invalid. format: ip - CollectorIpAddress string + CollectorIpAddress *string // Port for the IPFIX DFW collector. format: int32 - CollectorPort int64 + CollectorPort *int64 } // IPFIX data for the NSX distributed firewall will be sent to the specified IPFIX collectors. @@ -15996,7 +15870,7 @@ type IPFIXDFWCollectorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // It accepts Multiple Collectors. IpfixDfwCollectors []IPFIXDFWCollector @@ -16066,12 +15940,12 @@ type IPFIXDFWProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // For long standing active flows, IPFIX records will be sent per timeout period in minutes. format: int32 - ActiveFlowExportTimeout int64 + ActiveFlowExportTimeout *int64 // Policy path for IPFIX collector profiles. IPFIX data from these logical segments will be sent to all specified IPFIX collectors. - IpfixDfwCollectorProfilePath string + IpfixDfwCollectorProfilePath *string // An identifier that is unique to the exporting process and used to meter the flows. format: int32 ObservationDomainId *int64 // This priority field is used to resolve conflicts in Segment Ports which are covered by more than one IPFIX profiles. The IPFIX exporter will send records to Collectors in highest priority profile (lowest number) only. format: int32 @@ -16142,10 +16016,10 @@ type IPFIXL2Collector struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IP address for the IPFIX L2 collector. IP addresses such as 0.0.0.0, 127.0.0.1, 255.255.255.255 are invalid. format: ip - CollectorIpAddress string + CollectorIpAddress *string // Port number for the IPFIX L2 collector. format: int32 CollectorPort *int64 } @@ -16194,7 +16068,7 @@ type IPFIXL2CollectorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // It accepts Multiple Collector objects. IpfixL2Collectors []IPFIXL2Collector @@ -16264,7 +16138,7 @@ type IPFIXL2Profile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The time in seconds after a flow is expired even if more packets matching this flow are received by the cache. format: int32 ActiveTimeout *int64 @@ -16273,13 +16147,13 @@ type IPFIXL2Profile struct { // The time in seconds after a flow is expired if no more packets matching this flow are received by the cache. format: int32 IdleTimeout *int64 // Policy path for IPFIX collector profile. User can specify only one IPFIX collector. - IpfixCollectorProfilePath string + IpfixCollectorProfilePath *string // The maximum number of flow entries in each exporter flow cache. format: int64 MaxFlows *int64 // An identifier that is unique to the exporting process and used to meter the flows. format: int64 ObservationDomainId *int64 // The probability in percentage that a packet is sampled, in range 0-100. The probability is equal for every packet. - PacketSampleProbability float64 + PacketSampleProbability *float64 // This priority field is used to resolve conflicts in Segment Ports which are covered by more than one IPFIX profiles. The IPFIX exporter will send records to Collectors in highest priority profile (lowest number) only. format: int32 Priority *int64 } @@ -16348,12 +16222,12 @@ type IPFIXSwitchCollectionInstance struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The time in seconds after a flow is expired even if more packets matching this flow are received by the cache. format: int32 - ActiveTimeout int64 + ActiveTimeout *int64 // The time in seconds after a Flow is expired if no more packets matching this Flow are received by the cache. format: int32 - IdleTimeout int64 + IdleTimeout *int64 // Policy path for IPFIX collector profiles. IPFIX data from these logical segments will be sent to all specified IPFIX collectors. IpfixCollectorProfilePaths []string // The maximum number of flow entries in each exporter flow cache. format: int64 @@ -16361,7 +16235,7 @@ type IPFIXSwitchCollectionInstance struct { // An identifier that is unique to the exporting process and used to meter the Flows. format: int32 ObservationDomainId *int64 // The probability in percentage that a packet is sampled, in range 0-100. The probability is equal for every packet. - PacketSampleProbability float64 + PacketSampleProbability *float64 // Policy path for source tier-1 segment. IPFIX data from these logical segments will be sent IPFIX collector. SourceLogicalSegmentPaths []string } @@ -16390,12 +16264,12 @@ type IPInfo struct { // IPv4 Addresses format: ipv4 IpAddresses []string // Subnet Prefix Length format: int64 - PrefixLength int64 + PrefixLength *int64 } // A ServiceEntry that represents an IP protocol type IPProtocolServiceEntry struct { - ProtocolNumber int64 + ProtocolNumber *int64 // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -16446,7 +16320,7 @@ type IPProtocolServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -16498,7 +16372,7 @@ type IPSecVpnDpdProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // DPD probe interval defines an interval for DPD probes (in seconds). - When the DPD probe mode is periodic, this interval is the number of seconds between DPD messages. - When the DPD probe mode is on-demand, this interval is the number of seconds during which traffic is not received from the peer before DPD retry messages are sent if there is IPSec traffic to send. For PERIODIC Mode: Minimum: 3 Maximum: 360 Default: 60 For ON_DEMAND Mode: Minimum: 1 Maximum: 10 Default: 3 format: int64 DpdProbeInterval *int64 @@ -16581,7 +16455,7 @@ type IPSecVpnIkeProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -16742,12 +16616,12 @@ type IPSecVpnLocalEndpoint struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Policy path referencing site certificate. CertificatePath *string // IPV4 Address of local endpoint. format: ipv4 - LocalAddress string + LocalAddress *string // Local identifier. LocalId *string // List of policy paths referencing certificate authority (CA) to verify peer certificates. @@ -16830,7 +16704,7 @@ type IPSecVpnRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -16897,7 +16771,7 @@ type IPSecVpnService struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Bypass policy rules are configured using VPN service. Bypass rules always have higher priority over protect rules and they affect all policy based vpn sessions associated with the IPSec VPN service. Protect rules are defined per policy based vpn session. BypassRules []IPSecVpnRule @@ -16991,7 +16865,7 @@ type IPSecVpnSession struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -17027,11 +16901,11 @@ type IPSecVpnSession struct { // Policy path referencing IKE profile to be used. Default is set according to system default profile. IkeProfilePath *string // Policy path referencing Local endpoint. - LocalEndpointPath string + LocalEndpointPath *string // Public IPV4 address of the remote device terminating the VPN connection. - PeerAddress string + PeerAddress *string // Peer ID to uniquely identify the peer site. The peer ID is the public IP address of the remote device terminating the VPN tunnel. When NAT is configured for the peer, enter the private IP address of the peer. - PeerId string + PeerId *string // IPSec Pre-shared key. Maximum length of this field is 128 characters. Psk *string // TCP Maximum Segment Size Clamping Direction and Value. @@ -17208,7 +17082,7 @@ const IPSecVpnSessionStatusPerEP_RESOURCE_TYPE_IPSECVPNSESSIONSTATUSNSXT = "IPSe // Used to specify the local/peer subnets in IPSec VPN rule. type IPSecVpnSubnet struct { // Subnet used in policy rule. format: ipv4-cidr-block - Subnet string + Subnet *string } // Traffic counters for IPSec VPN session. @@ -17287,7 +17161,7 @@ type IPSecVpnTunnelInterface struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IP Tunnel interface (commonly referred as VTI) subnet. IpSubnets []TunnelInterfaceIPSubnet @@ -17337,7 +17211,7 @@ type IPSecVpnTunnelProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -17594,7 +17468,7 @@ type IcmpPolicyLbMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Only if a healthcheck fails consecutively for a specified number of times, given with fall_count, to a member will the member status be marked DOWN. format: int64 FallCount *int64 @@ -17731,7 +17605,7 @@ type IdentityGroupExpression struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -17742,9 +17616,9 @@ const IdentityGroupExpression__TYPE_IDENTIFIER = "IdentityGroupExpression" // Identity (Directory) group type IdentityGroupInfo struct { // Each LDAP object is uniquely identified by its distinguished name (DN). A DN is a sequence of relative distinguished names (RDN) connected by commas. e.g. CN=Larry Cole,CN=admin,DC=corp,DC=acme,DC=com. A valid fully qualified distinguished name should be provided to include specific groups else the create / update realization of the Group containing an invalid/ partial DN will fail. This value is valid only if it matches to exactly 1 LDAP object on the LDAP server. - DistinguishedName string + DistinguishedName *string // This is the base distinguished name for the domain where this particular group resides. (e.g. dc=example,dc=com) Each active directory domain has a domain naming context (NC), which contains domain-specific data. The root of this naming context is represented by a domain's distinguished name (DN) and is typically referred to as the NC head. - DomainBaseDistinguishedName string + DomainBaseDistinguishedName *string // A security identifier (SID) is a unique value of variable length used to identify a trustee. A SID consists of the following components: The revision level of the SID structure; A 48-bit identifier authority value that identifies the authority that issued the SID; A variable number of subauthority or relative identifier (RID) values that uniquely identify the trustee relative to the authority that issued the SID. This field is only populated for Microsoft Active Directory identity store. Sid *string } @@ -17760,7 +17634,7 @@ type IdentitySourceLdapServer struct { // A password used when authenticating to the directory. Password *string // The URL for the LDAP server. Supported URL schemes are LDAP and LDAPS. Either a hostname or an IP address may be given, and the port number is optional and defaults to 389 for the LDAP scheme and 636 for the LDAPS scheme. - Url string + Url *string // If set to true, Use the StartTLS extended operation to upgrade the connection to TLS before sending any sensitive information. The LDAP server must support the StartTLS extended operation in order for this protocol to operate correctly. This option is ignored if the URL scheme is LDAPS. UseStarttls *bool } @@ -17768,7 +17642,7 @@ type IdentitySourceLdapServer struct { // Information about a single LDAP server endpoint. type IdentitySourceLdapServerEndpoint struct { // The URL for the LDAP server. Supported URL schemes are LDAP and LDAPS. Either a hostname or an IP address may be given, and the port number is optional and defaults to 389 for the LDAP scheme and 636 for the LDAPS scheme. - Url string + Url *string // If set to true, Use the StartTLS extended operation to upgrade the connection to TLS before sending any sensitive information. The LDAP server must support the StartTLS extended operation in order for this protocol to operate correctly. This option is ignored if the URL scheme is LDAPS. UseStarttls *bool } @@ -17834,12 +17708,12 @@ type IdsClusterConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Contains policy resource reference object - Cluster PolicyResourceReference + Cluster *PolicyResourceReference // If set to true, IDS is enabled on the respective cluster - IdsEnabled bool + IdsEnabled *bool } // Paged collection of IDS cluster configuration @@ -17906,7 +17780,7 @@ type IdsProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Represents the severities of signatures which are part of this profile. Severities []IdsProfileSeverity @@ -17976,7 +17850,7 @@ type IdsProfileSeverity struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Contains the id of signatures that will be ignored as part of the profile. IgnoreSignatures []string @@ -17988,7 +17862,7 @@ type IdsProfileSeverity struct { // * IdsProfileSeverity#IdsProfileSeverity_SEVERITY_LOW // // Represents the severity of a profile. - Severity string + Severity *string } const IdsProfileSeverity_SEVERITY_CRITICAL = "CRITICAL" const IdsProfileSeverity_SEVERITY_HIGH = "HIGH" @@ -18039,7 +17913,7 @@ type IdsRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // We need paths as duplicate names may exist for groups under different domains. Along with paths we support IP Address of type IPv4 and IPv6. IP Address can be in one of the format(CIDR, IP Address, Range of IP Address). In order to specify all groups, use the constant \"ANY\". This is case insensitive. If \"ANY\" is used, it should be the ONLY element in the group array. Error will be thrown if ANY is used in conjunction with other values. DestinationGroups []string @@ -18168,7 +18042,7 @@ type IdsSecurityPolicy struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // - Distributed Firewall - Policy framework provides five pre-defined categories for classifying a security policy. They are \"Ethernet\",\"Emergency\", \"Infrastructure\" \"Environment\" and \"Application\". There is a pre-determined order in which the policy framework manages the priority of these security policies. Ethernet category is for supporting layer 2 firewall rules. The other four categories are applicable for layer 3 rules. Amongst them, the Emergency category has the highest priority followed by Infrastructure, Environment and then Application rules. Administrator can choose to categorize a security policy into the above categories or can choose to leave it empty. If empty it will have the least precedence w.r.t the above four categories. - Edge Firewall - Policy Framework for Edge Firewall provides six pre-defined categories \"Emergency\", \"SystemRules\", \"SharedPreRules\", \"LocalGatewayRules\", \"AutoServiceRules\" and \"Default\", in order of priority of rules. All categories are allowed for Gatetway Policies that belong to 'default' Domain. However, for user created domains, category is restricted to \"SharedPreRules\" or \"LocalGatewayRules\" only. Also, the users can add/modify/delete rules from only the \"SharedPreRules\" and \"LocalGatewayRules\" categories. If user doesn't specify the category then defaulted to \"Rules\". System generated category is used by NSX created rules, for example BFD rules. Autoplumbed category used by NSX verticals to autoplumb data path rules. Finally, \"Default\" category is the placeholder default rules with lowest in the order of priority. Category *string @@ -18264,7 +18138,7 @@ type IdsSettings struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Parameter to let the user decide whether to update the IDS Signatures automatically or not. AutoUpdate *bool @@ -18316,7 +18190,7 @@ type IdsSignature struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Target of the signature. AttackTarget *string @@ -18419,7 +18293,7 @@ type IdsSignatureStatus struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -18491,7 +18365,7 @@ type IdsSignatureVersion struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Represents the version's change log. ChangeLog *string @@ -18585,10 +18459,10 @@ type IdsStandaloneHostConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If set to true, IDS is enabled on standalone hosts. - IdsEnabled bool + IdsEnabled *bool } // IGMP (Internet Group Management Protocol) membership details. @@ -18624,10 +18498,10 @@ type IgmpMembershipCsvRecord struct { Uptime *string } -// Igmp Memberships. +// IGMP Memberships. type IgmpMemberships struct { // Policy path to Tier0 gateway. - GatewayPath string + GatewayPath *string IgmpMembershipsPerEdge []IgmpMembershipsPerEdge } @@ -18637,10 +18511,10 @@ type IgmpMembershipsInCsvFormat struct { Results []IgmpMembershipCsvRecord } -// Igmp Memberships Per Edge. +// IGMP Memberships Per Edge. type IgmpMembershipsPerEdge struct { // Policy path to edge node. - EdgePath string + EdgePath *string IgmpMemberships []IgmpMembership } @@ -18694,7 +18568,7 @@ type Infra struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -18723,7 +18597,7 @@ type IngressBroadcastRateLimiter struct { BurstSize *int64 // Peak bandwidth in kb/s format: int32 PeakBandwidth *int64 - Enabled bool + Enabled *bool // Possible values are: // // * QosBaseRateLimiter#QosBaseRateLimiter_RESOURCE_TYPE_INGRESSRATELIMITER @@ -18746,7 +18620,7 @@ type IngressRateLimiter struct { BurstSize *int64 // The peak bandwidth rate is used to support burst traffic. format: int32 PeakBandwidth *int64 - Enabled bool + Enabled *bool // Possible values are: // // * QosBaseRateLimiter#QosBaseRateLimiter_RESOURCE_TYPE_INGRESSRATELIMITER @@ -18773,7 +18647,7 @@ type InitiateClusterRestoreRequest struct { // Injection holding a key and a corresponding value. type Injection struct { // Injection key. - Key string + Key *string // Injection value. Value *data.StructValue } @@ -18820,21 +18694,23 @@ type InstructionInfo struct { // Request parameters that represents a an intent path. type IntentRuntimeRequestParameters struct { // Policy Path referencing an intent object. - IntentPath string + IntentPath *string + // Policy Path referencing a site. This is applicable only on a GlobalManager. If no site_path is specified, then based on the span of the intent the response will be fetched from the respective sites + SitePath *string } type InterfaceArpCsvRecord struct { // The IP address format: ip - Ip string + Ip *string // The MAC address - MacAddress string + MacAddress *string } type InterfaceArpEntry struct { // The IP address format: ip - Ip string + Ip *string // The MAC address - MacAddress string + MacAddress *string } type InterfaceArpTable struct { @@ -18857,7 +18733,7 @@ type InterfaceArpTable struct { // String Path of the enforcement point. EnforcementPointPath *string // The ID of the logical router port - InterfacePath string + InterfacePath *string // Timestamp when the data was last updated; unset if data source has never updated the data. format: int64 LastUpdateTimestamp *int64 Results []InterfaceArpEntry @@ -18907,7 +18783,7 @@ type InterfaceSubnet struct { // IP addresses assigned to interface format: ip IpAddresses []string // Subnet prefix length format: int32 - PrefixLen int64 + PrefixLen *int64 } // Intersite gateway configuration. @@ -18983,7 +18859,7 @@ type IpAddressAllocation struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Address that is allocated from pool format: ip AllocationIp *string @@ -19053,10 +18929,10 @@ type IpAddressBlock struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Represents a network address and the prefix length which will be associated with a layer-2 broadcast domain. Support IPv4 and IPv6 CIDR. format: ip-cidr-block - Cidr string + Cidr *string } // Paged collection of IpAddressBlocks @@ -19136,7 +19012,7 @@ type IpAddressPool struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Delay in milliseconds, while releasing allocated IP address from IP pool (Default is 2 mins). format: int64 IpReleaseDelay *int64 @@ -19147,9 +19023,9 @@ type IpAddressPoolBlockSubnet struct { // If this property is set to true, the first IP in the range will be reserved for gateway. AutoAssignGateway *bool // The path of the IpAddressBlock from which the subnet is to be created. - IpBlockPath string + IpBlockPath *string // The size parameter is required for subnet creation. It must be specified during creation but cannot be changed later. format: int64 - Size int64 + Size *int64 // For internal system use Only. Represents start ip address of the subnet from IP block. Subnet ip adddress will start from this ip address. format: ip StartIp *string // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -19199,7 +19075,7 @@ type IpAddressPoolBlockSubnet struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -19232,7 +19108,7 @@ type IpAddressPoolStaticSubnet struct { // A collection of IPv4 or IPv6 IP Pool Ranges. AllocationRanges []IpPoolRange // Subnet representation is a network address and prefix length - Cidr string + Cidr *string // The collection of upto 3 DNS servers for the subnet. format: ip DnsNameservers []string // The DNS suffix for the DNS server. format: hostname @@ -19286,7 +19162,7 @@ type IpAddressPoolStaticSubnet struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -19343,7 +19219,7 @@ type IpAddressPoolSubnet struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -19381,9 +19257,9 @@ type IpPoolRange struct { // Link to this resource Self *SelfResourceLink // The end IP Address of the IP Range. format: ip - End string + End *string // The start IP Address of the IP Range. format: ip - Start string + Start *string } // IPSec VPN policy traffic statistics @@ -19508,7 +19384,7 @@ type Ipv6DadProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -19598,12 +19474,12 @@ type Ipv6NdraProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // DNS Configurations DnsConfig *RaDNSConfig // RA Configuration - RaConfig RAConfig + RaConfig *RAConfig // Possible values are: // // * Ipv6NdraProfile#Ipv6NdraProfile_RA_MODE_DISABLED @@ -19613,7 +19489,7 @@ type Ipv6NdraProfile struct { // * Ipv6NdraProfile#Ipv6NdraProfile_RA_MODE_SLAAC_AND_ADDRESS_DNS_THROUGH_DHCP // // RA Mode - RaMode string + RaMode *string // Neighbour reachable time duration in milliseconds. A value of 0 means unspecified. format: int64 ReachableTimer *int64 // The time, in milliseconds, between retransmitted neighbour solicitation messages. A value of 0 means unspecified. format: int64 @@ -19647,9 +19523,9 @@ type Ipv6NdraProfileListResult struct { // An arbitrary key-value pair type KeyValuePair struct { // Key - Key string + Key *string // Value - Value string + Value *string } // Used to configure L2 Bridge endpoint profile @@ -19696,7 +19572,7 @@ type L2BridgeEndpointProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // List of policy paths to edge nodes. Edge allocation for L2 bridging. EdgePaths []string @@ -19794,7 +19670,7 @@ type L2VPNService struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // This property applies only in SERVER mode. If set to true, traffic from any client will be replicated to all other clients. If set to false, traffic received from clients is only replicated to the local VPN endpoint. EnableHub *bool @@ -19875,7 +19751,7 @@ type L2VPNSession struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Enable to extend all the associated segments. Enabled *bool @@ -20040,9 +19916,9 @@ const L2VPNSessionStatusPerEP_RESOURCE_TYPE_L2VPNSESSIONSTATUSNSXT = "L2VPNSessi // L2VPN Session Transport Tunnel Data uses a peer code which has all the information to create the transport tunnel. type L2VPNSessionTransportTunnelData struct { // IPv4 Address of local endpoint. format: ipv4 - LocalAddress string + LocalAddress *string // IPv4 Address of Peer endpoint on remote site. format: ipv4 - PeerAddress string + PeerAddress *string // Peer code represents a base64 encoded string which has all the configuration for tunnel. E.g local/peer ips and protocol, encryption algorithm, etc. Peer code also contains PSK; be careful when sharing or storing it. PeerCode *string } @@ -20171,7 +20047,7 @@ type L2Vpn struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Enable to extend all the associated segments. Enabled *bool @@ -20223,7 +20099,7 @@ type L2VpnContext struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If enabled, the tier-0 acts as a Hub and replicates traffic received from peer to all other peers. If disabled, the tier-0 acts as a Spoke and replicates only the local. EnableHub *bool @@ -20311,7 +20187,7 @@ type L2VpnSessionRemoteMacForSegment struct { // Remote Mac addresses. RemoteMacAddresses []string // Intent path of the segment. - SegmentPath string + SegmentPath *string } // Remote Macs of L2Vpn Session on NsxT. @@ -20403,9 +20279,9 @@ type L2VpnTapTrafficStatistics struct { // L2Vpn transport tunnel peer code. type L2VpnTransportTunnelPeerCode struct { // Copy this code to paste on the remote end of the tunnel. This is a base64 encoded string which has all the configuration for tunnel. E.g local/remote ips and protocol, encryption algorithm, etc. Peer code also contains PSK; be careful when sharing or storing it. - PeerCode string + PeerCode *string // Policy path referencing the transport tunnel. - TransportTunnelPath string + TransportTunnelPath *string } // Contains information necessary to configure IPSec VPN. @@ -20452,7 +20328,7 @@ type L3Vpn struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -20496,13 +20372,13 @@ type L3Vpn struct { // L3Vpn Session L3vpnSession *data.StructValue // IPv4 address of local gateway format: ipv4 - LocalAddress string + LocalAddress *string // List of IPSec pre-shared keys used for IPSec authentication. If not specified, the older passphrase values are retained if there are any. Passphrases []string // This field is used to resolve conflicts in case of a remote site being behind NAT as remote public ip address is not enough. If it is not the case the remote public address should be provided here. If not provided, the value of this field is set to remote_public_address. RemotePrivateAddress *string // Public IPv4 address of remote gateway format: ipv4 - RemotePublicAddress string + RemotePublicAddress *string // Possible values are: // // * L3Vpn#L3Vpn_TUNNEL_DIGEST_ALGORITHMS_SHA1 @@ -20588,7 +20464,7 @@ type L3VpnContext struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Local gateway IPv4 addresses available for configuration of each L3Vpn. AvailableLocalAddresses []PolicyIPAddressInfo @@ -20685,7 +20561,7 @@ type L3VpnRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -20739,7 +20615,7 @@ const L3VpnStatisticsPerEnforcementPoint_RESOURCE_TYPE_IPSECVPNSESSIONSTATISTICS // Used to specify subnets in L3Vpn rule. type L3VpnSubnet struct { // Subnet used in L3Vpn Rule. format: ipv4-cidr-block - Subnet string + Subnet *string } // Some applications maintain state and require all relevant connections to be sent to the same server as the application state is not synchronized among servers. Persistence is enabled on a PolicyLbVirtualServer by binding a persistence profile to it. @@ -20796,7 +20672,7 @@ type L4PolicyLbPersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -20812,7 +20688,7 @@ type L4PortSetServiceEntry struct { // // * L4PortSetServiceEntry#L4PortSetServiceEntry_L4PROTOCOL_TCP // * L4PortSetServiceEntry#L4PortSetServiceEntry_L4PROTOCOL_UDP - L4Protocol string + L4Protocol *string SourcePorts []string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -20864,7 +20740,7 @@ type L4PortSetServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -20928,7 +20804,7 @@ type L7PolicyLbPersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -20945,11 +20821,11 @@ type LBAccessListControl struct { // * LBAccessListControl#LBAccessListControl_ACTION_DROP // // ALLOW means connections matching grouping object IP list are allowed and requests not matching grouping object IP list are dropped. DROP means connections matching grouping object IP list are dropped and requests not matching grouping object IP list are allowed. - Action string + Action *string // The enabled flag indicates whether to enable access list control option. It is false by default. Enabled *bool // The path of grouping object which defines the IP addresses or ranges to match the client IP. - GroupPath string + GroupPath *string } const LBAccessListControl_ACTION_ALLOW = "ALLOW" const LBAccessListControl_ACTION_DROP = "DROP" @@ -21017,7 +20893,7 @@ type LBActiveMonitor struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -21075,7 +20951,7 @@ type LBAppProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -21111,7 +20987,7 @@ type LBClientCertificateIssuerDnCondition struct { // If true, case is significant when comparing issuer DN value. CaseSensitive *bool // Value of issuer DN. - IssuerDn string + IssuerDn *string // Possible values are: // // * LBClientCertificateIssuerDnCondition#LBClientCertificateIssuerDnCondition_MATCH_TYPE_STARTS_WITH @@ -21144,7 +21020,7 @@ type LBClientCertificateSubjectDnCondition struct { // Match type of subject DN. MatchType *string // Value of subject DN. - SubjectDn string + SubjectDn *string } const LBClientCertificateSubjectDnCondition_MATCH_TYPE_STARTS_WITH = "STARTS_WITH" const LBClientCertificateSubjectDnCondition_MATCH_TYPE_ENDS_WITH = "ENDS_WITH" @@ -21196,7 +21072,7 @@ type LBClientSslProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -21321,7 +21197,7 @@ type LBClientSslProfileBinding struct { // A Certificate Revocation List (CRL) can be specified in the client-side SSL profile binding to disallow compromised client certificates. ClientAuthCrlPaths []string // A default certificate should be specified which will be used if the server does not host multiple hostnames on the same IP address or if the client does not support SNI extension. - DefaultCertificatePath string + DefaultCertificatePath *string // Client-side SSL profile binding allows multiple certificates, for different hostnames, to be bound to the same virtual server. SniCertificatePaths []string // Client SSL profile defines reusable, application-independent client side SSL properties. @@ -21446,7 +21322,7 @@ type LBCookiePersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Persistence shared setting indicates that all LBVirtualServers that consume this LBPersistenceProfile should share the same persistence mechanism when enabled. Meaning, persistence entries of a client accessing one virtual server will also affect the same client's connections to a different virtual server. For example, say there are two virtual servers vip-ip1:80 and vip-ip1:8080 bound to the same Group g1 consisting of two servers (s11:80 and s12:80). By default, each virtual server will have its own persistence table or cookie. So, in the earlier example, there will be two tables (vip-ip1:80, p1) and (vip-ip1:8080, p1) or cookies. So, if a client connects to vip1:80 and later connects to vip1:8080, the second connection may be sent to a different server than the first. When persistence_shared is enabled, then the second connection will always connect to the same server as the original connection. For COOKIE persistence type, the same cookie will be shared by multiple virtual servers. For SOURCE_IP persistence type, the persistence table will be shared across virtual servers. For GENERIC persistence type, the persistence table will be shared across virtual servers which consume the same persistence profile in LBRule actions. PersistenceShared *bool @@ -21529,7 +21405,7 @@ type LBEdgeNodeUsage struct { // The usage percentage of the edge node for load balancer. The value is the larger value between load balancer credit usage percentage and pool member usage percentage for the edge node. UsagePercentage *float64 // The property identifies the node path for load balancer node usage. For example, node_path=/infra/sites/default/enforcement-points/default /edge-clusters/85175e0b-4d74-461d-83e1-f3b785adef9c/edge-nodes /86e077c0-449f-11e9-87c8-02004eb37029. - NodePath string + NodePath *string // The property identifies the load balancer node usage type. ResourceType string } @@ -21602,7 +21478,7 @@ type LBFastTcpProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -21664,7 +21540,7 @@ type LBFastUdpProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -21726,7 +21602,7 @@ type LBGenericPersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Persistence shared setting indicates that all LBVirtualServers that consume this LBPersistenceProfile should share the same persistence mechanism when enabled. Meaning, persistence entries of a client accessing one virtual server will also affect the same client's connections to a different virtual server. For example, say there are two virtual servers vip-ip1:80 and vip-ip1:8080 bound to the same Group g1 consisting of two servers (s11:80 and s12:80). By default, each virtual server will have its own persistence table or cookie. So, in the earlier example, there will be two tables (vip-ip1:80, p1) and (vip-ip1:8080, p1) or cookies. So, if a client connects to vip1:80 and later connects to vip1:8080, the second connection may be sent to a different server than the first. When persistence_shared is enabled, then the second connection will always connect to the same server as the original connection. For COOKIE persistence type, the same cookie will be shared by multiple virtual servers. For SOURCE_IP persistence type, the persistence table will be shared across virtual servers. For GENERIC persistence type, the persistence table will be shared across virtual servers which consume the same persistence profile in LBRule actions. PersistenceShared *bool @@ -21827,7 +21703,7 @@ type LBHttpMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } const LBHttpMonitorProfile_REQUEST_METHOD_GET = "GET" @@ -21851,8 +21727,10 @@ type LBHttpProfile struct { Ntlm *bool // If it is not specified, it means that request body size is unlimited. format: int64 RequestBodySize *int64 - // A request with header larger than request_header_size will be processed as best effort whereas a request with header below this specified size is guaranteed to be processed. format: int64 + // A request with header equal to or below this size is guaranteed to be processed. A request with header larger than request_header_size will be processed up to 32K bytes on best effort basis. format: int64 RequestHeaderSize *int64 + // When buffering is disabled, the response is passed to a client synchronously, immediately as it is received. When buffering is enabled, LB receives a response from the backend server as soon as possible, saving it into the buffers. + ResponseBuffering *bool // A response with header larger than response_header_size will be dropped. format: int64 ResponseHeaderSize *int64 // If server doesn’t send any packet within this time, the connection is closed. format: int64 @@ -21912,7 +21790,7 @@ type LBHttpProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -21925,9 +21803,9 @@ const LBHttpProfile_XFORWARDED_FOR_REPLACE = "REPLACE" // This action is used to redirect HTTP request messages to a new URL. The reply_status value specified in this action is used as the status code of HTTP response message which is sent back to client (Normally a browser). The HTTP status code for redirection is 3xx, for example, 301, 302, 303, 307, etc. The redirect_url is the new URL that the HTTP request message is redirected to. Normally browser will send another HTTP request to the new URL after receiving a redirection response message. Captured variables and built-in variables can be used in redirect_url field. For example, to redirect all HTTP requests to HTTPS requests for a virtual server. We create an LBRule without any conditions, add an LBHttpRedirectAction to the rule. Set the redirect_url field of the LBHttpRedirectAction to: https://$_host$_request_uri And set redirect_status to \"302\", which means found. This rule will redirect all HTTP requests to HTTPS server port on the same host. type LBHttpRedirectAction struct { // HTTP response status code. - RedirectStatus string + RedirectStatus *string // The URL that the HTTP request is redirected to. - RedirectUrl string + RedirectUrl *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -21958,7 +21836,7 @@ type LBHttpRejectAction struct { // Response message. ReplyMessage *string // HTTP response status code. - ReplyStatus string + ReplyStatus *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -21987,7 +21865,7 @@ const LBHttpRejectAction__TYPE_IDENTIFIER = "LBHttpRejectAction" // This condition is used to match the message body of an HTTP request. Typically, only HTTP POST, PATCH, or PUT requests have request body. The match_type field defines how body_value field is used to match the body of HTTP requests. type LBHttpRequestBodyCondition struct { // HTTP request body - BodyValue string + BodyValue *string // If true, case is significant when comparing HTTP body value. CaseSensitive *bool // Possible values are: @@ -22036,9 +21914,9 @@ type LBHttpRequestCookieCondition struct { // If true, case is significant when comparing cookie value. CaseSensitive *bool // Cookie name. - CookieName string + CookieName *string // Cookie value. - CookieValue string + CookieValue *string // Possible values are: // // * LBHttpRequestCookieCondition#LBHttpRequestCookieCondition_MATCH_TYPE_STARTS_WITH @@ -22087,7 +21965,7 @@ type LBHttpRequestHeaderCondition struct { // Name of HTTP header HeaderName *string // Value of HTTP header - HeaderValue string + HeaderValue *string // Possible values are: // // * LBHttpRequestHeaderCondition#LBHttpRequestHeaderCondition_MATCH_TYPE_STARTS_WITH @@ -22132,7 +22010,7 @@ const LBHttpRequestHeaderCondition_MATCH_TYPE_REGEX = "REGEX" // This action is used to delete header fields of HTTP request messages at HTTP_REQUEST_REWRITE phase. One action can be used to delete all headers with same header name. To delete headers with different header names, multiple actions must be defined. type LBHttpRequestHeaderDeleteAction struct { // Name of a header field of HTTP request message. - HeaderName string + HeaderName *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -22161,9 +22039,9 @@ const LBHttpRequestHeaderDeleteAction__TYPE_IDENTIFIER = "LBHttpRequestHeaderDel // This action is used to rewrite header fields of matched HTTP request messages to specified new values. One action can be used to rewrite one header field. To rewrite multiple header fields, multiple actions must be defined. Captured variables and built-in variables can be used in the header_value field, header_name field does not support variables. type LBHttpRequestHeaderRewriteAction struct { // Name of HTTP request header. - HeaderName string + HeaderName *string // Value of HTTP request header. - HeaderValue string + HeaderValue *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -22200,7 +22078,7 @@ type LBHttpRequestMethodCondition struct { // * LBHttpRequestMethodCondition#LBHttpRequestMethodCondition_METHOD_PUT // // Type of HTTP request method - Method string + Method *string // A flag to indicate whether reverse the match result of this condition Inverse *bool // Possible values are: @@ -22247,7 +22125,7 @@ type LBHttpRequestUriArgumentsCondition struct { // Match type of URI arguments MatchType *string // URI arguments, aka query string of URI. - UriArguments string + UriArguments *string // A flag to indicate whether reverse the match result of this condition Inverse *bool // Possible values are: @@ -22294,7 +22172,7 @@ type LBHttpRequestUriCondition struct { // Match type of URI MatchType *string // A string used to identify resource - Uri string + Uri *string // A flag to indicate whether reverse the match result of this condition Inverse *bool // Possible values are: @@ -22329,7 +22207,7 @@ const LBHttpRequestUriCondition_MATCH_TYPE_REGEX = "REGEX" // This action is used to rewrite URIs in matched HTTP request messages. Specify the uri and uri_arguments fields in this condition to rewrite the matched HTTP request message's URI and URI arguments to the new values. Full URI scheme of HTTP messages have following syntax: scheme:[//[user[:password]\\\\@]host[:port]][/path][?query][#fragment] The uri field of this action is used to rewrite the /path part in above scheme. And the uri_arguments field is used to rewrite the query part. Captured variables and built-in variables can be used in the uri and uri_arguments fields. Check the example in LBRuleAction to see how to use variables in this action. type LBHttpRequestUriRewriteAction struct { // URI of HTTP request. - Uri string + Uri *string // Query string of URI, typically contains key value pairs, for example: foo1=bar1&foo2=bar2. UriArguments *string // Possible values are: @@ -22366,7 +22244,7 @@ type LBHttpRequestVersionCondition struct { // * LBHttpRequestVersionCondition#LBHttpRequestVersionCondition_VERSION_2_0 // // HTTP version - Version string + Version *string // A flag to indicate whether reverse the match result of this condition Inverse *bool // Possible values are: @@ -22401,9 +22279,9 @@ type LBHttpResponseHeaderCondition struct { // If true, case is significant when comparing HTTP header value. CaseSensitive *bool // Name of HTTP header field - HeaderName string + HeaderName *string // Value of HTTP header field - HeaderValue string + HeaderValue *string // Possible values are: // // * LBHttpResponseHeaderCondition#LBHttpResponseHeaderCondition_MATCH_TYPE_STARTS_WITH @@ -22448,7 +22326,7 @@ const LBHttpResponseHeaderCondition_MATCH_TYPE_REGEX = "REGEX" // This action is used to delete header fields of HTTP response messages at HTTP_RESPONSE_REWRITE phase. One action can be used to delete allgi headers with same header name. To delete headers with different header names, multiple actions must be defined. type LBHttpResponseHeaderDeleteAction struct { // Name of a header field of HTTP response message. - HeaderName string + HeaderName *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -22477,9 +22355,9 @@ const LBHttpResponseHeaderDeleteAction__TYPE_IDENTIFIER = "LBHttpResponseHeaderD // This action is used to rewrite header fields of HTTP response messages to specified new values at HTTP_RESPONSE_REWRITE phase. One action can be used to rewrite one header field. To rewrite multiple header fields, multiple actions must be defined. Captured variables and built-in variables can be used in the header_value field, header_name field does not support variables. type LBHttpResponseHeaderRewriteAction struct { // Name of a header field of HTTP request message. - HeaderName string + HeaderName *string // Value of header field - HeaderValue string + HeaderValue *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -22790,7 +22668,7 @@ type LBHttpsMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } const LBHttpsMonitorProfile_REQUEST_METHOD_GET = "GET" @@ -22867,7 +22745,7 @@ type LBIcmpMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -22941,7 +22819,7 @@ const LBJwtAuthAction__TYPE_IDENTIFIER = "LBJwtAuthAction" // The key is used to specify certificate which is used to verify the signature of JWT tokens. type LBJwtCertificateKey struct { // Certificate identifier - CertificatePath string + CertificatePath *string // Possible values are: // // * LBJwtKey#LBJwtKey_TYPE_LBJWTCERTIFICATEKEY @@ -22978,7 +22856,7 @@ const LBJwtKey_TYPE_LBJWTPUBLICKEY = "LBJwtPublicKey" // The key is used to specify the public key content which is used to verify the signature of JWT tokens. type LBJwtPublicKey struct { // Content of public key - PublicKeyContent string + PublicKeyContent *string // Possible values are: // // * LBJwtKey#LBJwtKey_TYPE_LBJWTCERTIFICATEKEY @@ -23061,7 +22939,7 @@ type LBMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -23115,7 +22993,7 @@ const LBNodeCountPerSeverity_SEVERITY_RED = "RED" // Node usage for load balancer contains basic information and LB entity usages and capacity for the given node. Only edge node is supported. type LBNodeUsage struct { // The property identifies the node path for load balancer node usage. For example, node_path=/infra/sites/default/enforcement-points/default /edge-clusters/85175e0b-4d74-461d-83e1-f3b785adef9c/edge-nodes /86e077c0-449f-11e9-87c8-02004eb37029. - NodePath string + NodePath *string // The property identifies the load balancer node usage type. ResourceType string } @@ -23214,7 +23092,7 @@ type LBPassiveMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -23225,7 +23103,7 @@ const LBPassiveMonitorProfile__TYPE_IDENTIFIER = "LBPassiveMonitorProfile" // Persistence cookie time. type LBPersistenceCookieTime struct { // HTTP cookie max-age to expire cookie, only available for insert mode. format: int64 - CookieMaxIdle int64 + CookieMaxIdle *int64 // Possible values are: // // * LBCookieTime#LBCookieTime_TYPE_LBSESSIONCOOKIETIME @@ -23289,7 +23167,7 @@ type LBPersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Persistence shared setting indicates that all LBVirtualServers that consume this LBPersistenceProfile should share the same persistence mechanism when enabled. Meaning, persistence entries of a client accessing one virtual server will also affect the same client's connections to a different virtual server. For example, say there are two virtual servers vip-ip1:80 and vip-ip1:8080 bound to the same Group g1 consisting of two servers (s11:80 and s12:80). By default, each virtual server will have its own persistence table or cookie. So, in the earlier example, there will be two tables (vip-ip1:80, p1) and (vip-ip1:8080, p1) or cookies. So, if a client connects to vip1:80 and later connects to vip1:8080, the second connection may be sent to a different server than the first. When persistence_shared is enabled, then the second connection will always connect to the same server as the original connection. For COOKIE persistence type, the same cookie will be shared by multiple virtual servers. For SOURCE_IP persistence type, the persistence table will be shared across virtual servers. For GENERIC persistence type, the persistence table will be shared across virtual servers which consume the same persistence profile in LBRule actions. PersistenceShared *bool @@ -23366,7 +23244,7 @@ type LBPool struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // In case of active healthchecks, load balancer itself initiates new connections (or sends ICMP ping) to the servers periodically to check their health, completely independent of any data traffic. Active healthchecks are disabled by default and can be enabled for a server pool by binding a health monitor to the pool. If multiple active monitors are configured, the pool member status is UP only when the health check status for all the monitors are UP. ActiveMonitorPaths []string @@ -23436,7 +23314,7 @@ type LBPoolMember struct { // Pool member name. DisplayName *string // Pool member IP address. format: ip - IpAddress string + IpAddress *string // To ensure members are not overloaded, connections to a member can be capped by the load balancer. When a member reaches this limit, it is skipped during server selection. If it is not specified, it means that connections are unlimited. format: int64 MaxConcurrentConnections *int64 // If port is specified, all connections will be sent to this port. Only single port is supported. If unset, the same port the client connected to will be used, it could be overrode by default_pool_member_port setting in virtual server. The port should not specified for port range case. format: port-or-range @@ -23453,7 +23331,7 @@ type LBPoolMemberGroup struct { // The list is used to show the customized pool member settings. User can only user pool member action API to update the admin state for a specific IP address. CustomizedMembers []PoolMemberSetting // Load balancer pool support Group as dynamic pool members. The IP list of the Group would be used as pool member IP setting. - GroupPath string + GroupPath *string // Possible values are: // // * LBPoolMemberGroup#LBPoolMemberGroup_IP_REVISION_FILTER_IPV4 @@ -23706,7 +23584,7 @@ const LBRuleCondition_TYPE_LBSSLSNICONDITION = "LBSslSniCondition" // This action is used to select a pool for matched HTTP request messages. The pool is specified by path. The matched HTTP request messages are forwarded to the specified pool. type LBSelectPoolAction struct { // Path of load balancer pool. - PoolId string + PoolId *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -23776,7 +23654,7 @@ type LBServerSslProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -23969,7 +23847,7 @@ type LBService struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Flag to enable access log AccessLogEnabled *bool @@ -24347,7 +24225,7 @@ const LBSnatDisabled__TYPE_IDENTIFIER = "LBSnatDisabled" // Snat Ip element. type LBSnatIpElement struct { // Ip address or ip range such as 1.1.1.1 or 1.1.1.101-1.1.1.160. format: address-or-block-or-range - IpAddress string + IpAddress *string // Subnet prefix length should be not specified if there is only one single IP address or IP range. format: int64 PrefixLength *int64 } @@ -24450,7 +24328,7 @@ type LBSourceIpPersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Persistence shared setting indicates that all LBVirtualServers that consume this LBPersistenceProfile should share the same persistence mechanism when enabled. Meaning, persistence entries of a client accessing one virtual server will also affect the same client's connections to a different virtual server. For example, say there are two virtual servers vip-ip1:80 and vip-ip1:8080 bound to the same Group g1 consisting of two servers (s11:80 and s12:80). By default, each virtual server will have its own persistence table or cookie. So, in the earlier example, there will be two tables (vip-ip1:80, p1) and (vip-ip1:8080, p1) or cookies. So, if a client connects to vip1:80 and later connects to vip1:8080, the second connection may be sent to a different server than the first. When persistence_shared is enabled, then the second connection will always connect to the same server as the original connection. For COOKIE persistence type, the same cookie will be shared by multiple virtual servers. For SOURCE_IP persistence type, the persistence table will be shared across virtual servers. For GENERIC persistence type, the persistence table will be shared across virtual servers which consume the same persistence profile in LBRule actions. PersistenceShared *bool @@ -24471,7 +24349,7 @@ type LBSslModeSelectionAction struct { // * LBSslModeSelectionAction#LBSslModeSelectionAction_SSL_MODE_OFFLOAD // // SSL Passthrough: LB establishes a TCP connection with client and another connection with selected backend server. LB won't inspect the stream data between client and backend server, but just pass it through. Backend server exchanges SSL connection with client. SSL Offloading: LB terminiates the connections from client, and establishes SSL connection with it. After receiving the HTTP request, LB connects the selected backend server and talk with it via HTTP without SSL. LB estalishes new connection to selected backend server for each HTTP request, in case ntlm or multiplexing are NOT configured. SSL End-to-End: LB terminiates the connections from client, and establishes SSL connection with it. After receiving the HTTP request, LB connects the selected backend server and talk with it via HTTPS. LB estalishes new SSL connection to selected backend server for each HTTP request, in case ntlm or multiplexing are NOT configured. - SslMode string + SslMode *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -24544,7 +24422,7 @@ type LBSslProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -24563,7 +24441,7 @@ type LBSslSniCondition struct { // Match type of SNI MatchType *string // The SNI(Server Name indication) in client hello message. - Sni string + Sni *string // A flag to indicate whether reverse the match result of this condition Inverse *bool // Possible values are: @@ -24635,7 +24513,7 @@ type LBStatisticsCounter struct { // This condition is used to match TCP header fields of HTTP messages. Currently, only the TCP source port is supported. Ports can be expressed as a single port number like 80, or a port range like 1024-1030. type LBTcpHeaderCondition struct { // TCP source port of HTTP message format: port-or-range - SourcePort string + SourcePort *string // A flag to indicate whether reverse the match result of this condition Inverse *bool // Possible values are: @@ -24729,16 +24607,16 @@ type LBTcpMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Active healthchecks are disabled by default and can be enabled for a server pool by binding a health monitor to the Group through the LBRule object. This represents active health monitoring over UDP. Active healthchecks are initiated periodically, at a configurable interval, to each member of the Group. Only if a healthcheck fails consecutively for a specified number of times (fall_count) to a member will the member status be marked DOWN. Once a member is DOWN, a specified number of consecutive successful healthchecks (rise_count) will bring the member back to UP state. After a healthcheck is initiated, if it does not complete within a certain period, then also the healthcheck is considered to be unsuccessful. Completing a healthcheck within timeout means establishing a connection (TCP or SSL), if applicable, sending the request and receiving the response, all within the configured timeout. type LBUdpMonitorProfile struct { // Expected data, can be anywhere in the response and it has to be a string, regular expressions are not supported. UDP healthcheck is considered failed if there is no server response within the timeout period. - Receive string + Receive *string // The data to be sent to the monitored server. - Send string + Send *string // Only if a healthcheck fails consecutively for a specified number of times, given with fall_count, to a member will the member status be marked DOWN. format: int64 FallCount *int64 // Active healthchecks are initiated periodically, at a configurable interval (in seconds), to each member of the Group. format: int64 @@ -24800,16 +24678,16 @@ type LBUdpMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // This action is used to create a new variable and assign value to it. One action can be used to create one variable. To create multiple variables, multiple actions must be defined. The variables can be used by LBVariableCondition, etc. type LBVariableAssignmentAction struct { // Name of the variable to be assigned. - VariableName string + VariableName *string // Value of variable. - VariableValue string + VariableValue *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -24850,9 +24728,9 @@ type LBVariableCondition struct { // Match type of variable value MatchType *string // Name of the variable to be matched - VariableName string + VariableName *string // Value of variable to be matched - VariableValue string + VariableValue *string // A flag to indicate whether reverse the match result of this condition Inverse *bool // Possible values are: @@ -24891,7 +24769,7 @@ type LBVariablePersistenceLearnAction struct { // The property is used to enable a hash operation for variable value when composing the persistence key. VariableHashEnabled *bool // The property is the name of variable to be learnt. It is used to identify which variable's value is learnt from HTTP response. The variable can be a built-in variable such as \"_cookie_JSESSIONID\", a customized variable defined in LBVariableAssignmentAction or a captured variable in regular expression such as \"article\". For the full list of built-in variables, please reference the NSX-T Administrator's Guide. - VariableName string + VariableName *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -24924,7 +24802,7 @@ type LBVariablePersistenceOnAction struct { // The property is used to enable a hash operation for variable value when composing the persistence key. VariableHashEnabled *bool // The property is the name of variable to be used. It specifies which variable's value of a HTTP Request will be used in the key of persistence entry. The variable can be a built-in variable such as \"_cookie_JSESSIONID\", a customized variable defined in LBVariableAssignmentAction or a captured variable in regular expression such as \"article\". For the full list of built-in variables, please reference the NSX-T Administrator's Guide. - VariableName string + VariableName *string // Possible values are: // // * LBRuleAction#LBRuleAction_TYPE_LBSELECTPOOLACTION @@ -24994,14 +24872,14 @@ type LBVirtualServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Specifies the access list control to define how to filter the connections from clients. AccessListControl *LBAccessListControl // If access log is enabled, all HTTP requests sent to L7 virtual server are logged to the access log file. Both successful returns information responses(1xx), successful responses(2xx), redirection messages(3xx) and unsuccessful requests, backend server returns 4xx or 5xx, are logged to access log, if enabled. All L4 virtual server connections are also logged to the access log if enabled. The non-significant events such as successful requests are not logged if log_significant_event_only is set to true. AccessLogEnabled *bool // The application profile defines the application protocol characteristics. It is used to influence how load balancing is performed. Currently, LBFastTCPProfile, LBFastUDPProfile and LBHttpProfile, etc are supported. - ApplicationProfilePath string + ApplicationProfilePath *string // The setting is used when load balancer acts as an SSL server and terminating the client SSL connection ClientSslProfileBinding *LBClientSslProfileBinding // Default pool member ports when member port is not defined. format: port-or-range @@ -25009,7 +24887,7 @@ type LBVirtualServer struct { // Flag to enable the load balancer virtual server. Enabled *bool // Configures the IP address of the LBVirtualServer where it receives all client connections and distributes them among the backend servers. format: ip - IpAddress string + IpAddress *string // Path to optional object that enables persistence on a virtual server allowing related client connections to be sent to the same backend server. Persistence is disabled by default. LbPersistenceProfilePath *string // virtual servers can be associated to LBService(which is similar to physical/virtual load balancer), LB virtual servers, pools and other entities could be defined independently, the LBService identifier list here would be used to maintain the relationship of LBService and other LB entities. @@ -25127,35 +25005,6 @@ type LBVirtualServerStatusPerEP struct { // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. const LBVirtualServerStatusPerEP__TYPE_IDENTIFIER = "LBVirtualServerStatusPerEP" -// Represents LM config on-boarding progress status details per entity along with progress metric like completed stage count against total number. -type LMConfigOnboardingStatusDetails struct { - // Current entity name being oboarded - CurrentEntity *string - // On-boarding current stage for more details in case of IN_PROGRESS current staus. - CurrentStage *string - // Stage count for consumer to know how many remaining out of total_count. format: int32 - CurrentStageCount *int64 - // Possible values are: - // - // * LMConfigOnboardingStatusDetails#LMConfigOnboardingStatusDetails_CURRENT_STATUS_INITIAL - // * LMConfigOnboardingStatusDetails#LMConfigOnboardingStatusDetails_CURRENT_STATUS_IN_PROGRESS - // * LMConfigOnboardingStatusDetails#LMConfigOnboardingStatusDetails_CURRENT_STATUS_LM_SUCCESS - // * LMConfigOnboardingStatusDetails#LMConfigOnboardingStatusDetails_CURRENT_STATUS_LM_FAILED - // * LMConfigOnboardingStatusDetails#LMConfigOnboardingStatusDetails_CURRENT_STATUS_GM_FAILED - // * LMConfigOnboardingStatusDetails#LMConfigOnboardingStatusDetails_CURRENT_STATUS_GM_SUCCESS - // - // Status of the on-boarding task. - CurrentStatus *string - // Total number of stages in an onboarding process. format: int32 - TotalStageCount *int64 -} -const LMConfigOnboardingStatusDetails_CURRENT_STATUS_INITIAL = "INITIAL" -const LMConfigOnboardingStatusDetails_CURRENT_STATUS_IN_PROGRESS = "IN_PROGRESS" -const LMConfigOnboardingStatusDetails_CURRENT_STATUS_LM_SUCCESS = "LM_SUCCESS" -const LMConfigOnboardingStatusDetails_CURRENT_STATUS_LM_FAILED = "LM_FAILED" -const LMConfigOnboardingStatusDetails_CURRENT_STATUS_GM_FAILED = "GM_FAILED" -const LMConfigOnboardingStatusDetails_CURRENT_STATUS_GM_SUCCESS = "GM_SUCCESS" - // Label that will be displayed for a UI element. type Label struct { // If the condition is met then the label will be applied. Examples of expression syntax are provided under example_request section of CreateWidgetConfiguration API. @@ -25167,7 +25016,7 @@ type Label struct { // Hyperlink of the specified UI page that provides details. Navigation *string // Text to be displayed at the label. - Text string + Text *string } // Represents a Label-Value widget configuration @@ -25245,6 +25094,8 @@ type LabelValueConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -25304,9 +25155,9 @@ type LayoutProperties struct { type LbHttpRequestHeader struct { // Name of HTTP request header - HeaderName string + HeaderName *string // Value of HTTP request header - HeaderValue string + HeaderValue *string } type LbSslCipherAndProtocolListResult struct { @@ -25367,7 +25218,7 @@ type LbSslCipherInfo struct { // * LbSslCipherInfo#LbSslCipherInfo_CIPHER_ECDH_RSA_WITH_AES_256_GCM_SHA384 // // SSL cipher - Cipher string + Cipher *string // Possible values are: // // * LbSslCipherInfo#LbSslCipherInfo_CIPHER_GROUP_LABELS_BALANCED @@ -25378,9 +25229,9 @@ type LbSslCipherInfo struct { // Several cipher groups might contain the same cipher suite, each cipher suite could have multiple cipher group labels. CipherGroupLabels []string // Default SSL cipher flag - IsDefault bool + IsDefault *bool // Secure/insecure SSL cipher flag - IsSecure bool + IsSecure *bool } const LbSslCipherInfo_CIPHER_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" const LbSslCipherInfo_CIPHER_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" @@ -25421,9 +25272,9 @@ const LbSslCipherInfo_CIPHER_GROUP_LABELS_CUSTOM = "CUSTOM" // SSL protocol type LbSslProtocolInfo struct { // Default SSL protocol flag - IsDefault bool + IsDefault *bool // Secure/insecure SSL protocol flag - IsSecure bool + IsSecure *bool // Possible values are: // // * LbSslProtocolInfo#LbSslProtocolInfo_PROTOCOL_SSL_V2 @@ -25433,7 +25284,7 @@ type LbSslProtocolInfo struct { // * LbSslProtocolInfo#LbSslProtocolInfo_PROTOCOL_TLS_V1_2 // // SSL protocol - Protocol string + Protocol *string } const LbSslProtocolInfo_PROTOCOL_SSL_V2 = "SSL_V2" const LbSslProtocolInfo_PROTOCOL_SSL_V3 = "SSL_V3" @@ -25477,9 +25328,9 @@ type LdapIdentitySource struct { // Opaque identifiers meaningful to the API user Tags []Tag // The subtree of the LDAP identity source to search when locating users and groups. - BaseDn string + BaseDn *string // The name of the authentication domain. When users log into NSX using an identity of the form \"user\\\\@domain\", NSX uses the domain portion to determine which LDAP identity source to use. For Active Directory, this domain name must match the domain of the Active Directory. - DomainName string + DomainName *string // The list of LDAP servers that provide LDAP service for this identity source. Currently, only one LDAP server is supported. LdapServers []IdentitySourceLdapServer } @@ -25562,7 +25413,7 @@ type LdapProbeError struct { // * LdapProbeError#LdapProbeError_ERROR_TYPE_SSL_HANDSHAKE_ERROR // * LdapProbeError#LdapProbeError_ERROR_TYPE_GENERAL_ERROR // - // The cause of the error. CONNECTION_TIMEOUT: The connection timed out when contating the LDAP server. Check the hostname/ip. CONNECTION_REFUSED: The connection was refused when contacting the LDAP server. Ensure that the LDAP server is up and that you have the correct ip/hostname. STARTTLS_FAILED: Unable to use StartTLS to upgrade the connection to use TLS. Ensure the LDAP server supports TLS and if not, use LDAP or LDAPS as the protocol. INVALID_CREDENTIALS: The username and/or password are incorrect. THUMBPRINT_MISMATCH: A certificate thumbprint was provided in the LDAP server configuration, but did not match the certificate presented by the LDAP server. BASE_DN_NOT_FOUND: The configured base_dn does not exist on the LDAP server or is not readable. SSL_HANDSHAKE_ERROR: An error occurred while establiching a secure connection with the LDAP server. GENERAL_ERROR: An undetermined error occurred. + // The cause of the error. CONNECTION_TIMEOUT: The connection timed out when contating the LDAP server. Check the hostname/ip. CONNECTION_REFUSED: The connection was refused when contacting the LDAP server. Ensure that the LDAP server is up and that you have the correct ip/hostname. STARTTLS_FAILED: Unable to use StartTLS to upgrade the connection to use TLS. Ensure the LDAP server supports TLS and if not, use LDAP or LDAPS as the protocol. INVALID_CREDENTIALS: The username and/or password are incorrect. THUMBPRINT_MISMATCH: A certificate thumbprint was provided in the LDAP server configuration, but did not match the certificate presented by the LDAP server. BASE_DN_NOT_FOUND: The configured base_dn does not exist on the LDAP server or is not readable. SSL_HANDSHAKE_ERROR: An error occurred while establishing a secure connection with the LDAP server. GENERAL_ERROR: An undetermined error occurred. ErrorType *string } const LdapProbeError_ERROR_TYPE_CONNECTION_TIMEOUT = "CONNECTION_TIMEOUT" @@ -25639,7 +25490,7 @@ type LocalEgress struct { // Local egress rounting policy type LocalEgressRoutingEntry struct { // Next hop address for proximity routing. - NexthopAddress string + NexthopAddress *string // The destination address of traffic matching a prefix-list is forwarded to the nexthop_address. Traffic matching a prefix list with Action DENY will be dropped. Individual prefix-lists specified could have different actions. PrefixListPaths []string } @@ -25688,7 +25539,7 @@ type LocaleServices struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Policy path to edge cluster. Auto-assigned on Tier0 if associated enforcement-point has only one edge cluster. EdgeClusterPath *string @@ -25789,7 +25640,7 @@ type LogicalRouterPortCounters struct { type LogicalRouterPortStatistics struct { // The ID of the logical router port - LogicalRouterPortId string + LogicalRouterPortId *string // Per Node Statistics PerNodeStatistics []LogicalRouterPortStatisticsPerNode } @@ -25809,7 +25660,7 @@ type LogicalRouterPortStatisticsSummary struct { Rx *LogicalRouterPortCounters Tx *LogicalRouterPortCounters // The ID of the logical router port - LogicalRouterPortId string + LogicalRouterPortId *string } // This holds the state of Logical Router. If there are errors in realizing LR outside of MP, it gives details of the components and specific errors. @@ -25962,7 +25813,7 @@ type LogicalRouterStatus struct { // Egress mode for the logical router at given mode LocaleOperationMode *string // The id of the logical router - LogicalRouterId string + LogicalRouterId *string // Per Node Status PerNodeStatus []LogicalRouterStatusPerNode } @@ -25980,11 +25831,11 @@ type LogicalRouterStatusPerNode struct { // * LogicalRouterStatusPerNode#LogicalRouterStatusPerNode_HIGH_AVAILABILITY_STATUS_ADMIN_DOWN // // A service router's HA status on an edge node - HighAvailabilityStatus string + HighAvailabilityStatus *string // id of the service router where the router status is retrieved. ServiceRouterId *string // id of the transport node where the router status is retrieved. - TransportNodeId string + TransportNodeId *string } const LogicalRouterStatusPerNode_HIGH_AVAILABILITY_STATUS_ACTIVE = "ACTIVE" const LogicalRouterStatusPerNode_HIGH_AVAILABILITY_STATUS_STANDBY = "STANDBY" @@ -26006,9 +25857,9 @@ type LogicalSwitchStatistics struct { LogicalSwitchId *string } -// Represents MAC address expressions in the form of an array, to support addition of MAC addresses in a group. +// Represents MAC address expressions in the form of an array, to support addition of MAC addresses in a group. Avoid creating groups with multiple MACAddressExpression. In future releases, group will be restricted to contain a single MACAddressExpression. To group MAC addresses, use nested groups instead of multiple MACAddressExpression. type MACAddressExpression struct { - // This array can consist of one or more MAC addresses. + // This array can consist of one or more MAC addresses. format: mac-address MacAddresses []string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -26061,7 +25912,7 @@ type MACAddressExpression struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -26071,7 +25922,7 @@ const MACAddressExpression__TYPE_IDENTIFIER = "MACAddressExpression" // List of MAC Addresses. type MACAddressList struct { - // The array contains MAC addresses. + // The array contains MAC addresses. format: mac-address MacAddresses []string } @@ -26119,14 +25970,14 @@ type MacDiscoveryProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Allowing source MAC address change MacChangeEnabled *bool // Indicates how long learned MAC address remain. format: int32 MacLearningAgingTime *int64 // Allowing source MAC address learning - MacLearningEnabled bool + MacLearningEnabled *bool // The maximum number of MAC addresses that can be learned on this port format: int32 MacLimit *int64 // Possible values are: @@ -26217,7 +26068,7 @@ type ManagementConfig struct { // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 Revision *int64 // True if Management nodes publish their fqdns(instead of default IP addresses) across NSX for its reachability. - PublishFqdns bool + PublishFqdns *bool } // Metadata Proxy Configuration @@ -26264,7 +26115,7 @@ type MetadataProxyConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -26275,15 +26126,15 @@ type MetadataProxyConfig struct { // The cryptographic protocols listed here are supported by the metadata proxy. TLSv1.1 and TLSv1.2 are supported by default CryptoProtocols []string // Edge clusters configured on MP are auto-discovered by Policy and create corresponding read-only intent objects. - EdgeClusterPath string + EdgeClusterPath *string // Only auto-placed metadata proxies are considered for relocation. Must be FALSE, when the preferred_edge_paths property is configured. EnableStandbyRelocation *bool // Edge nodes should be members of edge cluster configured in edge_cluster_path. PreferredEdgePaths []string // Secret word or phrase to access metadata server. - Secret string + Secret *string // This field is a URL. Example formats - http://1.2.3.4:3888/path, http://text-md-proxy:5001/. Port number should be between 3000-9000. - ServerAddress string + ServerAddress *string // Valid certificates should be configured. The validity of certificates is not checked. Certificates are managed through /infra/certificates API on Policy. ServerCertificates []string } @@ -26354,7 +26205,7 @@ type MonitoringProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -26425,6 +26276,8 @@ type MultiWidgetConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -26467,7 +26320,7 @@ type MulticastForwardingInterface struct { // Multicast Forwarding Per Edge. type MulticastForwardingPerEdge struct { // Policy path to edge node. - EdgePath string + EdgePath *string McastForwarding []MulticastForwarding } @@ -26507,7 +26360,7 @@ type MulticastRouteCsvRecord struct { // Multicast Routes Per Edge. type MulticastRoutesPerEdge struct { // Policy path to edge node. - EdgePath string + EdgePath *string McastRoutes []MulticastRoute } @@ -26524,7 +26377,7 @@ type NSXTConnectionInfo struct { // Username. Username *string // Value of this property could be Hostname or IP. For instance: - On an NSX-T MP running on default port, the value could be \"10.192.1.1\" - On an NSX-T MP running on custom port, the value could be \"192.168.1.1:32789\" - On an NSX-T MP in VMC deployments, the value could be \"192.168.1.1:5480/nsxapi\" - EnforcementPointAddress string + EnforcementPointAddress *string // Possible values are: // // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXTCONNECTIONINFO @@ -26544,11 +26397,11 @@ type NSXVConnectionInfo struct { // Password. Password *string // Thumbprint of EnforcementPoint in the form of a SHA-256 hash represented in lower case HEX. - Thumbprint string + Thumbprint *string // Username. Username *string // Value of this property could be Hostname or IP. For instance: - On an NSX-T MP running on default port, the value could be \"10.192.1.1\" - On an NSX-T MP running on custom port, the value could be \"192.168.1.1:32789\" - On an NSX-T MP in VMC deployments, the value could be \"192.168.1.1:5480/nsxapi\" - EnforcementPointAddress string + EnforcementPointAddress *string // Possible values are: // // * EnforcementPointConnectionInfo#EnforcementPointConnectionInfo_RESOURCE_TYPE_NSXTCONNECTIONINFO @@ -26641,7 +26494,7 @@ type NestedExpression struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -26652,7 +26505,7 @@ const NestedExpression__TYPE_IDENTIFIER = "NestedExpression" // A ServiceEntry that represents nesting service type NestedServiceServiceEntry struct { // path of nested service - NestedServicePath string + NestedServicePath *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -26703,7 +26556,7 @@ type NestedServiceServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -26721,22 +26574,12 @@ type NetworkError struct { Spec *string } -// New Role -type NewRole struct { - // New role description - NewRoleDescription *string - // New role id - NewRoleId string - // New role name - NewRoleName string -} - // Information on the Network interfaces present on the partner appliance that needs to be configured by the NSX Manager. type NicMetadata struct { // Network Interface index. format: int64 - InterfaceIndex int64 + InterfaceIndex *int64 // Network Interface label. - InterfaceLabel string + InterfaceLabel *string // Possible values are: // // * NicMetadata#NicMetadata_INTERFACE_TYPE_MANAGEMENT @@ -26747,7 +26590,7 @@ type NicMetadata struct { // * NicMetadata#NicMetadata_INTERFACE_TYPE_CONTROL // // Interface that needs to be configured on the partner appliance. Ex. MANAGEMENT, DATA1, DATA2, HA1, HA2, CONTROL. - InterfaceType string + InterfaceType *string // Possible values are: // // * NicMetadata#NicMetadata_TRANSPORTS_L2_BRIDGE @@ -26783,7 +26626,7 @@ type NsxRole struct { // Please use the /user-info/permissions api to get the permission that the user has on each feature. Permissions []string // This field represents the identifier of the role. With the introduction of custom roles, this field is no longer an enum. - Role string + Role *string } const NsxRole_PERMISSIONS_READ_API = "read-api" const NsxRole_PERMISSIONS_READ_WRITE_API = "read-write-api" @@ -26870,9 +26713,9 @@ type NsxtDnsAnswer struct { // Authoritative answers AuthoritativeAnswers []NsxtDnsQueryAnswer // Dns server ip address and port, format is \"ip address#port\". - DnsServer string + DnsServer *string // ID of the edge node that performed the query. - EdgeNodeId string + EdgeNodeId *string // Non authoritative answers NonAuthoritativeAnswers []NsxtDnsQueryAnswer // It can be NXDOMAIN or error message which is not consisted of authoritative_answer or non_authoritative_answer. @@ -26963,9 +26806,9 @@ type ObjectRolePermissionGroup struct { // Allowed operation Operation *string // Path prefix - PathPrefix string + PathPrefix *string // Role name - RoleName string + RoleName *string // Is rule disabled or not RuleDisabled *bool } @@ -26994,44 +26837,6 @@ type ObjectRolePermissionGroupListResult struct { Results []ObjectRolePermissionGroup } -// Results of onboarding local manager task. -type OnboardLocalManagerTask struct { - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKCOMPATIBILITYTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKRTEPTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CREATESTANDBYGLOBALMANAGERTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_ONBOARDLOCALMANAGERTASK - // - // Action being performed by this task. - Action string - // End time for the task. format: int64 - EndTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_RESULT_SUCCESS - // * RealizedManagementTask#RealizedManagementTask_RESULT_ERROR - // - // Result of the task. - Result *string - // Additional information about the task result. - ResultDescription *string - // Start time for the task. format: int64 - StartTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_STATE_STARTING - // * RealizedManagementTask#RealizedManagementTask_STATE_RUNNING - // * RealizedManagementTask#RealizedManagementTask_STATE_COMPLETE - // - // State of the task. - State *string -} -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const OnboardLocalManagerTask__TYPE_IDENTIFIER = "OnboardLocalManagerTask" - // An identity source service that runs OpenLDAP. The service allows selected user accounts defined in OpenLDAP to log into and access NSX-T. type OpenLdapIdentitySource struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -27068,9 +26873,9 @@ type OpenLdapIdentitySource struct { // Opaque identifiers meaningful to the API user Tags []Tag // The subtree of the LDAP identity source to search when locating users and groups. - BaseDn string + BaseDn *string // The name of the authentication domain. When users log into NSX using an identity of the form \"user\\\\@domain\", NSX uses the domain portion to determine which LDAP identity source to use. For Active Directory, this domain name must match the domain of the Active Directory. - DomainName string + DomainName *string // The list of LDAP servers that provide LDAP service for this identity source. Currently, only one LDAP server is supported. LdapServers []IdentitySourceLdapServer } @@ -27123,7 +26928,7 @@ type OverriddenResource struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Policy resource path of the overridden resource. IntentPath *string @@ -27186,9 +26991,9 @@ const PacketData_TRANSPORT_TYPE_UNKNOWN = "UNKNOWN" type PacketTypeAndCounter struct { // The number of packets. format: int64 - Counter int64 + Counter *int64 // The type of the packets - PacketType string + PacketType *string } type PacketsDroppedBySecurity struct { @@ -27209,7 +27014,7 @@ type PacketsDroppedBySecurity struct { // This object allows enabling or disabling of partial patch functionality. Enabling partial patch allows patching of a subset of the fields of any object. After enabling partial patching, any object payload provided will be merged with the existing object payload. Note that while all mandatory fields are expected to be provided during the creation of any object, enabling partial patch will allow patching of existing objects with a subset of mandatory fields. type PartialPatchConfig struct { // boolean value used to enable/disable partial patch - EnablePartialPatch bool + EnablePartialPatch *bool } // Patch Resources is an action to create/patch resources in response to an event. @@ -27286,7 +27091,7 @@ type PathExpression struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -27297,7 +27102,7 @@ const PathExpression__TYPE_IDENTIFIER = "PathExpression" // RBAC Objects qualifier type PathPermissionGroup struct { // Full Object Path - ObjectPath string + ObjectPath *string // Possible values are: // // * PathPermissionGroup#PathPermissionGroup_OPERATION_CRUD @@ -27306,7 +27111,7 @@ type PathPermissionGroup struct { // * PathPermissionGroup#PathPermissionGroup_OPERATION_NONE // // Allowed operation - Operation string + Operation *string } const PathPermissionGroup_OPERATION_CRUD = "crud" const PathPermissionGroup_OPERATION_READ = "read" @@ -27318,7 +27123,13 @@ type PeerCertificateChain struct { // List of X509Certificates. Details []X509Certificate // PEM encoded certificate data. - PemEncoded string + PemEncoded *string +} + +// Information about recent changes, if any, that are not reflected in the Enforced Realized Status. +type PendingChangesInfoNsxt struct { + // Flag describing whether there are any pending changes that are not reflected in the status. + PendingChangesFlag *bool } // Restore step status @@ -27376,7 +27187,7 @@ type PimRpMappingCsvRecord struct { // PIM Rendezvous Point Mappings. type PimRpMappings struct { // Policy path to Tier0 gateway. - GatewayPath string + GatewayPath *string PimRpMappingsPerEdge []PimRpMappingsPerEdge } @@ -27389,7 +27200,7 @@ type PimRpMappingsInCsvFormat struct { // PIM Rendezvous Point Mappings Per Edge. type PimRpMappingsPerEdge struct { // Policy path to edge node. - EdgePath string + EdgePath *string PimRpMappings []PimRpMapping } @@ -27398,15 +27209,15 @@ type PointDefinition struct { // Id of drilldown widget, if any. Id should be a valid id of an existing widget. A widget is considered as drilldown widget when it is associated with any other widget and provides more detailed information about any data item from the parent widget. DrilldownId *string // An expression that represents the points of the graph - Field string + Field *string // Hyperlink of the specified UI page that provides details. Navigation *string // Multi-line text to be shown on tooltip while hovering over the point of a graph. Tooltip []Tooltip // Represents the variable for the X value of points that are plotted on the graph. - XValue string + XValue *string // Represents the variable for the Y value of points that are plotted on the graph. - YValue string + YValue *string } // Ordered list of Rules. This object is created by default along with the Domain. @@ -27453,7 +27264,7 @@ type Policy struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // - Distributed Firewall - Policy framework provides five pre-defined categories for classifying a security policy. They are \"Ethernet\",\"Emergency\", \"Infrastructure\" \"Environment\" and \"Application\". There is a pre-determined order in which the policy framework manages the priority of these security policies. Ethernet category is for supporting layer 2 firewall rules. The other four categories are applicable for layer 3 rules. Amongst them, the Emergency category has the highest priority followed by Infrastructure, Environment and then Application rules. Administrator can choose to categorize a security policy into the above categories or can choose to leave it empty. If empty it will have the least precedence w.r.t the above four categories. - Edge Firewall - Policy Framework for Edge Firewall provides six pre-defined categories \"Emergency\", \"SystemRules\", \"SharedPreRules\", \"LocalGatewayRules\", \"AutoServiceRules\" and \"Default\", in order of priority of rules. All categories are allowed for Gatetway Policies that belong to 'default' Domain. However, for user created domains, category is restricted to \"SharedPreRules\" or \"LocalGatewayRules\" only. Also, the users can add/modify/delete rules from only the \"SharedPreRules\" and \"LocalGatewayRules\" categories. If user doesn't specify the category then defaulted to \"Rules\". System generated category is used by NSX created rules, for example BFD rules. Autoplumbed category used by NSX verticals to autoplumb data path rules. Finally, \"Default\" category is the placeholder default rules with lowest in the order of priority. Category *string @@ -27576,7 +27387,7 @@ type PolicyAttributes struct { // * PolicyAttributes#PolicyAttributes_DATATYPE_STRING // // Datatype for attribute - Datatype string + Datatype *string // Description for attribute value Description *string // Describes whether the APP_ID value is ALG type or not. @@ -27588,7 +27399,7 @@ type PolicyAttributes struct { // * PolicyAttributes#PolicyAttributes_KEY_URL_CATEGORY // // Key for attribute - Key string + Key *string // Reference to sub attributes for the attribute SubAttributes []PolicySubAttributes // Multiple attribute values can be specified as elements of array. @@ -27650,7 +27461,7 @@ type PolicyBasedIPSecVpnSession struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -27686,11 +27497,11 @@ type PolicyBasedIPSecVpnSession struct { // Policy path referencing IKE profile to be used. Default is set according to system default profile. IkeProfilePath *string // Policy path referencing Local endpoint. - LocalEndpointPath string + LocalEndpointPath *string // Public IPV4 address of the remote device terminating the VPN connection. - PeerAddress string + PeerAddress *string // Peer ID to uniquely identify the peer site. The peer ID is the public IP address of the remote device terminating the VPN tunnel. When NAT is configured for the peer, enter the private IP address of the peer. - PeerId string + PeerId *string // IPSec Pre-shared key. Maximum length of this field is 128 characters. Psk *string // TCP Maximum Segment Size Clamping Direction and Value. @@ -27750,6 +27561,8 @@ type PolicyBgpNeighborStatus struct { HoldTime *int64 // Time in ms to wait for HELLO packet from BGP peer format: int64 KeepAliveInterval *int64 + // Timestamp when the data was last updated, unset if data source has never updated the data. format: int64 + LastUpdateTimestamp *int64 // TCP port number of Local BGP connection format: int64 LocalPort *int64 // Count of messages received from the neighbor format: int64 @@ -27770,6 +27583,8 @@ type PolicyBgpNeighborStatus struct { RemoteSite *ResourceReference // The Ip address of logical port format: ip SourceAddress *string + // Policy path to Tier0 + Tier0Path *string // Time(in milliseconds) since connection was established. format: int64 TimeSinceEstablished *int64 // Sum of in prefixes counts across all address families. format: int64 @@ -27801,12 +27616,97 @@ type PolicyBgpNeighborsStatusListResult struct { SortAscending *bool // Field by which records are sorted SortBy *string - // Timestamp when the data was last updated, unset if data source has never updated the data. format: int64 - LastUpdateTimestamp *int64 // Status of BGP neighbors of the Tier0 Results []PolicyBgpNeighborStatus - // Policy path to Tier0 - Tier0Path *string +} + +type PolicyCapacityDashboardUsage struct { + // Indicate the current usage count of object type. format: int64 + CurrentUsageCount *int64 + // Current usage percentage for object type + CurrentUsagePercentage *float64 + // Display name for NSX object type. + DisplayName *string + // This is the maximum supported count for object type in consideration. format: int64 + MaxSupportedCount *int64 + // Possible values are: + // + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_VSPHERE_CLUSTERS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_PREPARED_HOSTS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_GROUPS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_SEGMENT + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_SEGMENT_PORT + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_FIREWALL_RULES + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_FIREWALL_SECTIONS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_SECURITY_POLICY_RULES + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_SECURITY_POLICY + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_PROTECTION_ENABLED_HOST + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_PROTECTION_ENABLED_VIRTUAL_MACHINES + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_EDGE_CLUSTERS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_EDGE_NODES + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_TIER0_ROUTERS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_TIER1_ROUTERS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_PREFIX_LIST + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_NAT_RULES + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_DHCP_IP_POOLS + // * PolicyCapacityDashboardUsage#PolicyCapacityDashboardUsage_USAGE_TYPE_TIER1_WITH_NAT_RULE + // + // Indicate the object type for which usage is calculated. + UsageType *string +} +const PolicyCapacityDashboardUsage_USAGE_TYPE_VSPHERE_CLUSTERS = "NUMBER_OF_VSPHERE_CLUSTERS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_PREPARED_HOSTS = "NUMBER_OF_PREPARED_HOSTS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_GROUPS = "NUMBER_OF_GROUPS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_SEGMENT = "NUMBER_OF_SEGMENT" +const PolicyCapacityDashboardUsage_USAGE_TYPE_SEGMENT_PORT = "NUMBER_OF_SEGMENT_PORT" +const PolicyCapacityDashboardUsage_USAGE_TYPE_FIREWALL_RULES = "NUMBER_OF_FIREWALL_RULES" +const PolicyCapacityDashboardUsage_USAGE_TYPE_FIREWALL_SECTIONS = "NUMBER_OF_FIREWALL_SECTIONS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_SECURITY_POLICY_RULES = "NUMBER_OF_SECURITY_POLICY_RULES" +const PolicyCapacityDashboardUsage_USAGE_TYPE_SECURITY_POLICY = "NUMBER_OF_SECURITY_POLICY" +const PolicyCapacityDashboardUsage_USAGE_TYPE_PROTECTION_ENABLED_HOST = "NUMBER_OF_PROTECTION_ENABLED_HOST" +const PolicyCapacityDashboardUsage_USAGE_TYPE_PROTECTION_ENABLED_VIRTUAL_MACHINES = "NUMBER_OF_PROTECTION_ENABLED_VIRTUAL_MACHINES" +const PolicyCapacityDashboardUsage_USAGE_TYPE_EDGE_CLUSTERS = "NUMBER_OF_EDGE_CLUSTERS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_EDGE_NODES = "NUMBER_OF_EDGE_NODES" +const PolicyCapacityDashboardUsage_USAGE_TYPE_TIER0_ROUTERS = "NUMBER_OF_TIER0_ROUTERS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_TIER1_ROUTERS = "NUMBER_OF_TIER1_ROUTERS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_PREFIX_LIST = "NUMBER_OF_PREFIX_LIST" +const PolicyCapacityDashboardUsage_USAGE_TYPE_NAT_RULES = "NUMBER_OF_NAT_RULES" +const PolicyCapacityDashboardUsage_USAGE_TYPE_DHCP_IP_POOLS = "NUMBER_OF_DHCP_IP_POOLS" +const PolicyCapacityDashboardUsage_USAGE_TYPE_TIER1_WITH_NAT_RULE = "NUMBER_OF_TIER1_WITH_NAT_RULE" + +type PolicyCapacityUsageResponse struct { + // The server will populate this field when returing the resource. Ignored on PUT and POST. + Links []ResourceLink + // Schema for this resource + Schema *string + // Link to this resource + Self *SelfResourceLink + // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 + Revision *int64 + // Timestamp of resource creation format: int64 + CreateTime *int64 + // ID of the user who created this resource + CreateUser *string + // Timestamp of last modification format: int64 + LastModifiedTime *int64 + // ID of the user who last modified this resource + LastModifiedUser *string + // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. + Protection *string + // Indicates system owned resource + SystemOwned *bool + // Description of this resource + Description *string + // Defaults to ID if not set + DisplayName *string + // Unique identifier of this resource + Id *string + // The type of this resource. + ResourceType *string + // Opaque identifiers meaningful to the API user + Tags []Tag + // List of capacity usage for NSX Objects + CapacityUsage []PolicyCapacityDashboardUsage } type PolicyComplianceStatus struct { @@ -27860,7 +27760,7 @@ type PolicyConfigResource struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -27908,7 +27808,7 @@ type PolicyContextProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Property containing attributes/sub-attributes for Policy Context Profile. Attributes []PolicyAttributes @@ -27995,16 +27895,16 @@ type PolicyDnsForwarder struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Max of 5 DNS servers can be configured ConditionalForwarderZonePaths []string // This is the zone to which DNS requests are forwarded by default - DefaultForwarderZonePath string + DefaultForwarderZonePath *string // The flag, which suggests whether the DNS forwarder is enabled or disabled. The default is True. Enabled *bool // This is the IP on which the DNS Forwarder listens. format: ipv4 - ListenerIp string + ListenerIp *string // Possible values are: // // * PolicyDnsForwarder#PolicyDnsForwarder_LOG_LEVEL_DEBUG @@ -28066,7 +27966,7 @@ type PolicyDnsForwarderZone struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // List of domain names on which conditional forwarding is based. This field is required if the DNS Zone is being used for a conditional forwarder. This field will also be used for conditional reverse lookup. Example 1, if for one of the zones, one of the entries in the fqdn is example.com, all the DNS requests under the domain example.com will be served by the corresponding upstream DNS server. Example 2, if for one of the zones, one of the entries in the fqdn list is \"13.12.30.in-addr.arpa\", reverse lookup for 30.12.13.0/24 will go to the corresponding DNS server. DnsDomainNames []string @@ -28140,7 +28040,7 @@ type PolicyDraft struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Flag to indicate whether draft is auto created. True indicates that the draft is an auto draft. False indicates that the draft is a manual draft. IsAutoDraft *bool @@ -28224,7 +28124,7 @@ type PolicyEdgeCluster struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Flag to indicate status of inter site l2 and l3 forwarding in federation. InterSiteForwardingEnabled *bool @@ -28298,7 +28198,7 @@ type PolicyEdgeNode struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Member index of edge node in edge cluster. format: int64 MemberIndex *int64 @@ -28369,7 +28269,7 @@ type PolicyExcludeList struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // List of the members in the exclude list Members []string @@ -28380,15 +28280,15 @@ type PolicyFineTuningResourceInfo struct { // List of all field of any resource Fields []PolicyFineTuningResourceInfoDetail // It will represent resource with name and fields. - ResourceName string + ResourceName *string } // Contains the details of resource field type PolicyFineTuningResourceInfoDetail struct { // It will represent resource with name and fields. - FieldName string + FieldName *string // List of all field of any resource - SubType PolicyFineTuningResourceInfo + SubType *PolicyFineTuningResourceInfo } // This entity will be used to establish association between CPU Memory Thresholds Profile and Transport Node. Using this entity, user can specify intent for applying Firewall CPU Memory Thresholds Profile to particular Transport Node. @@ -28435,12 +28335,12 @@ type PolicyFirewallCPUMemThresholdsProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Profile - ProfilePath string + ProfilePath *string // Sequence number is used to resolve conflicts when two profiles get applied to a single node. Lower value gets higher precedence. Two binding maps having the same profile path should have the same sequence number. format: int64 - SequenceNumber int64 + SequenceNumber *int64 // References of transport nodes on which the profile intended to be applied. TransportNodes []PolicyResourceReference } @@ -28509,12 +28409,12 @@ type PolicyFirewallCpuMemThresholdsProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // CPU utilization thresholds percentage to monitor and report for distributed firewall. format: int64 - CpuThresholdPercentage int64 + CpuThresholdPercentage *int64 // Heap memory thresholds percentage to monitor and report for distributed firewall. format: int64 - MemThresholdPercentage int64 + MemThresholdPercentage *int64 } // Paged Collection of PolicyFirewallCpuMemThresholdsProfile @@ -28581,12 +28481,12 @@ type PolicyFirewallFloodProtectionProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Profile - ProfilePath string + ProfilePath *string // Sequence number is used to resolve conflicts when two profiles get applied to a single port. Lower value gets higher precedence. Two binding maps having the same profile path should have the same sequence number. format: int64 - SequenceNumber int64 + SequenceNumber *int64 } // Paged collection of Firewall Flood Protection Profile Binding Maps @@ -28653,7 +28553,7 @@ type PolicyFirewallScheduler struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -28668,13 +28568,13 @@ type PolicyFirewallScheduler struct { // Days of week on which rules will be enforced. If property is omitted, then days of the week will not considered while calculating the firewall schedule. It should not be present when the recurring flag is false. Days []string // End date on which schedule to end. Example, 12/22/2019. - EndDate string + EndDate *string // If recurring field is set false, then this field must be present. The schedule will be enforced till the end time of the specified end date. If recurring field is set true, then this field should not be present. EndTime *string // Flag to indicate whether firewall schedule recurs or not. The default value is true and it should be set to false when the firewall schedule does not recur and is a one time time interval. - Recurring bool + Recurring *bool // Start date on which schedule to start. Example, 02/22/2019. - StartDate string + StartDate *string // Time in 24 hour and minutes in multiple of 30. Example, 9:00. If recurring field is set false, then this field must be present. The schedule will start getting enforced from the start time of the specified start date. If recurring field is set true, then this field should not be present. StartTime *string // The recurring time interval in a day during which the schedule will be applicable. It should not be present when the recurring flag is false. @@ -28685,7 +28585,7 @@ type PolicyFirewallScheduler struct { // * PolicyFirewallScheduler#PolicyFirewallScheduler_TIMEZONE_LOCAL // // Host Timezone to be used to enforce firewall rules. - Timezone string + Timezone *string } const PolicyFirewallScheduler_DAYS_SUNDAY = "SUNDAY" const PolicyFirewallScheduler_DAYS_MONDAY = "MONDAY" @@ -28761,30 +28661,30 @@ type PolicyFirewallSessionTimerProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The timeout value for the connection after an ICMP error came back in response to an ICMP packet. format: int64 - IcmpErrorReply int64 + IcmpErrorReply *int64 // The timeout value of connection in seconds after the first packet. This will be the initial timeout for the new ICMP flow. format: int64 - IcmpFirstPacket int64 + IcmpFirstPacket *int64 // The timeout value of connection in seconds after one endpoint sends an RST. format: int64 - TcpClosed int64 + TcpClosed *int64 // The timeout value of connection in seconds after the first FIN has been sent. format: int64 - TcpClosing int64 + TcpClosing *int64 // The timeout value of connection in seconds once the connection has become fully established. format: int64 - TcpEstablished int64 + TcpEstablished *int64 // The timeout value of connection in seconds after both FINs have been exchanged and connection is closed. format: int64 - TcpFinwait int64 + TcpFinwait *int64 // The timeout value of connection in seconds after the first packet has been sent. format: int64 - TcpFirstPacket int64 + TcpFirstPacket *int64 // The timeout value of connection in seconds after a second packet has been transferred. format: int64 - TcpOpening int64 + TcpOpening *int64 // The timeout value of connection in seconds after the first packet. This will be the initial timeout for the new UDP flow. format: int64 - UdpFirstPacket int64 + UdpFirstPacket *int64 // The timeout value of connection in seconds if both hosts have sent packets. format: int64 - UdpMultiple int64 + UdpMultiple *int64 // The timeout value of connection in seconds if the source host sends more than one packet but the destination host has never sent one back. format: int64 - UdpSingle int64 + UdpSingle *int64 } // This entity will be used to establish association between Firewall Timer session profile and Group. Using this entity, user can specify intent for applying Firewall Timer session profile to particular Group. @@ -28831,10 +28731,10 @@ type PolicyFirewallSessionTimerProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Firewall Timer Session Profile - FirewallSessionTimerProfilePath string + FirewallSessionTimerProfilePath *string // Sequence number is used to resolve conflicts when two profiles get applied to a single port. Lower value gets higher precedence. Two binding maps having the same profile path should have the same sequence number. format: int64 SequenceNumber *int64 } @@ -28973,7 +28873,7 @@ type PolicyGroupReference struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Policy entity paths referred by the group instance Refs []string @@ -28982,15 +28882,15 @@ type PolicyGroupReference struct { // Used to specify the display name and value of the IPv4Address. type PolicyIPAddressInfo struct { // Value of the IPv4Address. format: ipv4 - AddressValue string + AddressValue *string // Display name used to help identify the IPv4Address. DisplayName *string // Next hop used in auto-plumbing of static route. If a value is not provided, static route will not be auto-plumbed. format: ipv4 NextHop *string } -// IGMP configuration. -type PolicyIgmpConfig struct { +// IGMP profile. +type PolicyIgmpProfile struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -29033,7 +28933,7 @@ type PolicyIgmpConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Max Response Time inserted into Group-Specific Queries sent in response to Leave Group messages, and is also the amount of time between Group-Specific Query messages. This value may be tuned to modify the \"leave latency\" of the network. A reduced value results in reduced time to detect the loss of the last member of a group. format: int32 LastMemberQueryInterval *int64 @@ -29045,8 +28945,8 @@ type PolicyIgmpConfig struct { RobustnessVariable *int64 } -// Collection of Igmp Config. -type PolicyIgmpConfigListResult struct { +// Collection of Igmp Profile. +type PolicyIgmpProfileListResult struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -29061,8 +28961,8 @@ type PolicyIgmpConfigListResult struct { SortAscending *bool // Field by which records are sorted SortBy *string - // Igmp Config list results - Results []PolicyIgmpConfig + // Igmp Profile list results + Results []PolicyIgmpProfile } // Parameters to let the admin specify a relative position of a security policy or rule w.r.t to another one. @@ -29087,7 +28987,7 @@ const PolicyInsertParameters_OPERATION_BEFORE = "insert_before" // Tier0 or Tier1 interface statistics on specific Enforcement Point. type PolicyInterfaceStatistics struct { // The ID of the logical router port - LogicalRouterPortId string + LogicalRouterPortId *string // Per Node Statistics PerNodeStatistics []LogicalRouterPortStatisticsPerNode } @@ -29099,64 +28999,11 @@ type PolicyInterfaceStatisticsSummary struct { Rx *LogicalRouterPortCounters Tx *LogicalRouterPortCounters // The ID of the logical router port - LogicalRouterPortId string + LogicalRouterPortId *string // Policy path for the interface InterfacePolicyPath *string } -// Entity details for config on-boarding. Typically used for capturing entities that are in either conflict or unsupported on Global Manager. -type PolicyLMEntityInfo struct { - // Display name of the entity. - Name *string - // Policy path of the entity. - Path *string - // Policy entity resource type. - PolicyResourceType *string -} - -// An entity that captures the entity type and its count -type PolicyLMEntityType struct { - // Number of entities on-boarded format: int32 - EntityCompleted *int64 - // Entity count format: int32 - EntityCount int64 - // Entity type - EntityType string -} - -// Captures the diagnostics of the configuration being on-boarded, capturing information such as entity type to counts, id conflicts if any and unsupported types for on-boarding. -type PolicyLMOnboardingDiagnostics struct { - // List of all entities having conflicts. - Conflicts []PolicyLMEntityInfo - // Summary of the entities for on-boarding, one per resource type. - EntitySummary []PolicyLMEntityType - // List of entities that are not supported for on-boarding. - Unsupported []PolicyLMEntityInfo -} - -// Represents metadata to be send as part of onboarding process. -type PolicyLMOnboardingMetadata struct { - // Policy Global Manager software version - GmVersion *string - Members []PolicyLMEntityInfo - // Prefix to be added to resolve conflicts if GM/LM paths collide. Only one of suffix or prefix should be provided - Prefix *string - // Policy Local Manager site id - SiteId *string - // Suffix to be added to resolve conflicts if GM/LM paths collide Only one of suffix or prefix should be provided - Suffix *string -} - -// Represents config on-boarding status on Global Manager. -type PolicyLMOnboardingStatus struct { - // Captures the diagnostics details being on-boarded. - Diagnostics *PolicyLMOnboardingDiagnostics - // Additional details in case of error. - Message *string - // Onboarding status details with stages. - Status *LMConfigOnboardingStatusDetails -} - // Label to reference group of policy entities of same type. type PolicyLabel struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -29201,12 +29048,12 @@ type PolicyLabel struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Policy entity paths referred by the label instance Refs []string // Policy intent entity type from PolicyResourceType - Type_ string + Type_ *string } // Paged Collection of Domains @@ -29279,7 +29126,7 @@ type PolicyLbMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Only if a healthcheck fails consecutively for a specified number of times, given with fall_count, to a member will the member status be marked DOWN. format: int64 FallCount *int64 @@ -29350,7 +29197,7 @@ type PolicyLbPersistenceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -29405,7 +29252,7 @@ type PolicyLbPoolAccess struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -29477,7 +29324,7 @@ type PolicyLbRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // This condition is used to match HTTP request messages by the specific HTTP header field, Host. The Host request header specifies the domain name of the server. The supplied Host HTTP header match condition will be matched as a regular expression. The regular expressions in load balancer rules use the features common to both Java regular expressions and Perl Compatible Regular Expressions (PCREs) with some restrictions. Reference http://www.pcre .org for PCRE and the NSX-T Administrator's Guide for the restrictions. Please note, when regular expressions are used in JSON (JavaScript Object Notation) string, every backslash character (\\) needs to be escaped by one additional backslash character. HostMatch *string @@ -29548,18 +29395,18 @@ type PolicyLbVirtualServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If access log is enabled, all HTTP requests sent to an L7 virtual server are logged to the access log file. Both successful requests (backend server returns 2xx) and unsuccessful requests (backend server returns 4xx or 5xx) are logged to access log, if enabled. AccessLogEnabled *bool // Configures the IP address of the PolicyLbVirtualServer where it receives all client connections and distributes them among the backend servers. format: ip - IpAddress string + IpAddress *string // Path to optional object that enables persistence on a virtual server allowing related client connections to be sent to the same backend server. Persistence is disabled by default. LbPersistenceProfile *string // Ports contains a list of at least one port or port range such as \"80\", \"1234-1236\". Each port element in the list should be a single port or a single port range. format: port-or-range Ports []string // Path to router type object that PolicyLbVirtualServer connects to. The only supported router object is Network. - RouterPath string + RouterPath *string TrafficSource *string } // Identifier denoting this class, when it is used in polymorphic context. @@ -29590,7 +29437,7 @@ type PolicyListResult struct { SortBy *string } -// Multicast routing config. +// Multicast routing configuration. type PolicyMulticastConfig struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -29634,14 +29481,14 @@ type PolicyMulticastConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool - // Enable/disable Multicast Config. + // Enable/disable Multicast Configuration. Enabled *bool - // Updates to IGMP configuration applied on all Tier0 gateways consuming the configuration. - IgmpConfigPath *string - // Updates to PIM configuration applied on all Tier0 gateways consuming the configuration. - PimConfigPath *string + // Updates to IGMP profile applied on all Tier0 gateways consuming the configuration. + IgmpProfilePath *string + // Updates to PIM profile applied on all Tier0 gateways consuming the configuration. + PimProfilePath *string // Replication multicast range. Required when enabled. format: ipv4-cidr-block ReplicationMulticastRange *string } @@ -29649,7 +29496,7 @@ type PolicyMulticastConfig struct { // Multicast Forwarding. type PolicyMulticastForwarding struct { // Policy path to Tier0 gateway. - GatewayPath string + GatewayPath *string McastForwardingPerEdge []MulticastForwardingPerEdge } @@ -29662,7 +29509,7 @@ type PolicyMulticastForwardingInCsvFormat struct { // Multicast Routes. type PolicyMulticastRoutes struct { // Policy path to Tier0 gateway. - GatewayPath string + GatewayPath *string McastRoutesPerEdge []MulticastRoutesPerEdge } @@ -29726,7 +29573,7 @@ type PolicyNat struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -29787,7 +29634,7 @@ type PolicyNatRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -29799,8 +29646,8 @@ type PolicyNatRule struct { // * PolicyNatRule#PolicyNatRule_ACTION_NAT64 // // Source NAT(SNAT) - translates a source IP address in an outbound packet so that the packet appears to originate from a different network. SNAT is only supported when the logical router is running in active-standby mode. Destination NAT(DNAT) - translates the destination IP address of inbound packets so that packets are delivered to a target address into another network. DNAT is only supported when the logical router is running in active-standby mode. Reflexive NAT(REFLEXIVE) - IP-Range and CIDR are supported to define the \"n\". The number of original networks should be exactly the same as that of translated networks. The address translation is deterministic. Reflexive is supported on both Active/Standby and Active/Active LR. NO_SNAT and NO_DNAT - These do not have support for translated_fields, only source_network and destination_network fields are supported. NAT64 - translates an external IPv6 address to a internal IPv4 address. - Action string - // IP Address | Comma separeted list of IP addresses | CIDR. For DNAT and NO_DNAT rules, this is a mandatory field, and represents the destination network for the incoming packets. For other type of rules, optionally it can contain destination network of outgoing packets. NULL value for this field represents ANY network. format: list-of-address-or-block-or-range + Action *string + // This supports single IP address or comma separated list of single IP addresses or CIDR. This does not support IP range or IP sets. For DNAT and NO_DNAT rules, this is a mandatory field, and represents the destination network for the incoming packets. For other type of rules, optionally it can contain destination network of outgoing packets. NULL value for this field represents ANY network. format: list-of-address-or-block-or-range DestinationNetwork *string // The flag, which suggests whether the NAT rule is enabled or disabled. The default is True. Enabled *bool @@ -29820,9 +29667,9 @@ type PolicyNatRule struct { SequenceNumber *int64 // It represents the path of Service on which the NAT rule will be applied. If not provided or if it is blank then Policy manager will consider it as ANY. Service *string - // IP Address | Comma separeted list of IP addresses | CIDR. For SNAT, NO_SNAT, NAT64 and REFLEXIVE rules, this is a mandatory field and represents the source network of the packets leaving the network. For DNAT and NO_DNAT rules, optionally it can contain source network of incoming packets. NULL value for this field represents ANY network. format: list-of-address-or-block-or-range + // This supports single IP address or comma separated list of single IP addresses or CIDR. This does not support IP range or IP sets. For SNAT, NO_SNAT, NAT64 and REFLEXIVE rules, this is a mandatory field and represents the source network of the packets leaving the network. For DNAT and NO_DNAT rules, optionally it can contain source network of incoming packets. NULL value for this field represents ANY network. format: list-of-address-or-block-or-range SourceNetwork *string - // IP Address | Comma separeted list of IP addresses | CIDR. For SNAT, DNAT, NAT64 and REFLEXIVE rules, this ia a mandatory field, which represents the translated network address. For NO_SNAT and NO_DNAT this should be empty. format: list-of-address-or-block-or-range + // This supports single IP address or comma separated list of single IP addresses or CIDR. This does not support IP range or IP sets. For SNAT, DNAT, NAT64 and REFLEXIVE rules, this ia a mandatory field, which represents the translated network address. For NO_SNAT and NO_DNAT this should be empty. format: list-of-address-or-block-or-range TranslatedNetwork *string // Port number or port range format: port-or-range TranslatedPorts *string @@ -29960,8 +29807,8 @@ type PolicyNonCompliantConfig struct { ReportedBy *PolicyResourceReference } -// PIM config. -type PolicyPimConfig struct { +// PIM profile. +type PolicyPimProfile struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -30004,14 +29851,14 @@ type PolicyPimConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Static IPv4 multicast address configuration. format: ip RpAddress *string } -// Collection of Pim Config. -type PolicyPimConfigListResult struct { +// Collection of Pim Profile. +type PolicyPimProfileListResult struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -30026,8 +29873,8 @@ type PolicyPimConfigListResult struct { SortAscending *bool // Field by which records are sorted SortBy *string - // PIM Config list results. - Results []PolicyPimConfig + // PIM Profile list results. + Results []PolicyPimProfile } // Abstract base class for all the realized policy objects @@ -30090,7 +29937,7 @@ type PolicyRealizedResource struct { // * PolicyRealizedResource#PolicyRealizedResource_STATE_ERROR // // Realization state of this object - State string + State *string } const PolicyRealizedResource_STATE_UNAVAILABLE = "UNAVAILABLE" const PolicyRealizedResource_STATE_UNREALIZED = "UNREALIZED" @@ -30283,7 +30130,7 @@ type PolicyServiceChain struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -30379,7 +30226,7 @@ type PolicyServiceInstance struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -30389,7 +30236,7 @@ type PolicyServiceInstance struct { // Deployment mode specifies how the partner appliance will be deployed i.e. in HA or standalone mode. DeploymentMode *string // Unique name of Partner Service in the Marketplace - PartnerServiceName string + PartnerServiceName *string // Possible values are: // // * PolicyServiceInstance#PolicyServiceInstance_TRANSPORT_TYPE_L2_BRIDGE @@ -30400,13 +30247,13 @@ type PolicyServiceInstance struct { // List of attributes specific to a partner for which the service is created. There attributes are passed on to the partner appliance. Attributes []Attribute // Id of the compute(ResourcePool) to which this service needs to be deployed. - ComputeId string + ComputeId *string // UUID of VCenter/Compute Manager as seen on NSX Manager, to which this service needs to be deployed. ContextId *string // Form factor for the deployment of partner service. - DeploymentSpecName string + DeploymentSpecName *string // Template for the deployment of partnet service. - DeploymentTemplateName string + DeploymentTemplateName *string // Possible values are: // // * PolicyServiceInstance#PolicyServiceInstance_FAILURE_POLICY_ALLOW @@ -30417,7 +30264,7 @@ type PolicyServiceInstance struct { // Gateway address for primary management console. If the provided segment already has gateway, this field can be omitted. But if it is provided, it takes precedence always. However, if provided segment does not have gateway, this field must be provided. format: address-or-block-or-range PrimaryGatewayAddress *string // Management IP Address of primary interface of the Service format: address-or-block-or-range - PrimaryInterfaceMgmtIp string + PrimaryInterfaceMgmtIp *string // Path of the segment to which primary interface of the Service VM needs to be connected PrimaryInterfaceNetwork *string // Id of the standard or ditsributed port group for primary management console. Please note that only 1 of the 2 values from 1. primary_interface_network 2. primary_portgroup_id are allowed to be passed. Both can't be passed in the same request. @@ -30435,7 +30282,7 @@ type PolicyServiceInstance struct { // Subnet for secondary management console IP. If the provided segment already has subnet, this field can be omitted. But if it is provided, it takes precedence always. However, if provided segment does not have subnet, this field must be provided. format: address-or-block-or-range SecondarySubnetMask *string // Id of the storage(Datastore). VC moref of Datastore to which this service needs to be deployed. - StorageId string + StorageId *string } const PolicyServiceInstance_DEPLOYMENT_MODE_STAND_ALONE = "STAND_ALONE" const PolicyServiceInstance_DEPLOYMENT_MODE_ACTIVE_STANDBY = "ACTIVE_STANDBY" @@ -30524,7 +30371,7 @@ type PolicyServiceProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // List of attributes specific to a partner for which the service is created. These attributes are passed on to the partner appliance and are opaque to NSX. If a vendor template exposes configurable parameters, then their values are specified here. Attributes []Attribute @@ -30570,7 +30417,7 @@ type PolicySubAttributes struct { // * PolicySubAttributes#PolicySubAttributes_DATATYPE_STRING // // Datatype for sub attribute - Datatype string + Datatype *string // Possible values are: // // * PolicySubAttributes#PolicySubAttributes_KEY_TLS_CIPHER_SUITE @@ -30578,7 +30425,7 @@ type PolicySubAttributes struct { // * PolicySubAttributes#PolicySubAttributes_KEY_CIFS_SMB_VERSION // // Key for sub attribute - Key string + Key *string // Multiple sub attribute values can be specified as elements of array. Value []string } @@ -30590,9 +30437,9 @@ const PolicySubAttributes_KEY_CIFS_SMB_VERSION = "CIFS_SMB_VERSION" // Time interval on which firewall schedule will be applicable type PolicyTimeIntervalValue struct { // Time in 24 hour and minutes in multiple of 30. Example, 17:30. - EndInterval string + EndInterval *string // Time in 24 hour and minutes in multiple of 30. Example, 9:00. - StartInterval string + StartInterval *string } type PolicyTraceflowObservationDropped struct { @@ -30951,7 +30798,7 @@ type PolicyTraceflowObservationForwardedLogical struct { ServiceTtl *int64 // This field specified the prefix IP address a traceflow packet matched in the whitelist in spoofguard. format: ip-cidr-block SpoofguardIp *string - // The source MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\". For example: 00:00:00:00:00:00. + // The source MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\". For example: 00:00:00:00:00:00. format: mac-address SpoofguardMac *string // This field specified the VLAN id a traceflow packet matched in the whitelist in spoofguard. format: int64 SpoofguardVlanId *int64 @@ -31084,7 +30931,7 @@ type PolicyTransportZone struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Flag to indicate if the transport zone is the default one. Only one transport zone can be the default one for a given transport zone type. IsDefault *bool @@ -31171,12 +31018,12 @@ type PolicyUrlCategorizationConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The ids of the context profiles that provides the list of categories to be detected. ContextProfiles []string // Property which specifies the enabling/disabling of the feature. - Enabled bool + Enabled *bool // The frequency in minutes at which the updates are downloaded from the URL categorization cloud service. The minimum allowed value is 5 minutes. format: int32 UpdateFrequency *int64 } @@ -31225,12 +31072,12 @@ type PolicyUrlCategory struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The id of the category. format: int32 - CategoryId int64 + CategoryId *int64 // The name of the category. - CategoryName string + CategoryName *string } // List of Policy URL categories. @@ -31297,16 +31144,16 @@ type PolicyUrlReputationSeverity struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The maximum reputation for the severity. format: int32 - MaxReputation int64 + MaxReputation *int64 // The minimum reputation for the severity. format: int32 - MinReputation int64 + MinReputation *int64 // The name of the severity. - Name string + Name *string // The id of the reputation severity. format: int32 - ReputationSeverityId int64 + ReputationSeverityId *int64 } // List of URL reputation severities. @@ -31342,7 +31189,7 @@ type PoolMemberSetting struct { // Only applicable to static pool members. If supplied for a pool defined by a grouping object, update API would fail. DisplayName *string // Pool member IP address format: ip - IpAddress string + IpAddress *string // Pool member port number format: port-or-range Port *string // Only applicable to static pool members. If supplied for a pool defined by a grouping object, update API would fail. format: int64 @@ -31356,7 +31203,7 @@ const PoolMemberSetting_ADMIN_STATE_GRACEFUL_DISABLED = "GRACEFUL_DISABLED" type PortAddressBindingEntry struct { // IP Address for port binding IpAddress *string - // Mac address for port binding + // Mac address for port binding format: mac-address MacAddress *string // VLAN ID for port binding format: int64 VlanId *int64 @@ -31460,7 +31307,7 @@ type PortDiscoveryProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated IP Discovery Profile IpDiscoveryProfilePath *string @@ -31532,10 +31379,10 @@ type PortMirroringInstance struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Data from source group will be copied to members of destination group. - DestinationGroup string + DestinationGroup *string // Possible values are: // // * PortMirroringInstance#PortMirroringInstance_DIRECTION_INGRESS @@ -31615,10 +31462,10 @@ type PortMirroringProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Data from source group will be copied to members of destination group. Only IPSET group and group with membership criteria VM is supported. IPSET group allows only three ip's. - DestinationGroup string + DestinationGroup *string // Possible values are: // // * PortMirroringProfile#PortMirroringProfile_DIRECTION_INGRESS @@ -31722,7 +31569,7 @@ type PortMonitoringProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated IPFIX L2 Profile IpfixL2ProfilePath *string @@ -31794,7 +31641,7 @@ type PortQosProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated QoS Profile QosProfilePath *string @@ -31864,7 +31711,7 @@ type PortSecurityProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The policy path of the asscociated Segment Security profile SegmentSecurityProfilePath *string @@ -31906,7 +31753,7 @@ type PrefixEntry struct { // Prefix length less than or equal to. format: int32 Le *int64 // Network prefix in CIDR format. \"ANY\" matches all networks. - Network string + Network *string } const PrefixEntry_ACTION_PERMIT = "PERMIT" const PrefixEntry_ACTION_DENY = "DENY" @@ -31955,7 +31802,7 @@ type PrefixList struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Specify ordered list of network prefixes. Prefixes []PrefixEntry @@ -32025,10 +31872,10 @@ type ProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Profile - ProfilePath string + ProfilePath *string } // Represents a label-value pair. @@ -32036,7 +31883,7 @@ type PropertyItem struct { // If the condition is met then the property will be displayed. Examples of expression syntax are provided under 'example_request' section of 'CreateWidgetConfiguration' API. Condition *string // Represents field value of the property. - Field string + Field *string // Set to true if the field is a heading. Default is false. Heading *bool // If a field represents a heading, then label is not needed @@ -32055,7 +31902,7 @@ type PropertyItem struct { // * PropertyItem#PropertyItem_TYPE_URL // // Data type of the field. - Type_ string + Type_ *string } const PropertyItem_TYPE_STRING = "String" const PropertyItem_TYPE_NUMBER = "Number" @@ -32064,7 +31911,7 @@ const PropertyItem_TYPE_URL = "Url" // A Limiter configuration entry that specifies type and metrics type QosBaseRateLimiter struct { - Enabled bool + Enabled *bool // Possible values are: // // * QosBaseRateLimiter#QosBaseRateLimiter_RESOURCE_TYPE_INGRESSRATELIMITER @@ -32140,7 +31987,7 @@ type QosProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Class of service groups similar types of traffic in the network and each type of traffic is treated as a class with its own level of service priority. The lower priority traffic is slowed down or in some cases dropped to provide better throughput for higher priority traffic. format: int32 ClassOfService *int64 @@ -32193,7 +32040,7 @@ type QosProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -32285,7 +32132,7 @@ type Reaction struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Actions that need to be taken when the events occur. These actions must appear in the order that they need to be taken in. This field can be interpreted as the HOW of the Reaction, or simply as \"Then That\". Actions []*data.StructValue @@ -32373,7 +32220,7 @@ type RealizedEnforcementPoint struct { // * RealizedEnforcementPoint#RealizedEnforcementPoint_STATE_ERROR // // Realization state of this object - State string + State *string // Root of Realized Firewalls RealizedFirewalls *RealizedFirewalls // Root of Realized Groups @@ -32467,7 +32314,7 @@ type RealizedFirewall struct { // * RealizedFirewall#RealizedFirewall_STATE_ERROR // // Realization state of this object - State string + State *string } // Identifier denoting this class, when it is used in polymorphic context. // @@ -32539,7 +32386,7 @@ type RealizedFirewallRule struct { // * RealizedFirewallRule#RealizedFirewallRule_STATE_ERROR // // Realization state of this object - State string + State *string // Possible values are: // // * RealizedFirewallRule#RealizedFirewallRule_ACTION_ALLOW @@ -32649,7 +32496,7 @@ type RealizedFirewallSection struct { // * RealizedFirewall#RealizedFirewall_STATE_ERROR // // Realization state of this object - State string + State *string } // Identifier denoting this class, when it is used in polymorphic context. // @@ -32737,7 +32584,7 @@ type RealizedFirewalls struct { // * RealizedFirewalls#RealizedFirewalls_STATE_ERROR // // Realization state of this object - State string + State *string // list of realized firewalls RealizedFirewalls []*data.StructValue } @@ -32746,97 +32593,6 @@ const RealizedFirewalls_STATE_UNREALIZED = "UNREALIZED" const RealizedFirewalls_STATE_REALIZED = "REALIZED" const RealizedFirewalls_STATE_ERROR = "ERROR" -// Realized Global Manager. -type RealizedGlobalManager struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // The type of this resource. - ResourceType *string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // Alarm info detail - Alarms []PolicyAlarmResource - // Desire state paths of this object - IntentReference []string - // Realization API of this object on enforcement point - RealizationApi *string - // Realization id of this object - RealizationSpecificIdentifier *string - // It define the root cause for runtime error. - RuntimeError *string - // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. - RuntimeStatus *string - // Possible values are: - // - // * RealizedGlobalManager#RealizedGlobalManager_STATE_UNAVAILABLE - // * RealizedGlobalManager#RealizedGlobalManager_STATE_UNREALIZED - // * RealizedGlobalManager#RealizedGlobalManager_STATE_REALIZED - // * RealizedGlobalManager#RealizedGlobalManager_STATE_ERROR - // - // Realization state of this object - State string - // Global manager cluster realized state. - ClusterConfig *GlobalManagerClusterRealizedState - // List of tasks associated with this global manager. - Tasks []*data.StructValue -} -const RealizedGlobalManager_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedGlobalManager_STATE_UNREALIZED = "UNREALIZED" -const RealizedGlobalManager_STATE_REALIZED = "REALIZED" -const RealizedGlobalManager_STATE_ERROR = "ERROR" - -// Paged Collection of RealizedGlobalManager. -type RealizedGlobalManagerListResult struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // Opaque cursor to be used for getting next page of records (supplied by current result page) - Cursor *string - // Count of results found (across all pages), set only on first page format: int64 - ResultCount *int64 - // If true, results are sorted in ascending order - SortAscending *bool - // Field by which records are sorted - SortBy *string - // RealizedGlobalManager list results. - Results []RealizedGlobalManager -} - // Realized group type RealizedGroup struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -32900,360 +32656,21 @@ type RealizedGroup struct { // * RealizedGroup#RealizedGroup_STATE_ERROR // // Realization state of this object - State string -} -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const RealizedGroup__TYPE_IDENTIFIER = "RealizedGroup" -const RealizedGroup_RESOURCE_TYPE_REALIZEDNSGROUP = "RealizedNSGroup" -const RealizedGroup_RESOURCE_TYPE_REALIZEDSECURITYGROUP = "RealizedSecurityGroup" -const RealizedGroup_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedGroup_STATE_UNREALIZED = "UNREALIZED" -const RealizedGroup_STATE_REALIZED = "REALIZED" -const RealizedGroup_STATE_ERROR = "ERROR" - -// Realized groups -type RealizedGroups struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // The type of this resource. - ResourceType *string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // Alarm info detail - Alarms []PolicyAlarmResource - // Desire state paths of this object - IntentReference []string - // Realization API of this object on enforcement point - RealizationApi *string - // Realization id of this object - RealizationSpecificIdentifier *string - // It define the root cause for runtime error. - RuntimeError *string - // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. - RuntimeStatus *string - // Possible values are: - // - // * RealizedGroups#RealizedGroups_STATE_UNAVAILABLE - // * RealizedGroups#RealizedGroups_STATE_UNREALIZED - // * RealizedGroups#RealizedGroups_STATE_REALIZED - // * RealizedGroups#RealizedGroups_STATE_ERROR - // - // Realization state of this object - State string - // list of realized groups - RealizedGroups []*data.StructValue -} -const RealizedGroups_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedGroups_STATE_UNREALIZED = "UNREALIZED" -const RealizedGroups_STATE_REALIZED = "REALIZED" -const RealizedGroups_STATE_ERROR = "ERROR" - -// Realized Logical Port -type RealizedLogicalPort struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // The type of this resource. - ResourceType *string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // Alarm info detail - Alarms []PolicyAlarmResource - // Desire state paths of this object - IntentReference []string - // Realization API of this object on enforcement point - RealizationApi *string - // Realization id of this object - RealizationSpecificIdentifier *string - // It define the root cause for runtime error. - RuntimeError *string - // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. - RuntimeStatus *string - // Possible values are: - // - // * RealizedLogicalPort#RealizedLogicalPort_STATE_UNAVAILABLE - // * RealizedLogicalPort#RealizedLogicalPort_STATE_UNREALIZED - // * RealizedLogicalPort#RealizedLogicalPort_STATE_REALIZED - // * RealizedLogicalPort#RealizedLogicalPort_STATE_ERROR - // - // Realization state of this object - State string - // The id of the logical port - LogicalPortId *string - // Possible values are: - // - // * RealizedLogicalPort#RealizedLogicalPort_STATUS_UP - // * RealizedLogicalPort#RealizedLogicalPort_STATUS_DOWN - // * RealizedLogicalPort#RealizedLogicalPort_STATUS_UNKNOWN - // - // The Operational status of the logical port - Status *string -} -const RealizedLogicalPort_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedLogicalPort_STATE_UNREALIZED = "UNREALIZED" -const RealizedLogicalPort_STATE_REALIZED = "REALIZED" -const RealizedLogicalPort_STATE_ERROR = "ERROR" -const RealizedLogicalPort_STATUS_UP = "UP" -const RealizedLogicalPort_STATUS_DOWN = "DOWN" -const RealizedLogicalPort_STATUS_UNKNOWN = "UNKNOWN" - -// Realized Logical Switch -type RealizedLogicalSwitch struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // The type of this resource. - ResourceType *string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // Alarm info detail - Alarms []PolicyAlarmResource - // Desire state paths of this object - IntentReference []string - // Realization API of this object on enforcement point - RealizationApi *string - // Realization id of this object - RealizationSpecificIdentifier *string - // It define the root cause for runtime error. - RuntimeError *string - // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. - RuntimeStatus *string - // Possible values are: - // - // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_UNAVAILABLE - // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_UNREALIZED - // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_REALIZED - // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_ERROR - // - // Realization state of this object - State string - // Id of the logical switch - LogicalSwitchId *string - // Transport zone identifier - TransportZoneId *string -} -const RealizedLogicalSwitch_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedLogicalSwitch_STATE_UNREALIZED = "UNREALIZED" -const RealizedLogicalSwitch_STATE_REALIZED = "REALIZED" -const RealizedLogicalSwitch_STATE_ERROR = "ERROR" - -// Represents a task performing some action in an NSX-T federation. Task types can include onboarding and offboarding of sites and establishment of a standby global manager. -type RealizedManagementTask struct { - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKCOMPATIBILITYTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CHECKRTEPTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_CREATESTANDBYGLOBALMANAGERTASK - // * RealizedManagementTask#RealizedManagementTask_ACTION_ONBOARDLOCALMANAGERTASK - // - // Action being performed by this task. - Action string - // End time for the task. format: int64 - EndTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_RESULT_SUCCESS - // * RealizedManagementTask#RealizedManagementTask_RESULT_ERROR - // - // Result of the task. - Result *string - // Additional information about the task result. - ResultDescription *string - // Start time for the task. format: int64 - StartTime *int64 - // Possible values are: - // - // * RealizedManagementTask#RealizedManagementTask_STATE_STARTING - // * RealizedManagementTask#RealizedManagementTask_STATE_RUNNING - // * RealizedManagementTask#RealizedManagementTask_STATE_COMPLETE - // - // State of the task. - State *string -} -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const RealizedManagementTask__TYPE_IDENTIFIER = "RealizedManagementTask" -const RealizedManagementTask_ACTION_CHECKCOMPATIBILITYTASK = "CheckCompatibilityTask" -const RealizedManagementTask_ACTION_CHECKRTEPTASK = "CheckRtepTask" -const RealizedManagementTask_ACTION_CREATESTANDBYGLOBALMANAGERTASK = "CreateStandbyGlobalManagerTask" -const RealizedManagementTask_ACTION_ONBOARDLOCALMANAGERTASK = "OnboardLocalManagerTask" -const RealizedManagementTask_RESULT_SUCCESS = "SUCCESS" -const RealizedManagementTask_RESULT_ERROR = "ERROR" -const RealizedManagementTask_STATE_STARTING = "STARTING" -const RealizedManagementTask_STATE_RUNNING = "RUNNING" -const RealizedManagementTask_STATE_COMPLETE = "COMPLETE" - -// Realized Network and Security Group -type RealizedNSGroup struct { - // Reference to the evaluated members of the NSGroup. - Evaluations []RealizedNSGroupMemberEvaluation - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // Possible values are: - // - // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDNSGROUP - // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDSECURITYGROUP - ResourceType string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // Alarm info detail - Alarms []PolicyAlarmResource - // Desire state paths of this object - IntentReference []string - // Realization API of this object on enforcement point - RealizationApi *string - // Realization id of this object - RealizationSpecificIdentifier *string - // It define the root cause for runtime error. - RuntimeError *string - // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. - RuntimeStatus *string - // Possible values are: - // - // * RealizedGroup#RealizedGroup_STATE_UNAVAILABLE - // * RealizedGroup#RealizedGroup_STATE_UNREALIZED - // * RealizedGroup#RealizedGroup_STATE_REALIZED - // * RealizedGroup#RealizedGroup_STATE_ERROR - // - // Realization state of this object - State string + State *string } // Identifier denoting this class, when it is used in polymorphic context. // // This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const RealizedNSGroup__TYPE_IDENTIFIER = "RealizedNSGroup" +const RealizedGroup__TYPE_IDENTIFIER = "RealizedGroup" +const RealizedGroup_RESOURCE_TYPE_REALIZEDNSGROUP = "RealizedNSGroup" +const RealizedGroup_RESOURCE_TYPE_REALIZEDSECURITYGROUP = "RealizedSecurityGroup" +const RealizedGroup_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedGroup_STATE_UNREALIZED = "UNREALIZED" +const RealizedGroup_STATE_REALIZED = "REALIZED" +const RealizedGroup_STATE_ERROR = "ERROR" -// Realized NSGroup member evaluation -type RealizedNSGroupMemberEvaluation struct { +// Realized groups +type RealizedGroups struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33306,36 +32723,23 @@ type RealizedNSGroupMemberEvaluation struct { RuntimeStatus *string // Possible values are: // - // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_UNAVAILABLE - // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_UNREALIZED - // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_REALIZED - // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_ERROR + // * RealizedGroups#RealizedGroups_STATE_UNAVAILABLE + // * RealizedGroups#RealizedGroups_STATE_UNREALIZED + // * RealizedGroups#RealizedGroups_STATE_REALIZED + // * RealizedGroups#RealizedGroups_STATE_ERROR // // Realization state of this object - State string - // list of logical ports - LogicalPorts []RealizedLogicalPort - // list of logical switches - LogicalSwitches []RealizedLogicalSwitch - // Count of the members added to this NSGroup format: int64 - MemberCount *int64 - // list of virtual machines - VirtualMachines []RealizedVirtualMachine + State *string + // list of realized groups + RealizedGroups []*data.StructValue } -const RealizedNSGroupMemberEvaluation_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedNSGroupMemberEvaluation_STATE_UNREALIZED = "UNREALIZED" -const RealizedNSGroupMemberEvaluation_STATE_REALIZED = "REALIZED" -const RealizedNSGroupMemberEvaluation_STATE_ERROR = "ERROR" +const RealizedGroups_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedGroups_STATE_UNREALIZED = "UNREALIZED" +const RealizedGroups_STATE_REALIZED = "REALIZED" +const RealizedGroups_STATE_ERROR = "ERROR" -// Realized NSService -type RealizedNSService struct { - // Possible values are: - // - // * RealizedNSService#RealizedNSService_SERVICE_TYPE_SERVICE - // * RealizedNSService#RealizedNSService_SERVICE_TYPE_SERVICE_GROUP - // - // Realized nsservice type - ServiceType *string +// Realized Logical Port +type RealizedLogicalPort struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33362,12 +32766,8 @@ type RealizedNSService struct { DisplayName *string // Unique identifier of this resource Id *string - // Possible values are: - // - // * RealizedService#RealizedService_RESOURCE_TYPE_REALIZEDNSSERVICE - // - // Realized services - ResourceType string + // The type of this resource. + ResourceType *string // Opaque identifiers meaningful to the API user Tags []Tag // Path of its parent @@ -33392,25 +32792,34 @@ type RealizedNSService struct { RuntimeStatus *string // Possible values are: // - // * RealizedService#RealizedService_STATE_UNAVAILABLE - // * RealizedService#RealizedService_STATE_UNREALIZED - // * RealizedService#RealizedService_STATE_REALIZED - // * RealizedService#RealizedService_STATE_ERROR + // * RealizedLogicalPort#RealizedLogicalPort_STATE_UNAVAILABLE + // * RealizedLogicalPort#RealizedLogicalPort_STATE_UNREALIZED + // * RealizedLogicalPort#RealizedLogicalPort_STATE_REALIZED + // * RealizedLogicalPort#RealizedLogicalPort_STATE_ERROR // // Realization state of this object - State string + State *string + // The id of the logical port + LogicalPortId *string + // Possible values are: + // + // * RealizedLogicalPort#RealizedLogicalPort_STATUS_UP + // * RealizedLogicalPort#RealizedLogicalPort_STATUS_DOWN + // * RealizedLogicalPort#RealizedLogicalPort_STATUS_UNKNOWN + // + // The Operational status of the logical port + Status *string } -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const RealizedNSService__TYPE_IDENTIFIER = "RealizedNSService" -const RealizedNSService_SERVICE_TYPE_SERVICE = "SERVICE" -const RealizedNSService_SERVICE_TYPE_SERVICE_GROUP = "SERVICE_GROUP" +const RealizedLogicalPort_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedLogicalPort_STATE_UNREALIZED = "UNREALIZED" +const RealizedLogicalPort_STATE_REALIZED = "REALIZED" +const RealizedLogicalPort_STATE_ERROR = "ERROR" +const RealizedLogicalPort_STATUS_UP = "UP" +const RealizedLogicalPort_STATUS_DOWN = "DOWN" +const RealizedLogicalPort_STATUS_UNKNOWN = "UNKNOWN" -// Realized Network and Security Group -type RealizedSecurityGroup struct { - // Reference to the evaluted members of the Security Group. - Evaluations []RealizedSecurityGroupMemberEvaluation +// Realized Logical Switch +type RealizedLogicalSwitch struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33437,11 +32846,8 @@ type RealizedSecurityGroup struct { DisplayName *string // Unique identifier of this resource Id *string - // Possible values are: - // - // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDNSGROUP - // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDSECURITYGROUP - ResourceType string + // The type of this resource. + ResourceType *string // Opaque identifiers meaningful to the API user Tags []Tag // Path of its parent @@ -33466,40 +32872,27 @@ type RealizedSecurityGroup struct { RuntimeStatus *string // Possible values are: // - // * RealizedGroup#RealizedGroup_STATE_UNAVAILABLE - // * RealizedGroup#RealizedGroup_STATE_UNREALIZED - // * RealizedGroup#RealizedGroup_STATE_REALIZED - // * RealizedGroup#RealizedGroup_STATE_ERROR + // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_UNAVAILABLE + // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_UNREALIZED + // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_REALIZED + // * RealizedLogicalSwitch#RealizedLogicalSwitch_STATE_ERROR // // Realization state of this object - State string -} -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const RealizedSecurityGroup__TYPE_IDENTIFIER = "RealizedSecurityGroup" - -type RealizedSecurityGroupListResult struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // Opaque cursor to be used for getting next page of records (supplied by current result page) - Cursor *string - // Count of results found (across all pages), set only on first page format: int64 - ResultCount *int64 - // If true, results are sorted in ascending order - SortAscending *bool - // Field by which records are sorted - SortBy *string - // Paged Collection of realized Security Groups - Results []RealizedSecurityGroup + State *string + // Id of the logical switch + LogicalSwitchId *string + // Transport zone identifier + TransportZoneId *string } +const RealizedLogicalSwitch_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedLogicalSwitch_STATE_UNREALIZED = "UNREALIZED" +const RealizedLogicalSwitch_STATE_REALIZED = "REALIZED" +const RealizedLogicalSwitch_STATE_ERROR = "ERROR" -// Realized Security Group member evaluation -type RealizedSecurityGroupMemberEvaluation struct { +// Realized Network and Security Group +type RealizedNSGroup struct { + // Reference to the evaluated members of the NSGroup. + Evaluations []RealizedNSGroupMemberEvaluation // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33526,8 +32919,11 @@ type RealizedSecurityGroupMemberEvaluation struct { DisplayName *string // Unique identifier of this resource Id *string - // The type of this resource. - ResourceType *string + // Possible values are: + // + // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDNSGROUP + // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDSECURITYGROUP + ResourceType string // Opaque identifiers meaningful to the API user Tags []Tag // Path of its parent @@ -33552,25 +32948,21 @@ type RealizedSecurityGroupMemberEvaluation struct { RuntimeStatus *string // Possible values are: // - // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_UNAVAILABLE - // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_UNREALIZED - // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_REALIZED - // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_ERROR + // * RealizedGroup#RealizedGroup_STATE_UNAVAILABLE + // * RealizedGroup#RealizedGroup_STATE_UNREALIZED + // * RealizedGroup#RealizedGroup_STATE_REALIZED + // * RealizedGroup#RealizedGroup_STATE_ERROR // // Realization state of this object - State string - // Count of the members added to this Security Group format: int64 - MemberCount *int64 - // list of virtual machines - VirtualMachines []RealizedVirtualMachine + State *string } -const RealizedSecurityGroupMemberEvaluation_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedSecurityGroupMemberEvaluation_STATE_UNREALIZED = "UNREALIZED" -const RealizedSecurityGroupMemberEvaluation_STATE_REALIZED = "REALIZED" -const RealizedSecurityGroupMemberEvaluation_STATE_ERROR = "ERROR" +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const RealizedNSGroup__TYPE_IDENTIFIER = "RealizedNSGroup" -// Realized Service -type RealizedService struct { +// Realized NSGroup member evaluation +type RealizedNSGroupMemberEvaluation struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33597,12 +32989,8 @@ type RealizedService struct { DisplayName *string // Unique identifier of this resource Id *string - // Possible values are: - // - // * RealizedService#RealizedService_RESOURCE_TYPE_REALIZEDNSSERVICE - // - // Realized services - ResourceType string + // The type of this resource. + ResourceType *string // Opaque identifiers meaningful to the API user Tags []Tag // Path of its parent @@ -33627,26 +33015,36 @@ type RealizedService struct { RuntimeStatus *string // Possible values are: // - // * RealizedService#RealizedService_STATE_UNAVAILABLE - // * RealizedService#RealizedService_STATE_UNREALIZED - // * RealizedService#RealizedService_STATE_REALIZED - // * RealizedService#RealizedService_STATE_ERROR + // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_UNAVAILABLE + // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_UNREALIZED + // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_REALIZED + // * RealizedNSGroupMemberEvaluation#RealizedNSGroupMemberEvaluation_STATE_ERROR // // Realization state of this object - State string + State *string + // list of logical ports + LogicalPorts []RealizedLogicalPort + // list of logical switches + LogicalSwitches []RealizedLogicalSwitch + // Count of the members added to this NSGroup format: int64 + MemberCount *int64 + // list of virtual machines + VirtualMachines []RealizedVirtualMachine } -// Identifier denoting this class, when it is used in polymorphic context. -// -// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. -const RealizedService__TYPE_IDENTIFIER = "RealizedService" -const RealizedService_RESOURCE_TYPE_REALIZEDNSSERVICE = "RealizedNSService" -const RealizedService_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedService_STATE_UNREALIZED = "UNREALIZED" -const RealizedService_STATE_REALIZED = "REALIZED" -const RealizedService_STATE_ERROR = "ERROR" +const RealizedNSGroupMemberEvaluation_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedNSGroupMemberEvaluation_STATE_UNREALIZED = "UNREALIZED" +const RealizedNSGroupMemberEvaluation_STATE_REALIZED = "REALIZED" +const RealizedNSGroupMemberEvaluation_STATE_ERROR = "ERROR" -// Realized services -type RealizedServices struct { +// Realized NSService +type RealizedNSService struct { + // Possible values are: + // + // * RealizedNSService#RealizedNSService_SERVICE_TYPE_SERVICE + // * RealizedNSService#RealizedNSService_SERVICE_TYPE_SERVICE_GROUP + // + // Realized nsservice type + ServiceType *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33673,8 +33071,12 @@ type RealizedServices struct { DisplayName *string // Unique identifier of this resource Id *string - // The type of this resource. - ResourceType *string + // Possible values are: + // + // * RealizedService#RealizedService_RESOURCE_TYPE_REALIZEDNSSERVICE + // + // Realized services + ResourceType string // Opaque identifiers meaningful to the API user Tags []Tag // Path of its parent @@ -33699,23 +33101,25 @@ type RealizedServices struct { RuntimeStatus *string // Possible values are: // - // * RealizedServices#RealizedServices_STATE_UNAVAILABLE - // * RealizedServices#RealizedServices_STATE_UNREALIZED - // * RealizedServices#RealizedServices_STATE_REALIZED - // * RealizedServices#RealizedServices_STATE_ERROR + // * RealizedService#RealizedService_STATE_UNAVAILABLE + // * RealizedService#RealizedService_STATE_UNREALIZED + // * RealizedService#RealizedService_STATE_REALIZED + // * RealizedService#RealizedService_STATE_ERROR // // Realization state of this object - State string - // List of realized services - RealizedServices []*data.StructValue + State *string } -const RealizedServices_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedServices_STATE_UNREALIZED = "UNREALIZED" -const RealizedServices_STATE_REALIZED = "REALIZED" -const RealizedServices_STATE_ERROR = "ERROR" +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const RealizedNSService__TYPE_IDENTIFIER = "RealizedNSService" +const RealizedNSService_SERVICE_TYPE_SERVICE = "SERVICE" +const RealizedNSService_SERVICE_TYPE_SERVICE_GROUP = "SERVICE_GROUP" -// Realized Site. -type RealizedSite struct { +// Realized Network and Security Group +type RealizedSecurityGroup struct { + // Reference to the evaluted members of the Security Group. + Evaluations []RealizedSecurityGroupMemberEvaluation // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33742,8 +33146,11 @@ type RealizedSite struct { DisplayName *string // Unique identifier of this resource Id *string - // The type of this resource. - ResourceType *string + // Possible values are: + // + // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDNSGROUP + // * RealizedGroup#RealizedGroup_RESOURCE_TYPE_REALIZEDSECURITYGROUP + ResourceType string // Opaque identifiers meaningful to the API user Tags []Tag // Path of its parent @@ -33768,25 +33175,20 @@ type RealizedSite struct { RuntimeStatus *string // Possible values are: // - // * RealizedSite#RealizedSite_STATE_UNAVAILABLE - // * RealizedSite#RealizedSite_STATE_UNREALIZED - // * RealizedSite#RealizedSite_STATE_REALIZED - // * RealizedSite#RealizedSite_STATE_ERROR + // * RealizedGroup#RealizedGroup_STATE_UNAVAILABLE + // * RealizedGroup#RealizedGroup_STATE_UNREALIZED + // * RealizedGroup#RealizedGroup_STATE_REALIZED + // * RealizedGroup#RealizedGroup_STATE_ERROR // // Realization state of this object - State string - // Global manager cluster realized state. - ClusterConfig *SiteClusterRealizedState - // List of tasks associated with this site. - Tasks []*data.StructValue + State *string } -const RealizedSite_STATE_UNAVAILABLE = "UNAVAILABLE" -const RealizedSite_STATE_UNREALIZED = "UNREALIZED" -const RealizedSite_STATE_REALIZED = "REALIZED" -const RealizedSite_STATE_ERROR = "ERROR" +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const RealizedSecurityGroup__TYPE_IDENTIFIER = "RealizedSecurityGroup" -// Paged Collection of RealizedSite. -type RealizedSiteListResult struct { +type RealizedSecurityGroupListResult struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -33801,9 +33203,225 @@ type RealizedSiteListResult struct { SortAscending *bool // Field by which records are sorted SortBy *string - // RealizedSite list results. - Results []RealizedSite + // Paged Collection of realized Security Groups + Results []RealizedSecurityGroup +} + +// Realized Security Group member evaluation +type RealizedSecurityGroupMemberEvaluation struct { + // The server will populate this field when returing the resource. Ignored on PUT and POST. + Links []ResourceLink + // Schema for this resource + Schema *string + // Link to this resource + Self *SelfResourceLink + // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 + Revision *int64 + // Timestamp of resource creation format: int64 + CreateTime *int64 + // ID of the user who created this resource + CreateUser *string + // Timestamp of last modification format: int64 + LastModifiedTime *int64 + // ID of the user who last modified this resource + LastModifiedUser *string + // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. + Protection *string + // Indicates system owned resource + SystemOwned *bool + // Description of this resource + Description *string + // Defaults to ID if not set + DisplayName *string + // Unique identifier of this resource + Id *string + // The type of this resource. + ResourceType *string + // Opaque identifiers meaningful to the API user + Tags []Tag + // Path of its parent + ParentPath *string + // Absolute path of this object + Path *string + // Path relative from its parent + RelativePath *string + // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. + UniqueId *string + // Alarm info detail + Alarms []PolicyAlarmResource + // Desire state paths of this object + IntentReference []string + // Realization API of this object on enforcement point + RealizationApi *string + // Realization id of this object + RealizationSpecificIdentifier *string + // It define the root cause for runtime error. + RuntimeError *string + // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. + RuntimeStatus *string + // Possible values are: + // + // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_UNAVAILABLE + // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_UNREALIZED + // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_REALIZED + // * RealizedSecurityGroupMemberEvaluation#RealizedSecurityGroupMemberEvaluation_STATE_ERROR + // + // Realization state of this object + State *string + // Count of the members added to this Security Group format: int64 + MemberCount *int64 + // list of virtual machines + VirtualMachines []RealizedVirtualMachine +} +const RealizedSecurityGroupMemberEvaluation_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedSecurityGroupMemberEvaluation_STATE_UNREALIZED = "UNREALIZED" +const RealizedSecurityGroupMemberEvaluation_STATE_REALIZED = "REALIZED" +const RealizedSecurityGroupMemberEvaluation_STATE_ERROR = "ERROR" + +// Realized Service +type RealizedService struct { + // The server will populate this field when returing the resource. Ignored on PUT and POST. + Links []ResourceLink + // Schema for this resource + Schema *string + // Link to this resource + Self *SelfResourceLink + // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 + Revision *int64 + // Timestamp of resource creation format: int64 + CreateTime *int64 + // ID of the user who created this resource + CreateUser *string + // Timestamp of last modification format: int64 + LastModifiedTime *int64 + // ID of the user who last modified this resource + LastModifiedUser *string + // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. + Protection *string + // Indicates system owned resource + SystemOwned *bool + // Description of this resource + Description *string + // Defaults to ID if not set + DisplayName *string + // Unique identifier of this resource + Id *string + // Possible values are: + // + // * RealizedService#RealizedService_RESOURCE_TYPE_REALIZEDNSSERVICE + // + // Realized services + ResourceType string + // Opaque identifiers meaningful to the API user + Tags []Tag + // Path of its parent + ParentPath *string + // Absolute path of this object + Path *string + // Path relative from its parent + RelativePath *string + // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. + UniqueId *string + // Alarm info detail + Alarms []PolicyAlarmResource + // Desire state paths of this object + IntentReference []string + // Realization API of this object on enforcement point + RealizationApi *string + // Realization id of this object + RealizationSpecificIdentifier *string + // It define the root cause for runtime error. + RuntimeError *string + // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. + RuntimeStatus *string + // Possible values are: + // + // * RealizedService#RealizedService_STATE_UNAVAILABLE + // * RealizedService#RealizedService_STATE_UNREALIZED + // * RealizedService#RealizedService_STATE_REALIZED + // * RealizedService#RealizedService_STATE_ERROR + // + // Realization state of this object + State *string } +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const RealizedService__TYPE_IDENTIFIER = "RealizedService" +const RealizedService_RESOURCE_TYPE_REALIZEDNSSERVICE = "RealizedNSService" +const RealizedService_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedService_STATE_UNREALIZED = "UNREALIZED" +const RealizedService_STATE_REALIZED = "REALIZED" +const RealizedService_STATE_ERROR = "ERROR" + +// Realized services +type RealizedServices struct { + // The server will populate this field when returing the resource. Ignored on PUT and POST. + Links []ResourceLink + // Schema for this resource + Schema *string + // Link to this resource + Self *SelfResourceLink + // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 + Revision *int64 + // Timestamp of resource creation format: int64 + CreateTime *int64 + // ID of the user who created this resource + CreateUser *string + // Timestamp of last modification format: int64 + LastModifiedTime *int64 + // ID of the user who last modified this resource + LastModifiedUser *string + // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. + Protection *string + // Indicates system owned resource + SystemOwned *bool + // Description of this resource + Description *string + // Defaults to ID if not set + DisplayName *string + // Unique identifier of this resource + Id *string + // The type of this resource. + ResourceType *string + // Opaque identifiers meaningful to the API user + Tags []Tag + // Path of its parent + ParentPath *string + // Absolute path of this object + Path *string + // Path relative from its parent + RelativePath *string + // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. + UniqueId *string + // Alarm info detail + Alarms []PolicyAlarmResource + // Desire state paths of this object + IntentReference []string + // Realization API of this object on enforcement point + RealizationApi *string + // Realization id of this object + RealizationSpecificIdentifier *string + // It define the root cause for runtime error. + RuntimeError *string + // Possible values could be UP, DOWN, UNKNOWN, DEGRADED This list is not exhaustive. + RuntimeStatus *string + // Possible values are: + // + // * RealizedServices#RealizedServices_STATE_UNAVAILABLE + // * RealizedServices#RealizedServices_STATE_UNREALIZED + // * RealizedServices#RealizedServices_STATE_REALIZED + // * RealizedServices#RealizedServices_STATE_ERROR + // + // Realization state of this object + State *string + // List of realized services + RealizedServices []*data.StructValue +} +const RealizedServices_STATE_UNAVAILABLE = "UNAVAILABLE" +const RealizedServices_STATE_UNREALIZED = "UNREALIZED" +const RealizedServices_STATE_REALIZED = "REALIZED" +const RealizedServices_STATE_ERROR = "ERROR" // Realized Virtual Machine type RealizedVirtualMachine struct { @@ -33865,7 +33483,7 @@ type RealizedVirtualMachine struct { // * RealizedVirtualMachine#RealizedVirtualMachine_STATE_ERROR // // Realization state of this object - State string + State *string // List of external compute ids of the virtual machine in the format 'id-type-key:value' , list of external compute ids ['uuid:xxxx-xxxx-xxxx-xxxx', 'moIdOnHost:moref-11', 'instanceUuid:xxxx-xxxx-xxxx-xxxx'] ComputeIds []string // Id of the host on which the vm exists. @@ -33910,35 +33528,6 @@ type RealizedVirtualMachineListResult struct { Results []RealizedVirtualMachine } -// Recommended Feature Permission -type RecommendedFeaturePermission struct { - // Permission - RecommendedPermissions []string - // List of source features - SrcFeatures []string - // Feature - TargetFeature string -} - -type RecommendedFeaturePermissionListResult struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // Opaque cursor to be used for getting next page of records (supplied by current result page) - Cursor *string - // Count of results found (across all pages), set only on first page format: int64 - ResultCount *int64 - // If true, results are sorted in ascending order - SortAscending *bool - // Field by which records are sorted - SortBy *string - // List results - Results []RecommendedFeaturePermission -} - // Ordered list of rules long with the path of PolicyServiceInstance to which the traffic needs to be redirected. | Please note that the scope property must be provided for NS redirection | policy if redirect to is a service chain. For NS, when redirect to is not | to the service chain, and scope is specified on RedirectionPolicy, it | will be ignored. The scope will be determined from redirect to path | instead. For EW policy, scope must not be supplied in the request. | Path to either Tier0 or Tier1 is allowed as the scope. Only 1 path | can be specified as a scope. | Also, note that, if stateful flag is not sent, it will be treated as true. If statelessness is intended, false must be sent explicitly as the value | for stateful field. type RedirectionPolicy struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -33983,7 +33572,7 @@ type RedirectionPolicy struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // - Distributed Firewall - Policy framework provides five pre-defined categories for classifying a security policy. They are \"Ethernet\",\"Emergency\", \"Infrastructure\" \"Environment\" and \"Application\". There is a pre-determined order in which the policy framework manages the priority of these security policies. Ethernet category is for supporting layer 2 firewall rules. The other four categories are applicable for layer 3 rules. Amongst them, the Emergency category has the highest priority followed by Infrastructure, Environment and then Application rules. Administrator can choose to categorize a security policy into the above categories or can choose to leave it empty. If empty it will have the least precedence w.r.t the above four categories. - Edge Firewall - Policy Framework for Edge Firewall provides six pre-defined categories \"Emergency\", \"SystemRules\", \"SharedPreRules\", \"LocalGatewayRules\", \"AutoServiceRules\" and \"Default\", in order of priority of rules. All categories are allowed for Gatetway Policies that belong to 'default' Domain. However, for user created domains, category is restricted to \"SharedPreRules\" or \"LocalGatewayRules\" only. Also, the users can add/modify/delete rules from only the \"SharedPreRules\" and \"LocalGatewayRules\" categories. If user doesn't specify the category then defaulted to \"Rules\". System generated category is used by NSX created rules, for example BFD rules. Autoplumbed category used by NSX verticals to autoplumb data path rules. Finally, \"Default\" category is the placeholder default rules with lowest in the order of priority. Category *string @@ -34083,7 +33672,7 @@ type RedirectionRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // We need paths as duplicate names may exist for groups under different domains. Along with paths we support IP Address of type IPv4 and IPv6. IP Address can be in one of the format(CIDR, IP Address, Range of IP Address). In order to specify all groups, use the constant \"ANY\". This is case insensitive. If \"ANY\" is used, it should be the ONLY element in the group array. Error will be thrown if ANY is used in conjunction with other values. DestinationGroups []string @@ -34195,15 +33784,15 @@ type RelatedApiError struct { // Related attribute on the target resource for conditional constraints based on related attribute value. Example - destinationGroups/service/action is related attribute of sourceGroups in communcation entry. type RelatedAttribute struct { // Related attribute name on the target entity. - Attribute string + Attribute *string } // Represents the leaf level type expression to express constraint as value of realted attribute to the target. Example - Constraint traget attribute 'X' (example in Constraint), if destinationGroups contains 'vCeneter' then allow only values \"HTTPS\", \"HTTP\" for attribute X. { \"target\":{ \"target_resource_type\":\"CommunicationEntry\", \"attribute\":\"services\", \"path_prefix\": \"/infra/domains/{{DOMAIN}}/edge-communication-maps/default/communication-entries/\" }, \"constraint_expression\": { \"resource_type\": \"RelatedAttributeConditionalExpression\", \"related_attribute\":{ \"attribute\":\"destinationGroups\" }, \"condition\" : { \"operator\":\"INCLUDES\", \"rhs_value\": [\"/infra/domains/mgw/groups/VCENTER\"], \"value_constraint\": { \"resource_type\": \"ValueConstraintExpression\", \"operator\":\"INCLUDES\", \"values\":[\"/infra/services/HTTP\", \"/infra/services/HTTPS\"] } } } } type RelatedAttributeConditionalExpression struct { // Conditional value expression for target based on realted attribute value. - Condition ConditionalValueConstraintExpression + Condition *ConditionalValueConstraintExpression // Related attribute. - RelatedAttribute RelatedAttribute + RelatedAttribute *RelatedAttribute // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -34248,13 +33837,13 @@ const RelatedAttributeConditionalExpression__TYPE_IDENTIFIER = "RelatedAttribute // Remote file server type RemoteFileServer struct { // Remote server directory to copy bundle files to - DirectoryPath string + DirectoryPath *string // Server port format: int64 Port *int64 // Protocol to use to copy file - Protocol FileTransferProtocol + Protocol *FileTransferProtocol // Remote server hostname or IP address format: hostname-or-ip - Server string + Server *string } // Remote server @@ -34262,9 +33851,9 @@ type RemoteServerFingerprint struct { // Server port format: int64 Port *int64 // Remote server hostname or IP address format: hostname-or-ip - Server string + Server *string // SSH fingerprint of server - SshFingerprint string + SshFingerprint *string } // Remote server @@ -34272,7 +33861,7 @@ type RemoteServerFingerprintRequest struct { // Server port format: int64 Port *int64 // Remote server hostname or IP address format: hostname-or-ip - Server string + Server *string } // Render configuration to be applied to the widget. @@ -34323,7 +33912,7 @@ type Resource struct { // Resource Field Pointer representing the exact value within a policy object. type ResourceFieldPointer struct { // Field Pointer referencing the exact field within the policy object. - FieldPointer string + FieldPointer *string // Policy Path referencing a policy object. If not supplied, the field pointer will be applied to the event source. Path *string } @@ -34333,7 +33922,7 @@ type ResourceInfo struct { // It will represent resource identifiers. For example, policy objects will be represented with paths and virtual machine will be represented with external ids. ResourceIds []string // It will represent resource type on which tag bulk operation to be performed. Supported resource type is VirtualMachine. - ResourceType string + ResourceType *string } // Collection of resource info objects @@ -34377,7 +33966,7 @@ type ResourceOperation struct { // Operation types. OperationTypes []string // Regex path representing a regex expression on resources. This regex is used to identify the object(s) that is/are the source of the Event. For instance: specifying \"Lb\* | /infra/tier-0s/vmc/ipsec-vpn-services/default\" as a source means that ANY resource starting with Lb or ANY resource with \"/infra/tier-0s/vmc/ipsec-vpn-services/default\" as path would be the source of the event in question. - ResourcePointer string + ResourcePointer *string // Possible values are: // // * Source#Source_RESOURCE_TYPE_RESOURCEOPERATION @@ -34413,14 +34002,14 @@ type ResourceTagStatus struct { // Resource display name ResourceDisplayName *string // Resource id - ResourceId string + ResourceId *string // Possible values are: // // * ResourceTagStatus#ResourceTagStatus_TAG_STATUS_SUCCESS // * ResourceTagStatus#ResourceTagStatus_TAG_STATUS_ERROR // // Status of tag apply or remove operation - TagStatus string + TagStatus *string } const ResourceTagStatus_TAG_STATUS_SUCCESS = "Success" const ResourceTagStatus_TAG_STATUS_ERROR = "Error" @@ -34430,7 +34019,7 @@ type ResourceTypeTagStatus struct { // List of resources on which tag needs to be applied ResourceTagStatus []ResourceTagStatus // Resource type - ResourceType string + ResourceType *string } // Configuration where backup files are stored for restore @@ -34438,7 +34027,7 @@ type RestoreConfiguration struct { // Passphrase used to encrypt backup files. Passphrase *string // The server from which backup files will be retrieved for restore. - RemoteFileServer RemoteFileServer + RemoteFileServer *RemoteFileServer } // Restore step info @@ -34467,7 +34056,7 @@ type RevisionedResource struct { // Role type Role struct { // Short identifier for the role. Must be all lower case with no spaces. - Role string + Role *string // A short, human-friendly display name of the role. RoleDisplayName *string } @@ -34648,9 +34237,9 @@ type RouteAdvertisementRule struct { // * RouteAdvertisementRule#RouteAdvertisementRule_ACTION_DENY // // Action to advertise filtered routes to the connected Tier0 gateway. PERMIT: Enables the advertisment DENY: Disables the advertisement - Action string + Action *string // Display name should be unique. - Name string + Name *string // Possible values are: // // * RouteAdvertisementRule#RouteAdvertisementRule_PREFIX_OPERATOR_GE @@ -34688,7 +34277,7 @@ const RouteAdvertisementRule_ROUTE_ADVERTISEMENT_TYPES_IPSEC_LOCAL_ENDPOINT = "T // List of routes to be aggregated type RouteAggregationEntry struct { // CIDR of aggregate address format: ip-cidr-block - Prefix string + Prefix *string // Send only summarized route. Summarization reduces number of routes advertised by representing multiple related routes with prefix property. SummaryOnly *bool } @@ -34746,7 +34335,7 @@ type RouteBasedIPSecVpnSession struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -34782,11 +34371,11 @@ type RouteBasedIPSecVpnSession struct { // Policy path referencing IKE profile to be used. Default is set according to system default profile. IkeProfilePath *string // Policy path referencing Local endpoint. - LocalEndpointPath string + LocalEndpointPath *string // Public IPV4 address of the remote device terminating the VPN connection. - PeerAddress string + PeerAddress *string // Peer ID to uniquely identify the peer site. The peer ID is the public IP address of the remote device terminating the VPN tunnel. When NAT is configured for the peer, enter the private IP address of the peer. - PeerId string + PeerId *string // IPSec Pre-shared key. Maximum length of this field is 128 characters. Psk *string // TCP Maximum Segment Size Clamping Direction and Value. @@ -34846,7 +34435,7 @@ type RouteMapEntry struct { // * RouteMapEntry#RouteMapEntry_ACTION_DENY // // Action for the route map entry - Action string + Action *string // Community list match criteria for route map. Properties community_list_matches and prefix_list_matches are mutually exclusive and cannot be used in the same route map entry. CommunityListMatches []CommunityMatchCriteria // Prefix list match criteria for route map. Properties community_list_matches and prefix_list_matches are mutually exclusive and cannot be used in the same route map entry. @@ -34945,7 +34534,7 @@ type RowListField struct { // Alias *string // JSON path to the root of the api result set for forming rows. - Path string + Path *string } // A rule indicates the action to be performed for various types of traffic flowing between workload groups. @@ -34992,7 +34581,7 @@ type Rule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // We need paths as duplicate names may exist for groups under different domains. Along with paths we support IP Address of type IPv4 and IPv6. IP Address can be in one of the format(CIDR, IP Address, Range of IP Address). In order to specify all groups, use the constant \"ANY\". This is case insensitive. If \"ANY\" is used, it should be the ONLY element in the group array. Error will be thrown if ANY is used in conjunction with other values. DestinationGroups []string @@ -35173,7 +34762,7 @@ type SIDataCounter struct { // The multicast and broadcast packets or bytes format: int64 MulticastBroadcast *int64 // The total packets or bytes format: int64 - Total int64 + Total *int64 } type SIMacLearningCounters struct { @@ -35187,9 +34776,9 @@ type SIMacLearningCounters struct { type SIPacketTypeAndCounter struct { // The number of packets. format: int64 - Counter int64 + Counter *int64 // The type of the packets - PacketType string + PacketType *string } type SIPacketsDroppedBySecurity struct { @@ -35216,13 +34805,13 @@ type SVMDeploymentSpec struct { // * SVMDeploymentSpec#SVMDeploymentSpec_HOST_TYPE_UBUNTUKVM // // Host Type on which the specified OVF can be deployed. - HostType string + HostType *string // Minimum host version supported by this ovf. If a host in the deployment cluster is having version less than this, then service deployment will not happen on that host. MinHostVersion *string // Deployment Spec name for ease of use, since multiple DeploymentSpec can be specified. Name *string // Location of the partner VM OVF to be deployed. - OvfUrl string + OvfUrl *string // Possible values are: // // * SVMDeploymentSpec#SVMDeploymentSpec_SERVICE_FORM_FACTOR_SMALL @@ -35231,6 +34820,8 @@ type SVMDeploymentSpec struct { // // Supported ServiceInsertion Form Factor for the OVF deployment. The default FormFactor is Medium. ServiceFormFactor *string + // Partner needs to specify the Service VM version which will get deployed. + SvmVersion *string } const SVMDeploymentSpec_HOST_TYPE_ESXI = "ESXI" const SVMDeploymentSpec_HOST_TYPE_RHELKVM = "RHELKVM" @@ -35255,7 +34846,7 @@ type SearchResponse struct { SortAscending *bool // Field by which records are sorted SortBy *string - // Search results + // List of records matching the search query. Results []*data.StructValue } @@ -35303,7 +34894,7 @@ type SecurityPolicy struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // - Distributed Firewall - Policy framework provides five pre-defined categories for classifying a security policy. They are \"Ethernet\",\"Emergency\", \"Infrastructure\" \"Environment\" and \"Application\". There is a pre-determined order in which the policy framework manages the priority of these security policies. Ethernet category is for supporting layer 2 firewall rules. The other four categories are applicable for layer 3 rules. Amongst them, the Emergency category has the highest priority followed by Infrastructure, Environment and then Application rules. Administrator can choose to categorize a security policy into the above categories or can choose to leave it empty. If empty it will have the least precedence w.r.t the above four categories. - Edge Firewall - Policy Framework for Edge Firewall provides six pre-defined categories \"Emergency\", \"SystemRules\", \"SharedPreRules\", \"LocalGatewayRules\", \"AutoServiceRules\" and \"Default\", in order of priority of rules. All categories are allowed for Gatetway Policies that belong to 'default' Domain. However, for user created domains, category is restricted to \"SharedPreRules\" or \"LocalGatewayRules\" only. Also, the users can add/modify/delete rules from only the \"SharedPreRules\" and \"LocalGatewayRules\" categories. If user doesn't specify the category then defaulted to \"Rules\". System generated category is used by NSX created rules, for example BFD rules. Autoplumbed category used by NSX verticals to autoplumb data path rules. Finally, \"Default\" category is the placeholder default rules with lowest in the order of priority. Category *string @@ -35456,7 +35047,7 @@ type SecurityProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } @@ -35504,7 +35095,7 @@ type SecurityZone struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of the sites Sites []string @@ -35554,10 +35145,10 @@ type SecurityZoneBinding struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Path of the security zone. - SecurityZonePath string + SecurityZonePath *string } // A SecurityZoneRule specifies the security policy that applies to the tiers associated with the security zones. @@ -35604,7 +35195,7 @@ type SecurityZoneRule struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -35614,7 +35205,7 @@ type SecurityZoneRule struct { // * SecurityZoneRule#SecurityZoneRule_ACTION_SKIP // // The action to be applied to all the services. - Action string + Action *string // Destination field indicates the destination path of the Rule. It could be; - Path of the current/other zone - One/more tiers associated with the zone - Shared Group - ANY (It should be the ONLY element in the services array. Error will be thrown if ANY is used in conjunction with other values.) Note that either Source or Destination has to be associated with the current Zone. Destination []string // Flag to disable the rule. Default is enabled. @@ -35681,7 +35272,7 @@ type Segment struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Static address binding used for the Segment. AddressBindings []PortAddressBindingEntry @@ -36027,7 +35618,7 @@ type SegmentDiscoveryProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated IP Discovery Profile IpDiscoveryProfilePath *string @@ -36058,7 +35649,7 @@ type SegmentDiscoveryProfileBindingMapListResult struct { // Segment extra config is intended for supporting vendor specific configuration on the data path, it can be set as key value string pairs on either segment or segment port. type SegmentExtraConfig struct { // Key value pair in string for the configuration - ConfigPair KeyValuePair + ConfigPair *KeyValuePair } // Paged collection of Segments @@ -36125,7 +35716,7 @@ type SegmentMonitoringProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated IPFIX L2 Profile IpfixL2ProfilePath *string @@ -36197,7 +35788,7 @@ type SegmentPort struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Static address binding used for the port. AddressBindings []PortAddressBindingEntry @@ -36305,7 +35896,7 @@ type SegmentQosProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated QoS Profile QosProfilePath *string @@ -36375,9 +35966,9 @@ type SegmentSecurityProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool - // Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering. List of allowed MACs - 01:80:c2:00:00:00, 01:80:c2:00:00:01, 01:80:c2:00:00:02, 01:80:c2:00:00:03, 01:80:c2:00:00:04, 01:80:c2:00:00:05, 01:80:c2:00:00:06, 01:80:c2:00:00:07, 01:80:c2:00:00:08, 01:80:c2:00:00:09, 01:80:c2:00:00:0a, 01:80:c2:00:00:0b, 01:80:c2:00:00:0c, 01:80:c2:00:00:0d, 01:80:c2:00:00:0e, 01:80:c2:00:00:0f, 00:e0:2b:00:00:00, 00:e0:2b:00:00:04, 00:e0:2b:00:00:06, 01:00:0c:00:00:00, 01:00:0c:cc:cc:cc, 01:00:0c:cc:cc:cd, 01:00:0c:cd:cd:cd, 01:00:0c:cc:cc:c0, 01:00:0c:cc:cc:c1, 01:00:0c:cc:cc:c2, 01:00:0c:cc:cc:c3, 01:00:0c:cc:cc:c4, 01:00:0c:cc:cc:c5, 01:00:0c:cc:cc:c6, 01:00:0c:cc:cc:c7 + // Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering. List of allowed MACs - 01:80:c2:00:00:00, 01:80:c2:00:00:01, 01:80:c2:00:00:02, 01:80:c2:00:00:03, 01:80:c2:00:00:04, 01:80:c2:00:00:05, 01:80:c2:00:00:06, 01:80:c2:00:00:07, 01:80:c2:00:00:08, 01:80:c2:00:00:09, 01:80:c2:00:00:0a, 01:80:c2:00:00:0b, 01:80:c2:00:00:0c, 01:80:c2:00:00:0d, 01:80:c2:00:00:0e, 01:80:c2:00:00:0f, 00:e0:2b:00:00:00, 00:e0:2b:00:00:04, 00:e0:2b:00:00:06, 01:00:0c:00:00:00, 01:00:0c:cc:cc:cc, 01:00:0c:cc:cc:cd, 01:00:0c:cd:cd:cd, 01:00:0c:cc:cc:c0, 01:00:0c:cc:cc:c1, 01:00:0c:cc:cc:c2, 01:00:0c:cc:cc:c3, 01:00:0c:cc:cc:c4, 01:00:0c:cc:cc:c5, 01:00:0c:cc:cc:c6, 01:00:0c:cc:cc:c7 format: mac-address BpduFilterAllow []string // Indicates whether BPDU filter is enabled. BPDU filtering is enabled by default. BpduFilterEnable *bool @@ -36443,7 +36034,7 @@ type SegmentSecurityProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The policy path of the asscociated Segment Security profile SegmentSecurityProfilePath *string @@ -36528,7 +36119,7 @@ type SelectableResourceReference struct { // Type of the NSX resource. TargetType *string // Set to true if this resource has been selected to be acted upon - Selected bool + Selected *bool } // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -36585,7 +36176,7 @@ type Service struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // The flag, if true, indicates that service is created in the system by default. Such default services can't be modified/deleted. IsDefault *bool @@ -36720,7 +36311,7 @@ type ServiceDefinition struct { // Transport Type of the service, which is the mechanism of redirecting the traffic to the the partner appliance. Transport type is required if Service caters to any functionality other than EPP. Transports []string // Id which is unique to a vendor or partner for which the service is created. - VendorId string + VendorId *string } const ServiceDefinition_ATTACHMENT_POINT_TIER0_LR = "TIER0_LR" const ServiceDefinition_ATTACHMENT_POINT_TIER1_LR = "TIER1_LR" @@ -36747,7 +36338,7 @@ type ServiceDeploymentSpec struct { DeploymentTemplate []DeploymentTemplate // NIC metadata associated with the deployment spec. NicMetadataList []NicMetadata - // Partner needs to specify the Service VM version which will get deployed. Modification of this field would notify administrators that new upgrade is available. + // Partner needs to specify the Service VM version which will get deployed. SvmVersion *string } @@ -36803,7 +36394,7 @@ type ServiceEntry struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool } // Identifier denoting this class, when it is used in polymorphic context. @@ -36861,7 +36452,7 @@ type ServiceInsertionServiceListResult struct { // A ServiceInstanceEndpoint belongs to one ByodPolicyServiceInstance and is attached to one ServiceInterface. A ServiceInstanceEndpoint represents a redirection target for a RedirectionPolicy. type ServiceInstanceEndpoint struct { // Path of Service Interface to which this ServiceInstanceEndpoint is connected. - ServiceInterfacePath string + ServiceInterfacePath *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -36907,7 +36498,7 @@ type ServiceInstanceEndpoint struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IPs where either inbound or outbound traffic is to be redirected. TargetIps []IPInfo @@ -36981,7 +36572,7 @@ type ServiceInterface struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Specify IP address and network prefix for interface. Subnets []InterfaceSubnet @@ -37107,12 +36698,12 @@ type ServiceReference struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // A Service's operational state can be enabled or disabled. Note that would work only for NetX type of services and would not work for Guest Introsp- ection type of Services. TRUE - The Service should be enabled FALSE - The Service should be disabled Enabled *bool // Unique name of Partner Service to be consumed for redirection. - PartnerServiceName string + PartnerServiceName *string } // Service Reference List @@ -37179,12 +36770,12 @@ type ServiceSegment struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Policy paths of logical routers or ports | to which this Service Segment can be connected. LrPaths []string // Policy path to transport zone. Only overlay transport zone is supported. - TransportZonePath string + TransportZonePath *string } // Paged collection of Service Segment @@ -37271,10 +36862,10 @@ type SessionTimerProfileBindingMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // PolicyPath of associated Profile - ProfilePath string + ProfilePath *string } // Set Fields is an action to set fields of the source event. @@ -37338,7 +36929,7 @@ type Site struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Both the local site and the remote site must have edge clusters correctly configured and remote tunnel endpoint (RTEP) interfaces must be defined, or onboarding will fail. FailIfRtepMisconfigured *bool @@ -37362,52 +36953,6 @@ type SiteAllocationIndexForEdge struct { TargetResourcePath *string } -// Global Manager Cluster Realized State. -type SiteClusterRealizedState struct { - // Identifier of the cluster. - ClusterId *string - // Cluster nodes. - ClusterNodes []SiteNodeRealizedState - // Cluster configuration version. format: int64 - ConfigVersion *int64 - // Virtual IP of the cluster, if any. format: ip - Vip *string -} - -// Site deployment state provides the details about deployed NSX virtual appliances, cluster information and the state. -type SiteDeploymentState struct { - // NSX cluster node information. - ClusterNodes []SiteNodeInfo - // Deployment name - Global Manager or Site Name. - Name *string - // Site UUID. - SiteId *string - // NSX version details. - Version *string - // Virtual IP for the Site. - Vip *string -} - -// Paged collection of SiteDeploymentStates -type SiteDeploymentStateListResult struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // Opaque cursor to be used for getting next page of records (supplied by current result page) - Cursor *string - // Count of results found (across all pages), set only on first page format: int64 - ResultCount *int64 - // If true, results are sorted in ascending order - SortAscending *bool - // Field by which records are sorted - SortBy *string - // SiteDeploymentState list results - Results []SiteDeploymentState -} - // Site fedeation configuration. type SiteFederationConfig struct { // Remote tunnel endpoint IP addresses format: ip @@ -37425,7 +36970,7 @@ type SiteInfo struct { // The edge cluster on which the networking elements for the VHC will be created. EdgeClusterPaths []string // For the local manager this needs to be set to 'default'. This represents the path of the site which is managed by Global Manager. - SitePath string + SitePath *string // The transport zone has to be set when creating VHC on Local manager. If not set for local manager, default transport zone will be used. For the Global Manager the transport zone path will be picked up from the site. TransportZonePaths []string } @@ -37453,7 +36998,7 @@ type SiteListResult struct { // Credential info to connect to a node in the federated remote site. type SiteNodeConnectionInfo struct { // Please specify the fqdn of the Management Node of your site. - Fqdn string + Fqdn *string // Password to connect to Site's Local Manager. Password *string // Thumbprint of Site's Local Manager in the form of a SHA-256 hash represented in lower case HEX. @@ -37462,21 +37007,68 @@ type SiteNodeConnectionInfo struct { Username *string } -// Information about deployed NSX virtual appliance. -type SiteNodeInfo struct { - // Host name. - Hostname *string - // FQDN or IP Address of the host.. - IpAddress *string -} - -// Information about one node in a site's NSX cluster. -type SiteNodeRealizedState struct { - // Hostname of the cluster node. - Hostname *string - // Management IP address of the cluster node. format: ip - IpAddress *string +// Represents site offboarding status. +type SiteOffBoardingState struct { + // The server will populate this field when returing the resource. Ignored on PUT and POST. + Links []ResourceLink + // Schema for this resource + Schema *string + // Link to this resource + Self *SelfResourceLink + // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 + Revision *int64 + // Timestamp of resource creation format: int64 + CreateTime *int64 + // ID of the user who created this resource + CreateUser *string + // Timestamp of last modification format: int64 + LastModifiedTime *int64 + // ID of the user who last modified this resource + LastModifiedUser *string + // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. + Protection *string + // Indicates system owned resource + SystemOwned *bool + // Description of this resource + Description *string + // Defaults to ID if not set + DisplayName *string + // Unique identifier of this resource + Id *string + // The type of this resource. + ResourceType *string + // Opaque identifiers meaningful to the API user + Tags []Tag + // Path of its parent + ParentPath *string + // Absolute path of this object + Path *string + // Path relative from its parent + RelativePath *string + // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. + UniqueId *string + // subtree for this type within policy tree containing nested elements. + Children []*data.StructValue + // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. + MarkedForDelete *bool + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. + Overridden *bool + // Captures message associated with status. If FAILED, can contain folowing errors local site configuration is null internal server error with detail + Message *string + // Possible values are: + // + // * SiteOffBoardingState#SiteOffBoardingState_STATUS_INITIALIZED + // * SiteOffBoardingState#SiteOffBoardingState_STATUS_INPROGRESS + // * SiteOffBoardingState#SiteOffBoardingState_STATUS_FAILED + // * SiteOffBoardingState#SiteOffBoardingState_STATUS_SUCCESSFUL + // + // Represents site offboarding status. + Status *string } +const SiteOffBoardingState_STATUS_INITIALIZED = "INITIALIZED" +const SiteOffBoardingState_STATUS_INPROGRESS = "INPROGRESS" +const SiteOffBoardingState_STATUS_FAILED = "FAILED" +const SiteOffBoardingState_STATUS_SUCCESSFUL = "SUCCESSFUL" // Source that is logically deemed to be the \"object\" upon which the Event in question initially occurred upon. The Source is responsible for providing information of the occurred event. Some example sources include: - Resource. - API. type Source struct { @@ -37500,14 +37092,14 @@ type SourceFieldEvaluation struct { // Expected values necessary to apply the specified operation on the source field value. Expected []string // Field in the form of a pointer, describing the location of the attribute within the source of the event. - FieldPointer string + FieldPointer *string // Possible values are: // // * SourceFieldEvaluation#SourceFieldEvaluation_OPERATOR_EQ // * SourceFieldEvaluation#SourceFieldEvaluation_OPERATOR_NOT_EQ // // Logical operator. - Operator string + Operator *string // Possible values are: // // * Evaluation#Evaluation_RESOURCE_TYPE_SOURCEFIELDEVALUATION @@ -37566,10 +37158,10 @@ type Span struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool - // List of site UUIDs representing the strech of the entity. - SiteIds []string + // List of SpanSiteInfos representing the strech of the entity. + Sites []SpanSiteInfo // Represents Policy resource type streached entity's span leader. SpanLeader *string // Represents Policy resource path of streached entity. @@ -37578,6 +37170,14 @@ type Span struct { SpanResourceType *string } +// Represents the Site resource information for a Span entity including both the internal id as well as the site path. +type SpanSiteInfo struct { + // Site UUID representing the Site resource + SiteId *string + // Path of the Site resource + SitePath *string +} + // SpoofGuard is a tool that is designed to prevent virtual machines in your environment from sending traffic with IP addresses which are not authorized to send traffic from. A SpoofGuard policy profile once enabled blocks the traffic determined to be spoofed. type SpoofGuardProfile struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -37622,10 +37222,10 @@ type SpoofGuardProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If true, enable the SpoofGuard, which only allows VM sending traffic with the IPs in the whitelist. - AddressBindingWhitelist bool + AddressBindingWhitelist *bool } // Paged collection of SpoofGuard profiles @@ -37691,14 +37291,14 @@ type SslTrustObjectData struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Key algorithm contained in this certificate KeyAlgo *string // Password for private key encryption Passphrase *string // pem encoded certificate data - PemEncoded string + PemEncoded *string // private key data PrivateKey *string } @@ -37747,10 +37347,10 @@ type StandaloneHostIdfwConfiguration struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If set to true, Idfw is enabled for standalone hosts - IdfwEnabled bool + IdfwEnabled *bool } // Displayed as a single number. It can be used to show the characteristics of entities such as Logical Switches, Firewall Rules, and so on. For example, number of logical switches and their admin states. @@ -37762,7 +37362,7 @@ type StatItem struct { // If expression for total is specified, it evaluates it. Total can be omitted if not needed to be shown. Total *string // Expression for stat to be displayed. - Value string + Value *string } // Contains Static ARP configuration for Segment. @@ -37809,12 +37409,12 @@ type StaticARPConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IP Address format: ip - IpAddress string - // MAC Address - MacAddress string + IpAddress *string + // MAC Address format: mac-address + MacAddress *string } // Static filters @@ -37869,14 +37469,16 @@ type StaticRouteBfdPeer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Bfd Profile is not supported for IPv6 networks. BfdProfilePath *string // Flag to enable BFD peer. Enabled *bool // Only IPv4 addresses are supported. Only a single BFD config per peer address is allowed. - PeerAddress string + PeerAddress *string + // Represents the array of policy paths of locale services where this BFD peer should get relalized on. The locale service service and this BFD peer must belong to the same router. Default scope is empty. + Scope []string // Array of Tier0 external interface IP addresses. BFD peering is established from all these source addresses to the neighbor specified in peer_address. Only IPv4 addresses are supported. SourceAddresses []string } @@ -37945,10 +37547,12 @@ type StaticRoutes struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool + // When false or by default northbound routes are configure only on primary site and not on secondary. When true, static route will be pushed to secondary even if its locale operation mode is secondary. + EnabledOnSecondary *bool // Specify network address in CIDR format. format: address-or-block-or-range - Network string + Network *string // Specify next hop routes for network. NextHops []RouterNexthop } @@ -38050,6 +37654,8 @@ type StatsConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -38111,14 +37717,14 @@ type TagBulkOperation struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // List of resources on which tag needs to be applied ApplyTo []ResourceInfo // List of resources from which tag needs to be removed RemoveFrom []ResourceInfo // Tag - Tag Tag + Tag *Tag } // Status of tag bulk operation @@ -38126,7 +37732,7 @@ type TagBulkOperationStatus struct { // Tag apply operation status per resource type. ApplyTo []ResourceTypeTagStatus // Intent path corresponding to tag operation - Path string + Path *string // Tag remove operation status per resource type RemoveFrom []ResourceTypeTagStatus // Possible values are: @@ -38137,9 +37743,9 @@ type TagBulkOperationStatus struct { // * TagBulkOperationStatus#TagBulkOperationStatus_STATUS_PENDING // // Overall status - Status string + Status *string // Tag - Tag Tag + Tag *Tag } const TagBulkOperationStatus_STATUS_SUCCESS = "Success" const TagBulkOperationStatus_STATUS_RUNNING = "Running" @@ -38323,7 +37929,7 @@ type TcpPolicyLbMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Only if a healthcheck fails consecutively for a specified number of times, given with fall_count, to a member will the member status be marked DOWN. format: int64 FallCount *int64 @@ -38391,18 +37997,18 @@ type TcpPolicyLbVirtualServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If access log is enabled, all HTTP requests sent to an L7 virtual server are logged to the access log file. Both successful requests (backend server returns 2xx) and unsuccessful requests (backend server returns 4xx or 5xx) are logged to access log, if enabled. AccessLogEnabled *bool // Configures the IP address of the PolicyLbVirtualServer where it receives all client connections and distributes them among the backend servers. format: ip - IpAddress string + IpAddress *string // Path to optional object that enables persistence on a virtual server allowing related client connections to be sent to the same backend server. Persistence is disabled by default. LbPersistenceProfile *string // Ports contains a list of at least one port or port range such as \"80\", \"1234-1236\". Each port element in the list should be a single port or a single port range. format: port-or-range Ports []string // Path to router type object that PolicyLbVirtualServer connects to. The only supported router object is Network. - RouterPath string + RouterPath *string TrafficSource *string } // Identifier denoting this class, when it is used in polymorphic context. @@ -38454,7 +38060,7 @@ type Tier0 struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Indicates if logging should be enabled for the default whitelisting rule. This filed is deprecated and recommended to change Rule logging filed. Note that this filed is not synchornied with default logging field. DefaultRuleLogging *bool @@ -38542,10 +38148,10 @@ type Tier0DeploymentMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Path of enforcement point on which Tier-0 shall be deployed. - EnforcementPoint string + EnforcementPoint *string } // Paged collection of Tier-0 Deployment Map. @@ -38634,7 +38240,7 @@ type Tier0Interface struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Specify IP address and network prefix for interface. Subnets []InterfaceSubnet @@ -38766,7 +38372,7 @@ type Tier0RouteMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Ordered list of route map entries. Entries []RouteMapEntry @@ -38794,8 +38400,8 @@ type Tier0RouteMapListResult struct { // Route Redistribution config type Tier0RouteRedistributionConfig struct { - // Flag to enable route redistribution. - Enabled *bool + // Flag to enable route redistribution for BGP. + BgpEnabled *bool // List of redistribution rules. RedistributionRules []Tier0RouteRedistributionRule } @@ -38897,7 +38503,7 @@ type Tier0VrfConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // L3 VNI associated with the VRF for overlay traffic. VNI must be unique and belong to configured VNI pool. format: int32 EvpnTransitVni *int64 @@ -38906,7 +38512,7 @@ type Tier0VrfConfig struct { // Route targets. RouteTargets []VrfRouteTargets // Default tier0 path. Cannot be modified after realization. - Tier0Path string + Tier0Path *string } // Tier-1 instance configuration. @@ -38953,7 +38559,7 @@ type Tier1 struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Indicates if logging should be enabled for the default whitelisting rule. This filed is deprecated and recommended to change Rule logging filed. Note that this filed is not synchornied with default logging field. DefaultRuleLogging *bool @@ -39077,10 +38683,10 @@ type Tier1DeploymentMap struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Path of enforcement point on which Tier-1 shall be deployed. - EnforcementPoint string + EnforcementPoint *string } // Tier1 gateway state @@ -39139,7 +38745,7 @@ type Tier1Interface struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Specify IP address and network prefix for interface. Subnets []InterfaceSubnet @@ -39148,7 +38754,7 @@ type Tier1Interface struct { // Maximum transmission unit (MTU) specifies the size of the largest packet that a network protocol can transmit. format: int32 Mtu *int64 // Policy path of Segment to which interface is connected to. - SegmentPath string + SegmentPath *string // Possible values are: // // * Tier1Interface#Tier1Interface_URPF_MODE_NONE @@ -39243,12 +38849,12 @@ type TlsCertificate struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // list of X509Certificates. Details []X509Certificate // pem encoded certificate data. - PemEncoded string + PemEncoded *string } // Certificate queries result @@ -39314,12 +38920,12 @@ type TlsCrl struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Details of the X509Crl object. Details *X509Crl // Pem encoded crl data. - PemEncoded string + PemEncoded *string } // Paged Collection of TlsCrl @@ -39406,14 +39012,14 @@ type TlsTrustData struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Key algorithm contained in this certificate. KeyAlgo *string // Password for private key encryption. Passphrase *string // pem encoded certificate data. - PemEncoded string + PemEncoded *string // private key data PrivateKey *string } @@ -39425,7 +39031,7 @@ type Tooltip struct { // If true, displays tooltip text in bold Heading *bool // Text to be shown on tooltip while hovering over UI element. The text would be wrapped if it exceeds 80 chars. - Text string + Text *string } type Traceflow struct { @@ -39545,12 +39151,14 @@ type TraceflowConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool + // This field indicates if intent is transient and will be cleaned up by the system if set to true + IsTransient *bool // Configuration of packet data Packet *data.StructValue // Segment Port Path or UUID - SegmentPortPath string + SegmentPortPath *string // Maximum time in seconds the management plane will wait for observation result to be sent by opsAgent. format: int64 Timeout *int64 } @@ -40310,7 +39918,7 @@ type TraceflowObservationForwardedLogical struct { ServiceTtl *int64 // This field specified the prefix IP address a traceflow packet matched in the whitelist in spoofguard. format: ip-cidr-block SpoofguardIp *string - // The source MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\". For example: 00:00:00:00:00:00. + // The source MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\". For example: 00:00:00:00:00:00. format: mac-address SpoofguardMac *string // This field specified the VLAN id a traceflow packet matched in the whitelist in spoofguard. format: int64 SpoofguardVlanId *int64 @@ -40872,6 +40480,22 @@ type TrafficRateLimits struct { TxMulticast *int64 } +// Detailed Realized Status of an Intent on a span of Transport Nodes. +type TransportNodeSpanEnforcedStatus struct { + // List of Detailed Realized Status per Transport Node. + EnforcedStatusPerTransportNode []EnforcedStatusPerTransportNode + // Possible values are: + // + // * EnforcedStatusPerScopeNsxt#EnforcedStatusPerScopeNsxt_RESOURCE_TYPE_TRANSPORTNODESPANENFORCEDSTATUS + // + // Enforced Realized Status Per Scope Resource Type. + ResourceType string +} +// Identifier denoting this class, when it is used in polymorphic context. +// +// This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context. +const TransportNodeSpanEnforcedStatus__TYPE_IDENTIFIER = "TransportNodeSpanEnforcedStatus" + type TransportProtocolHeader struct { // DHCP header DhcpHeader *DhcpHeader @@ -40893,14 +40517,14 @@ type TunnelInterfaceIPSubnet struct { // IPv4 Addresses format: ipv4 IpAddresses []string // Subnet Prefix Length format: int64 - PrefixLength int64 + PrefixLength *int64 } type TunnelSubnet struct { // Subnet ip addresses format: ipv4 IpAddresses []string // Subnet Prefix Length format: int64 - PrefixLength int64 + PrefixLength *int64 } type UdpHeader struct { @@ -40913,9 +40537,9 @@ type UdpHeader struct { // Active healthchecks are disabled by default and can be enabled for a server pool by binding a health monitor to the Group through the PolicyLbRule object. This represents active health monitoring over UDP. Active healthchecks are initiated periodically, at a configurable interval, to each member of the Group. Only if a healthcheck fails consecutively for a specified number of times (fall_count) to a member will the member status be marked DOWN. Once a member is DOWN, a specified number of consecutive successful healthchecks (rise_count) will bring the member back to UP state. After a healthcheck is initiated, if it does not complete within a certain period, then also the healthcheck is considered to be unsuccessful. Completing a healthcheck within timeout means establishing a connection (TCP or SSL), if applicable, sending the request and receiving the response, all within the configured timeout. type UdpPolicyLbMonitorProfile struct { // Expected data, can be anywhere in the response and it has to be a string, regular expressions are not supported. UDP healthcheck is considered failed if there is no server response within the timeout period. - Receive string + Receive *string // The data to be sent to the monitored server. - Send string + Send *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -40964,7 +40588,7 @@ type UdpPolicyLbMonitorProfile struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Only if a healthcheck fails consecutively for a specified number of times, given with fall_count, to a member will the member status be marked DOWN. format: int64 FallCount *int64 @@ -41032,18 +40656,18 @@ type UdpPolicyLbVirtualServer struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // If access log is enabled, all HTTP requests sent to an L7 virtual server are logged to the access log file. Both successful requests (backend server returns 2xx) and unsuccessful requests (backend server returns 4xx or 5xx) are logged to access log, if enabled. AccessLogEnabled *bool // Configures the IP address of the PolicyLbVirtualServer where it receives all client connections and distributes them among the backend servers. format: ip - IpAddress string + IpAddress *string // Path to optional object that enables persistence on a virtual server allowing related client connections to be sent to the same backend server. Persistence is disabled by default. LbPersistenceProfile *string // Ports contains a list of at least one port or port range such as \"80\", \"1234-1236\". Each port element in the list should be a single port or a single port range. format: port-or-range Ports []string // Path to router type object that PolicyLbVirtualServer connects to. The only supported router object is Network. - RouterPath string + RouterPath *string TrafficSource *string } // Identifier denoting this class, when it is used in polymorphic context. @@ -41054,14 +40678,14 @@ const UdpPolicyLbVirtualServer__TYPE_IDENTIFIER = "UdpPolicyLbVirtualServer" // Unary Operation. type UnaryOperation struct { // Represents an argument of the operation pointing to a specific field value. - Operand ResourceFieldPointer + Operand *ResourceFieldPointer // Possible values are: // // * UnaryOperation#UnaryOperation_OPERATOR_APPEND // * UnaryOperation#UnaryOperation_OPERATOR_SUBTRACT // // Logical Operator describing the operation to apply to the operand. - Operator string + Operator *string } const UnaryOperation_OPERATOR_APPEND = "APPEND" const UnaryOperation_OPERATOR_SUBTRACT = "SUBTRACT" @@ -41069,7 +40693,7 @@ const UnaryOperation_OPERATOR_SUBTRACT = "SUBTRACT" // Operation based Injection Value. type UnaryOperationBasedInjectionValue struct { // Resource field pointer representing the initial value for the injection value. If an operation is supplied, the value is handed to the operation function to produce a final result. - InitialValue ResourceFieldPointer + InitialValue *ResourceFieldPointer // Represents an optional operation to be done on the initial value. Operation *UnaryOperation // Possible values are: @@ -41091,59 +40715,7 @@ type UrlAlias struct { // Search query to be applied, if any. If query string is not provided, it will be ignored. Query *string // Url to fetch data from. - Url string -} - -// The state of the URL categorization cloud service which provides the URL and IP data. This could include whether the URL categorization cloud service is up and running. It also consists of the version of the latest URL data available on the URL categorization cloud service. -type UrlCategorizationCloudServiceInfo struct { - // The server will populate this field when returing the resource. Ignored on PUT and POST. - Links []ResourceLink - // Schema for this resource - Schema *string - // Link to this resource - Self *SelfResourceLink - // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32 - Revision *int64 - // Timestamp of resource creation format: int64 - CreateTime *int64 - // ID of the user who created this resource - CreateUser *string - // Timestamp of last modification format: int64 - LastModifiedTime *int64 - // ID of the user who last modified this resource - LastModifiedUser *string - // Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. - Protection *string - // Indicates system owned resource - SystemOwned *bool - // Description of this resource - Description *string - // Defaults to ID if not set - DisplayName *string - // Unique identifier of this resource - Id *string - // The type of this resource. - ResourceType *string - // Opaque identifiers meaningful to the API user - Tags []Tag - // Path of its parent - ParentPath *string - // Absolute path of this object - Path *string - // Path relative from its parent - RelativePath *string - // This is a UUID generated by the GM/LM to uniquely identify entites in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. - UniqueId *string - // subtree for this type within policy tree containing nested elements. - Children []*data.StructValue - // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. - MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. - Overridden *bool - // The state of the URL categorization cloud service. - UrlCategorizationSvcState *string - // The version of the file which contains the category and reputation of the URLs. The version consists of the major, minor and the update versions. An example of the data version is 4.5.214. - UrlDataVersion *string + Url *string } // Authenticated User Info @@ -41157,15 +40729,15 @@ type UserInfo struct { // User login session information type UserSession struct { // AD Domain of user. - DomainName string + DomainName *string // Login time. format: int64 - LoginTime int64 + LoginTime *int64 // Logout time if applicable. An active user session has no logout time. format: int64 LogoutTime *int64 // AD user name. - UserName string + UserName *string // User session ID. This also indicates whether this is VDI / RDSH. format: int32 - UserSessionId int64 + UserSessionId *int64 } // Represents the leaf level value constraint to constrain specified attribute value to the set of values to be allowed/not-allowed. Example - sourceGroups allowed to have only with list of groups. { \"operator\":\"INCLUDES\", \"values\":[\"/infra/services/HTTP\", \"/infra/services/HTTPS\"] } @@ -41177,7 +40749,7 @@ type ValueConstraintExpression struct { // * ValueConstraintExpression#ValueConstraintExpression_OPERATOR_EQUALS // // Operation to check for value list for resource attribute of constraint. - Operator string + Operator *string // List of values. Values []string // The server will populate this field when returing the resource. Ignored on PUT and POST. @@ -41303,7 +40875,7 @@ type Vhc struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -41366,7 +40938,7 @@ type VhcDnsConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // DNS servers to which the DNS request needs to be forwarded. format: ipv4 DnsUpstreamServers []string @@ -41433,7 +41005,7 @@ type View struct { // Description of this resource Description *string // Title of the widget. - DisplayName string + DisplayName *string // Unique identifier of this resource Id *string // The type of this resource. @@ -41507,7 +41079,7 @@ type VirtualEndpoint struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // IPs where either inbound or outbound traffic is to be redirected. TargetIps []IPInfo @@ -41541,13 +41113,13 @@ type VirtualMachine struct { // List of external compute ids of the virtual machine in the format 'id-type-key:value' , list of external compute ids ['uuid:xxxx-xxxx-xxxx-xxxx', 'moIdOnHost:moref-11', 'instanceUuid:xxxx-xxxx-xxxx-xxxx'] ComputeIds []string // Current external id of this virtual machine in the system. - ExternalId string + ExternalId *string // Guest virtual machine details include OS name, computer name of guest VM. Currently this is supported for guests on ESXi that have VMware Tools installed. GuestInfo *GuestInfo // Id of the host in which this virtual machine exists. HostId *string // Id of the vm unique within the host. - LocalIdOnHost string + LocalIdOnHost *string // Possible values are: // // * VirtualMachine#VirtualMachine_POWER_STATE_VM_RUNNING @@ -41556,7 +41128,7 @@ type VirtualMachine struct { // * VirtualMachine#VirtualMachine_POWER_STATE_UNKNOWN // // Current power state of this virtual machine in the system. - PowerState string + PowerState *string // Reference of the Host or Public Cloud Gateway that reported the VM Source *ResourceReference // Possible values are: @@ -41634,26 +41206,26 @@ type VirtualMachineTagsUpdate struct { // List of tags to be applied on the virtual machine Tags []Tag // The identifier that is used in the enforcement point that uniquely identifies the virtual machine. In case of NSXT it would be the value of the external_id of the virtual machine. - VirtualMachineId string + VirtualMachineId *string } type VirtualNetworkInterface struct { // Device key of the virtual network interface. - DeviceKey string + DeviceKey *string // Device name of the virtual network interface. DeviceName *string // External Id of the virtual network inferface. - ExternalId string + ExternalId *string // Id of the host on which the vm exists. - HostId string + HostId *string // IP Addresses of the the virtual network interface, from various sources. IpAddressInfo []IpAddressInfo // LPort Attachment Id of the virtual network interface. LportAttachmentId *string // MAC address of the virtual network interface. - MacAddress string + MacAddress *string // Id of the vm to which this virtual network interface belongs. - OwnerVmId string + OwnerVmId *string // Possible values are: // // * VirtualNetworkInterface#VirtualNetworkInterface_OWNER_VM_TYPE_EDGE @@ -41663,7 +41235,7 @@ type VirtualNetworkInterface struct { // Owner virtual machine type; Edge, Service VM or other. OwnerVmType *string // Id of the vm unique within the host. - VmLocalIdOnHost string + VmLocalIdOnHost *string // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink // Schema for this resource @@ -41816,7 +41388,7 @@ const VmToolsInfo_VM_TYPE_EDGE = "EDGE" const VmToolsInfo_VM_TYPE_SERVICE = "SERVICE" const VmToolsInfo_VM_TYPE_REGULAR = "REGULAR" -// Vni Pool Config. +// Vni Pool Configuration. type VniPoolConfig struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -41860,15 +41432,15 @@ type VniPoolConfig struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // End value of VNI Pool range format: int32 - End int64 + End *int64 // Start value of VNI Pool range format: int32 - Start int64 + Start *int64 } -// Collection of Vni Pool Config. +// Collection of Vni Pool Configuration. type VniPoolConfigListResult struct { // The server will populate this field when returing the resource. Ignored on PUT and POST. Links []ResourceLink @@ -41932,7 +41504,7 @@ type VrfRouteTargets struct { Children []*data.StructValue // Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. MarkedForDelete *bool - // Global resource intent objects may allow overriding locally to give local values precedence where required. When the object is overridden the Global resource continues to exist unmodified, while the overridden object is created with all of the user specified values. The Global resource may be updated in the background, however, the overridden object may only be updated by the user. + // Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. Overridden *bool // Possible values are: // @@ -41952,9 +41524,9 @@ type WeeklyBackupSchedule struct { // Days of week when backup is taken. 0 - Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday ... format: int64 DaysOfWeek []int64 // Time of day when backup is taken format: int64 - HourOfDay int64 + HourOfDay *int64 // Time of day when backup is taken format: int64 - MinuteOfDay int64 + MinuteOfDay *int64 // Possible values are: // // * BackupSchedule#BackupSchedule_RESOURCE_TYPE_WEEKLYBACKUPSCHEDULE @@ -42031,6 +41603,8 @@ type WidgetConfiguration struct { Legend *Legend // Please use the property 'shared' of View instead of this. The widgets of a shared view are visible to other users. Shared *bool + // Represents the horizontal span of the widget / container. format: int32 + Span *int64 // Specify relavite weight in WidgetItem for placement in a view. Please see WidgetItem for details. format: int32 Weight *int64 } @@ -42070,7 +41644,7 @@ type WidgetItem struct { // Determines placement of widget or container relative to other widgets and containers. The lower the weight, the higher it is in the placement order. format: int32 Weight *int64 // Id of the widget configuration that is held by a multi-widget or a container or a view. - WidgetId string + WidgetId *string } const WidgetItem_ALIGNMENT_LEFT = "LEFT" const WidgetItem_ALIGNMENT_RIGHT = "RIGHT" @@ -42186,9 +41760,9 @@ type X509CrlEntry struct { func ALGTypeServiceEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["alg"] = bindings.NewStringType() + fields["alg"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["alg"] = "Alg" - fields["destination_ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["destination_ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["destination_ports"] = "DestinationPorts" fields["source_ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["source_ports"] = "SourcePorts" @@ -42326,9 +41900,9 @@ func AcceptableComponentVersionBindingType() bindings.BindingType { fieldNameMap["resource_type"] = "ResourceType" fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["acceptable_versions"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["acceptable_versions"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["acceptable_versions"] = "AcceptableVersions" - fields["component_type"] = bindings.NewStringType() + fields["component_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["component_type"] = "ComponentType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.acceptable_component_version", fields, reflect.TypeOf(AcceptableComponentVersion{}), fieldNameMap, validators) @@ -42337,7 +41911,7 @@ func AcceptableComponentVersionBindingType() bindings.BindingType { func AcceptableComponentVersionListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["results"] = bindings.NewListType(bindings.NewReferenceType(AcceptableComponentVersionBindingType), reflect.TypeOf([]AcceptableComponentVersion{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(AcceptableComponentVersionBindingType), reflect.TypeOf([]AcceptableComponentVersion{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.acceptable_component_version_list", fields, reflect.TypeOf(AcceptableComponentVersionList{}), fieldNameMap, validators) @@ -42408,7 +41982,7 @@ func ActionableResourceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ActionableResourceBindingType), reflect.TypeOf([]ActionableResource{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ActionableResourceBindingType), reflect.TypeOf([]ActionableResource{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.actionable_resource_list_result", fields, reflect.TypeOf(ActionableResourceListResult{}), fieldNameMap, validators) @@ -42447,9 +42021,9 @@ func ActiveDirectoryIdentitySourceBindingType() bindings.BindingType { fieldNameMap["resource_type"] = "ResourceType" fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["base_dn"] = bindings.NewStringType() + fields["base_dn"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["base_dn"] = "BaseDn" - fields["domain_name"] = bindings.NewStringType() + fields["domain_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["domain_name"] = "DomainName" fields["ldap_servers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdentitySourceLdapServerBindingType), reflect.TypeOf([]IdentitySourceLdapServer{}))) fieldNameMap["ldap_servers"] = "LdapServers" @@ -42462,7 +42036,7 @@ func AdvanceClusterRestoreInputBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["id"] = "Id" - fields["resources"] = bindings.NewListType(bindings.NewReferenceType(SelectableResourceReferenceBindingType), reflect.TypeOf([]SelectableResourceReference{})) + fields["resources"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SelectableResourceReferenceBindingType), reflect.TypeOf([]SelectableResourceReference{}))) fieldNameMap["resources"] = "Resources" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.advance_cluster_restore_input", fields, reflect.TypeOf(AdvanceClusterRestoreInput{}), fieldNameMap, validators) @@ -42471,7 +42045,7 @@ func AdvanceClusterRestoreInputBindingType() bindings.BindingType { func AdvanceClusterRestoreRequestBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["data"] = bindings.NewListType(bindings.NewReferenceType(AdvanceClusterRestoreInputBindingType), reflect.TypeOf([]AdvanceClusterRestoreInput{})) + fields["data"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(AdvanceClusterRestoreInputBindingType), reflect.TypeOf([]AdvanceClusterRestoreInput{}))) fieldNameMap["data"] = "Data" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.advance_cluster_restore_request", fields, reflect.TypeOf(AdvanceClusterRestoreRequest{}), fieldNameMap, validators) @@ -42480,7 +42054,7 @@ func AdvanceClusterRestoreRequestBindingType() bindings.BindingType { func AggregateDNSForwarderStatisticsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["intent_path"] = bindings.NewStringType() + fields["intent_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" fields["statistics_per_enforcement_point"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(DNSForwarderStatisticsPerEnforcementPointBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["statistics_per_enforcement_point"] = "StatisticsPerEnforcementPoint" @@ -42491,7 +42065,7 @@ func AggregateDNSForwarderStatisticsBindingType() bindings.BindingType { func AggregateDNSForwarderStatusBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["intent_path"] = bindings.NewStringType() + fields["intent_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" fields["status_per_enforcement_point"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(DNSForwarderStatusPerEnforcementPointBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["status_per_enforcement_point"] = "StatusPerEnforcementPoint" @@ -42557,7 +42131,7 @@ func AggregateL2VPNSessionStatusBindingType() bindings.BindingType { func AggregateL2VpnPeerConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["l2vpn_path"] = bindings.NewStringType() + fields["l2vpn_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["l2vpn_path"] = "L2vpnPath" fields["l2vpn_peer_config_per_enforcement_point"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(L2VpnPeerConfigPerEnforcementPointBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["l2vpn_peer_config_per_enforcement_point"] = "L2vpnPeerConfigPerEnforcementPoint" @@ -42579,7 +42153,7 @@ func AggregateL2VpnSessionRemoteMacBindingType() bindings.BindingType { func AggregateL2VpnStatisticsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["intent_path"] = bindings.NewStringType() + fields["intent_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" fields["l2vpn_statistics_per_enforcement_point"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(L2VpnStatisticsPerEnforcementPointBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["l2vpn_statistics_per_enforcement_point"] = "L2vpnStatisticsPerEnforcementPoint" @@ -42590,7 +42164,7 @@ func AggregateL2VpnStatisticsBindingType() bindings.BindingType { func AggregateL3VpnStatisticsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["intent_path"] = bindings.NewStringType() + fields["intent_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" fields["l3vpn_statistics_per_enforcement_point"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(L3VpnStatisticsPerEnforcementPointBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["l3vpn_statistics_per_enforcement_point"] = "L3vpnStatisticsPerEnforcementPoint" @@ -42691,7 +42265,7 @@ func AggregatePolicyDnsAnswerBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["dns_answer_per_enforcement_point"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PolicyDnsAnswerPerEnforcementPointBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["dns_answer_per_enforcement_point"] = "DnsAnswerPerEnforcementPoint" - fields["intent_path"] = bindings.NewStringType() + fields["intent_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.aggregate_policy_dns_answer", fields, reflect.TypeOf(AggregatePolicyDnsAnswer{}), fieldNameMap, validators) @@ -42775,7 +42349,7 @@ func ApiErrorBindingType() bindings.BindingType { func ApiRequestBodyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["resource_pointer"] = bindings.NewStringType() + fields["resource_pointer"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["resource_pointer"] = "ResourcePointer" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -42885,7 +42459,7 @@ func ApplicationServiceBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["attributes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ApplicationServiceAttributeBindingType), reflect.TypeOf([]ApplicationServiceAttribute{}))) fieldNameMap["attributes"] = "Attributes" - fields["service_template_id"] = bindings.NewStringType() + fields["service_template_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["service_template_id"] = "ServiceTemplateId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.application_service", fields, reflect.TypeOf(ApplicationService{}), fieldNameMap, validators) @@ -42960,9 +42534,9 @@ func ApplicationTierBindingType() bindings.BindingType { func ArpHeaderBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["dst_ip"] = bindings.NewStringType() + fields["dst_ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["dst_ip"] = "DstIp" - fields["op_code"] = bindings.NewStringType() + fields["op_code"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["op_code"] = "OpCode" fields["src_ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["src_ip"] = "SrcIp" @@ -42988,7 +42562,7 @@ func AttributeBindingType() bindings.BindingType { fieldNameMap["attribute_type"] = "AttributeType" fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" - fields["key"] = bindings.NewStringType() + fields["key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["key"] = "Key" fields["read_only"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["read_only"] = "ReadOnly" @@ -43037,7 +42611,7 @@ func BackupConfigurationBindingType() bindings.BindingType { fieldNameMap["inventory_summary_interval"] = "InventorySummaryInterval" fields["passphrase"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["passphrase"] = "Passphrase" - fields["remote_file_server"] = bindings.NewReferenceType(RemoteFileServerBindingType) + fields["remote_file_server"] = bindings.NewOptionalType(bindings.NewReferenceType(RemoteFileServerBindingType)) fieldNameMap["remote_file_server"] = "RemoteFileServer" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.backup_configuration", fields, reflect.TypeOf(BackupConfiguration{}), fieldNameMap, validators) @@ -43059,7 +42633,7 @@ func BackupOperationHistoryBindingType() bindings.BindingType { func BackupOperationStatusBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["backup_id"] = bindings.NewStringType() + fields["backup_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["backup_id"] = "BackupId" fields["end_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["end_time"] = "EndTime" @@ -43069,7 +42643,7 @@ func BackupOperationStatusBindingType() bindings.BindingType { fieldNameMap["error_message"] = "ErrorMessage" fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["start_time"] = "StartTime" - fields["success"] = bindings.NewBooleanType() + fields["success"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["success"] = "Success" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.backup_operation_status", fields, reflect.TypeOf(BackupOperationStatus{}), fieldNameMap, validators) @@ -43094,12 +42668,14 @@ func BackupOverviewBindingType() bindings.BindingType { fieldNameMap["sort_by"] = "SortBy" fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ClusterBackupInfoBindingType), reflect.TypeOf([]ClusterBackupInfo{}))) fieldNameMap["results"] = "Results" - fields["backup_config"] = bindings.NewReferenceType(BackupConfigurationBindingType) + fields["backup_config"] = bindings.NewOptionalType(bindings.NewReferenceType(BackupConfigurationBindingType)) fieldNameMap["backup_config"] = "BackupConfig" - fields["backup_operation_history"] = bindings.NewReferenceType(BackupOperationHistoryBindingType) + fields["backup_operation_history"] = bindings.NewOptionalType(bindings.NewReferenceType(BackupOperationHistoryBindingType)) fieldNameMap["backup_operation_history"] = "BackupOperationHistory" - fields["current_backup_operation_status"] = bindings.NewReferenceType(CurrentBackupOperationStatusBindingType) + fields["current_backup_operation_status"] = bindings.NewOptionalType(bindings.NewReferenceType(CurrentBackupOperationStatusBindingType)) fieldNameMap["current_backup_operation_status"] = "CurrentBackupOperationStatus" + fields["restore_status"] = bindings.NewOptionalType(bindings.NewReferenceType(ClusterRestoreStatusBindingType)) + fieldNameMap["restore_status"] = "RestoreStatus" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.backup_overview", fields, reflect.TypeOf(BackupOverview{}), fieldNameMap, validators) } @@ -43113,6 +42689,25 @@ func BackupScheduleBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.backup_schedule", fields, reflect.TypeOf(BackupSchedule{}), fieldNameMap, validators) } +func BaseConsolidatedStatusPerEnforcementPointBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["alarm"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyRuntimeAlarmBindingType)) + fieldNameMap["alarm"] = "Alarm" + fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["enforcement_point_path"] = "EnforcementPointPath" + fields["consolidated_status"] = bindings.NewOptionalType(bindings.NewReferenceType(ConsolidatedStatusBindingType)) + fieldNameMap["consolidated_status"] = "ConsolidatedStatus" + fields["enforcement_point_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["enforcement_point_id"] = "EnforcementPointId" + fields["resource_type"] = bindings.NewStringType() + fieldNameMap["resource_type"] = "ResourceType" + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_path"] = "SitePath" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.base_consolidated_status_per_enforcement_point", fields, reflect.TypeOf(BaseConsolidatedStatusPerEnforcementPoint{}), fieldNameMap, validators) +} + func BaseEndpointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -43160,7 +42755,7 @@ func BaseEndpointBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["target_ips"] = bindings.NewListType(bindings.NewReferenceType(IPInfoBindingType), reflect.TypeOf([]IPInfo{})) + fields["target_ips"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPInfoBindingType), reflect.TypeOf([]IPInfo{}))) fieldNameMap["target_ips"] = "TargetIps" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.base_endpoint", fields, reflect.TypeOf(BaseEndpoint{}), fieldNameMap, validators) @@ -43215,7 +42810,7 @@ func BasePolicyServiceInstanceBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["deployment_mode"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["deployment_mode"] = "DeploymentMode" - fields["partner_service_name"] = bindings.NewStringType() + fields["partner_service_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["partner_service_name"] = "PartnerServiceName" fields["transport_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["transport_type"] = "TransportType" @@ -43376,7 +42971,7 @@ func BaseTier0InterfaceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["subnets"] = bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{})) + fields["subnets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{}))) fieldNameMap["subnets"] = "Subnets" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.base_tier0_interface", fields, reflect.TypeOf(BaseTier0Interface{}), fieldNameMap, validators) @@ -43398,9 +42993,9 @@ func BatchRequestItemBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["body"] = bindings.NewOptionalType(bindings.NewDynamicStructType(nil, bindings.REST)) fieldNameMap["body"] = "Body" - fields["method"] = bindings.NewStringType() + fields["method"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["method"] = "Method" - fields["uri"] = bindings.NewStringType() + fields["uri"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["uri"] = "Uri" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.batch_request_item", fields, reflect.TypeOf(BatchRequestItem{}), fieldNameMap, validators) @@ -43411,7 +43006,7 @@ func BatchResponseBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["has_errors"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["has_errors"] = "HasErrors" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(BatchResponseItemBindingType), reflect.TypeOf([]BatchResponseItem{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(BatchResponseItemBindingType), reflect.TypeOf([]BatchResponseItem{}))) fieldNameMap["results"] = "Results" fields["rolled_back"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["rolled_back"] = "RolledBack" @@ -43424,7 +43019,7 @@ func BatchResponseItemBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["body"] = bindings.NewOptionalType(bindings.NewDynamicStructType(nil, bindings.REST)) fieldNameMap["body"] = "Body" - fields["code"] = bindings.NewIntegerType() + fields["code"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["code"] = "Code" fields["headers"] = bindings.NewOptionalType(bindings.NewDynamicStructType(nil, bindings.REST)) fieldNameMap["headers"] = "Headers" @@ -43504,7 +43099,7 @@ func BfdProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(BfdProfileBindingType), reflect.TypeOf([]BfdProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(BfdProfileBindingType), reflect.TypeOf([]BfdProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.bfd_profile_list_result", fields, reflect.TypeOf(BfdProfileListResult{}), fieldNameMap, validators) @@ -43619,13 +43214,13 @@ func BgpNeighborConfigBindingType() bindings.BindingType { fieldNameMap["keep_alive_time"] = "KeepAliveTime" fields["maximum_hop_limit"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["maximum_hop_limit"] = "MaximumHopLimit" - fields["neighbor_address"] = bindings.NewStringType() + fields["neighbor_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["neighbor_address"] = "NeighborAddress" fields["out_route_filters"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["out_route_filters"] = "OutRouteFilters" fields["password"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["password"] = "Password" - fields["remote_as_num"] = bindings.NewStringType() + fields["remote_as_num"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["remote_as_num"] = "RemoteAsNum" fields["route_filtering"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(BgpRouteFilteringBindingType), reflect.TypeOf([]BgpRouteFiltering{}))) fieldNameMap["route_filtering"] = "RouteFiltering" @@ -43652,7 +43247,7 @@ func BgpNeighborConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(BgpNeighborConfigBindingType), reflect.TypeOf([]BgpNeighborConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(BgpNeighborConfigBindingType), reflect.TypeOf([]BgpNeighborConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.bgp_neighbor_config_list_result", fields, reflect.TypeOf(BgpNeighborConfigListResult{}), fieldNameMap, validators) @@ -43838,13 +43433,13 @@ func BinaryPacketDataBindingType() bindings.BindingType { func BridgeProfileConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["bridge_profile_path"] = bindings.NewStringType() + fields["bridge_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["bridge_profile_path"] = "BridgeProfilePath" fields["uplink_teaming_policy_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["uplink_teaming_policy_name"] = "UplinkTeamingPolicyName" fields["vlan_ids"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["vlan_ids"] = "VlanIds" - fields["vlan_transport_zone_path"] = bindings.NewStringType() + fields["vlan_transport_zone_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["vlan_transport_zone_path"] = "VlanTransportZonePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.bridge_profile_config", fields, reflect.TypeOf(BridgeProfileConfig{}), fieldNameMap, validators) @@ -43899,7 +43494,7 @@ func ByodPolicyServiceInstanceBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["deployment_mode"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["deployment_mode"] = "DeploymentMode" - fields["partner_service_name"] = bindings.NewStringType() + fields["partner_service_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["partner_service_name"] = "PartnerServiceName" fields["transport_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["transport_type"] = "TransportType" @@ -43924,74 +43519,16 @@ func ByodPolicyServiceInstanceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ByodPolicyServiceInstanceBindingType), reflect.TypeOf([]ByodPolicyServiceInstance{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ByodPolicyServiceInstanceBindingType), reflect.TypeOf([]ByodPolicyServiceInstance{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.byod_policy_service_instance_list_result", fields, reflect.TypeOf(ByodPolicyServiceInstanceListResult{}), fieldNameMap, validators) } -func CheckCompatibilityTaskBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["nsx_version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["nsx_version"] = "NsxVersion" - fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["results"] = "Results" - fields["rtt"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["rtt"] = "Rtt" - fields["site_name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["site_name"] = "SiteName" - fields["action"] = bindings.NewStringType() - fieldNameMap["action"] = "Action" - fields["end_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["end_time"] = "EndTime" - fields["result"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result"] = "Result" - fields["result_description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result_description"] = "ResultDescription" - fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["start_time"] = "StartTime" - fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["state"] = "State" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.check_compatibility_task", fields, reflect.TypeOf(CheckCompatibilityTask{}), fieldNameMap, validators) -} - -func CheckRtepTaskBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["local_edge_cluster_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["local_edge_cluster_id"] = "LocalEdgeClusterId" - fields["local_rteps"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["local_rteps"] = "LocalRteps" - fields["remote_edge_cluster_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["remote_edge_cluster_id"] = "RemoteEdgeClusterId" - fields["remote_rteps"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["remote_rteps"] = "RemoteRteps" - fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["results"] = "Results" - fields["site_name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["site_name"] = "SiteName" - fields["action"] = bindings.NewStringType() - fieldNameMap["action"] = "Action" - fields["end_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["end_time"] = "EndTime" - fields["result"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result"] = "Result" - fields["result_description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result_description"] = "ResultDescription" - fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["start_time"] = "StartTime" - fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["state"] = "State" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.check_rtep_task", fields, reflect.TypeOf(CheckRtepTask{}), fieldNameMap, validators) -} - func ChildApplicationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Application"] = bindings.NewReferenceType(ApplicationBindingType) + fields["Application"] = bindings.NewOptionalType(bindings.NewReferenceType(ApplicationBindingType)) fieldNameMap["Application"] = "Application" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44032,7 +43569,7 @@ func ChildApplicationBindingType() bindings.BindingType { func ChildApplicationServiceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ApplicationService"] = bindings.NewReferenceType(ApplicationServiceBindingType) + fields["ApplicationService"] = bindings.NewOptionalType(bindings.NewReferenceType(ApplicationServiceBindingType)) fieldNameMap["ApplicationService"] = "ApplicationService" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44073,7 +43610,7 @@ func ChildApplicationServiceBindingType() bindings.BindingType { func ChildApplicationTierBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ApplicationTier"] = bindings.NewReferenceType(ApplicationTierBindingType) + fields["ApplicationTier"] = bindings.NewOptionalType(bindings.NewReferenceType(ApplicationTierBindingType)) fieldNameMap["ApplicationTier"] = "ApplicationTier" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44114,7 +43651,7 @@ func ChildApplicationTierBindingType() bindings.BindingType { func ChildBfdProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["BfdProfile"] = bindings.NewReferenceType(BfdProfileBindingType) + fields["BfdProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(BfdProfileBindingType)) fieldNameMap["BfdProfile"] = "BfdProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44155,7 +43692,7 @@ func ChildBfdProfileBindingType() bindings.BindingType { func ChildBgpNeighborConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["BgpNeighborConfig"] = bindings.NewReferenceType(BgpNeighborConfigBindingType) + fields["BgpNeighborConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(BgpNeighborConfigBindingType)) fieldNameMap["BgpNeighborConfig"] = "BgpNeighborConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44196,7 +43733,7 @@ func ChildBgpNeighborConfigBindingType() bindings.BindingType { func ChildBgpRoutingConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["BgpRoutingConfig"] = bindings.NewReferenceType(BgpRoutingConfigBindingType) + fields["BgpRoutingConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(BgpRoutingConfigBindingType)) fieldNameMap["BgpRoutingConfig"] = "BgpRoutingConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44237,7 +43774,7 @@ func ChildBgpRoutingConfigBindingType() bindings.BindingType { func ChildByodPolicyServiceInstanceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ByodPolicyServiceInstance"] = bindings.NewReferenceType(ByodPolicyServiceInstanceBindingType) + fields["ByodPolicyServiceInstance"] = bindings.NewOptionalType(bindings.NewReferenceType(ByodPolicyServiceInstanceBindingType)) fieldNameMap["ByodPolicyServiceInstance"] = "ByodPolicyServiceInstance" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44278,7 +43815,7 @@ func ChildByodPolicyServiceInstanceBindingType() bindings.BindingType { func ChildCommunicationEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["CommunicationEntry"] = bindings.NewReferenceType(CommunicationEntryBindingType) + fields["CommunicationEntry"] = bindings.NewOptionalType(bindings.NewReferenceType(CommunicationEntryBindingType)) fieldNameMap["CommunicationEntry"] = "CommunicationEntry" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44319,7 +43856,7 @@ func ChildCommunicationEntryBindingType() bindings.BindingType { func ChildCommunicationMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["CommunicationMap"] = bindings.NewReferenceType(CommunicationMapBindingType) + fields["CommunicationMap"] = bindings.NewOptionalType(bindings.NewReferenceType(CommunicationMapBindingType)) fieldNameMap["CommunicationMap"] = "CommunicationMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44360,7 +43897,7 @@ func ChildCommunicationMapBindingType() bindings.BindingType { func ChildCommunityListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["CommunityList"] = bindings.NewReferenceType(CommunityListBindingType) + fields["CommunityList"] = bindings.NewOptionalType(bindings.NewReferenceType(CommunityListBindingType)) fieldNameMap["CommunityList"] = "CommunityList" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44401,7 +43938,7 @@ func ChildCommunityListBindingType() bindings.BindingType { func ChildComputeClusterIdfwConfigurationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ComputeClusterIdfwConfiguration"] = bindings.NewReferenceType(ComputeClusterIdfwConfigurationBindingType) + fields["ComputeClusterIdfwConfiguration"] = bindings.NewOptionalType(bindings.NewReferenceType(ComputeClusterIdfwConfigurationBindingType)) fieldNameMap["ComputeClusterIdfwConfiguration"] = "ComputeClusterIdfwConfiguration" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44442,7 +43979,7 @@ func ChildComputeClusterIdfwConfigurationBindingType() bindings.BindingType { func ChildConstraintBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Constraint"] = bindings.NewReferenceType(ConstraintBindingType) + fields["Constraint"] = bindings.NewOptionalType(bindings.NewReferenceType(ConstraintBindingType)) fieldNameMap["Constraint"] = "Constraint" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44483,7 +44020,7 @@ func ChildConstraintBindingType() bindings.BindingType { func ChildDeploymentZoneBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DeploymentZone"] = bindings.NewReferenceType(DeploymentZoneBindingType) + fields["DeploymentZone"] = bindings.NewOptionalType(bindings.NewReferenceType(DeploymentZoneBindingType)) fieldNameMap["DeploymentZone"] = "DeploymentZone" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44524,7 +44061,7 @@ func ChildDeploymentZoneBindingType() bindings.BindingType { func ChildDfwFirewallConfigurationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DfwFirewallConfiguration"] = bindings.NewReferenceType(DfwFirewallConfigurationBindingType) + fields["DfwFirewallConfiguration"] = bindings.NewOptionalType(bindings.NewReferenceType(DfwFirewallConfigurationBindingType)) fieldNameMap["DfwFirewallConfiguration"] = "DfwFirewallConfiguration" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44565,7 +44102,7 @@ func ChildDfwFirewallConfigurationBindingType() bindings.BindingType { func ChildDhcpRelayConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DhcpRelayConfig"] = bindings.NewReferenceType(DhcpRelayConfigBindingType) + fields["DhcpRelayConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(DhcpRelayConfigBindingType)) fieldNameMap["DhcpRelayConfig"] = "DhcpRelayConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44606,7 +44143,7 @@ func ChildDhcpRelayConfigBindingType() bindings.BindingType { func ChildDhcpServerConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DhcpServerConfig"] = bindings.NewReferenceType(DhcpServerConfigBindingType) + fields["DhcpServerConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(DhcpServerConfigBindingType)) fieldNameMap["DhcpServerConfig"] = "DhcpServerConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44647,7 +44184,7 @@ func ChildDhcpServerConfigBindingType() bindings.BindingType { func ChildDhcpStaticBindingConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DhcpStaticBindingConfig"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(DhcpStaticBindingConfigBindingType),}, bindings.REST) + fields["DhcpStaticBindingConfig"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(DhcpStaticBindingConfigBindingType),}, bindings.REST)) fieldNameMap["DhcpStaticBindingConfig"] = "DhcpStaticBindingConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44688,7 +44225,7 @@ func ChildDhcpStaticBindingConfigBindingType() bindings.BindingType { func ChildDnsSecurityProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DnsSecurityProfile"] = bindings.NewReferenceType(DnsSecurityProfileBindingType) + fields["DnsSecurityProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(DnsSecurityProfileBindingType)) fieldNameMap["DnsSecurityProfile"] = "DnsSecurityProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44729,7 +44266,7 @@ func ChildDnsSecurityProfileBindingType() bindings.BindingType { func ChildDnsSecurityProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DnsSecurityProfileBindingMap"] = bindings.NewReferenceType(DnsSecurityProfileBindingMapBindingType) + fields["DnsSecurityProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(DnsSecurityProfileBindingMapBindingType)) fieldNameMap["DnsSecurityProfileBindingMap"] = "DnsSecurityProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44770,7 +44307,7 @@ func ChildDnsSecurityProfileBindingMapBindingType() bindings.BindingType { func ChildDomainBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Domain"] = bindings.NewReferenceType(DomainBindingType) + fields["Domain"] = bindings.NewOptionalType(bindings.NewReferenceType(DomainBindingType)) fieldNameMap["Domain"] = "Domain" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44811,7 +44348,7 @@ func ChildDomainBindingType() bindings.BindingType { func ChildDomainDeploymentMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["DomainDeploymentMap"] = bindings.NewReferenceType(DomainDeploymentMapBindingType) + fields["DomainDeploymentMap"] = bindings.NewOptionalType(bindings.NewReferenceType(DomainDeploymentMapBindingType)) fieldNameMap["DomainDeploymentMap"] = "DomainDeploymentMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44852,7 +44389,7 @@ func ChildDomainDeploymentMapBindingType() bindings.BindingType { func ChildEndpointPolicyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["EndpointPolicy"] = bindings.NewReferenceType(EndpointPolicyBindingType) + fields["EndpointPolicy"] = bindings.NewOptionalType(bindings.NewReferenceType(EndpointPolicyBindingType)) fieldNameMap["EndpointPolicy"] = "EndpointPolicy" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44893,7 +44430,7 @@ func ChildEndpointPolicyBindingType() bindings.BindingType { func ChildEndpointRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["EndpointRule"] = bindings.NewReferenceType(EndpointRuleBindingType) + fields["EndpointRule"] = bindings.NewOptionalType(bindings.NewReferenceType(EndpointRuleBindingType)) fieldNameMap["EndpointRule"] = "EndpointRule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44934,7 +44471,7 @@ func ChildEndpointRuleBindingType() bindings.BindingType { func ChildEnforcementPointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["EnforcementPoint"] = bindings.NewReferenceType(EnforcementPointBindingType) + fields["EnforcementPoint"] = bindings.NewOptionalType(bindings.NewReferenceType(EnforcementPointBindingType)) fieldNameMap["EnforcementPoint"] = "EnforcementPoint" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -44975,7 +44512,7 @@ func ChildEnforcementPointBindingType() bindings.BindingType { func ChildEvpnConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["EvpnConfig"] = bindings.NewReferenceType(EvpnConfigBindingType) + fields["EvpnConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(EvpnConfigBindingType)) fieldNameMap["EvpnConfig"] = "EvpnConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45016,7 +44553,7 @@ func ChildEvpnConfigBindingType() bindings.BindingType { func ChildEvpnTunnelEndpointConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["EvpnTunnelEndpointConfig"] = bindings.NewReferenceType(EvpnTunnelEndpointConfigBindingType) + fields["EvpnTunnelEndpointConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(EvpnTunnelEndpointConfigBindingType)) fieldNameMap["EvpnTunnelEndpointConfig"] = "EvpnTunnelEndpointConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45057,7 +44594,7 @@ func ChildEvpnTunnelEndpointConfigBindingType() bindings.BindingType { func ChildFirewallIdentityStoreBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["FirewallIdentityStore"] = bindings.NewReferenceType(FirewallIdentityStoreBindingType) + fields["FirewallIdentityStore"] = bindings.NewOptionalType(bindings.NewReferenceType(FirewallIdentityStoreBindingType)) fieldNameMap["FirewallIdentityStore"] = "FirewallIdentityStore" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45098,7 +44635,7 @@ func ChildFirewallIdentityStoreBindingType() bindings.BindingType { func ChildFloodProtectionProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["FloodProtectionProfile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(FloodProtectionProfileBindingType),}, bindings.REST) + fields["FloodProtectionProfile"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(FloodProtectionProfileBindingType),}, bindings.REST)) fieldNameMap["FloodProtectionProfile"] = "FloodProtectionProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45139,7 +44676,7 @@ func ChildFloodProtectionProfileBindingType() bindings.BindingType { func ChildFloodProtectionProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["FloodProtectionProfileBindingMap"] = bindings.NewReferenceType(FloodProtectionProfileBindingMapBindingType) + fields["FloodProtectionProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(FloodProtectionProfileBindingMapBindingType)) fieldNameMap["FloodProtectionProfileBindingMap"] = "FloodProtectionProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45180,7 +44717,7 @@ func ChildFloodProtectionProfileBindingMapBindingType() bindings.BindingType { func ChildForwardingPolicyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ForwardingPolicy"] = bindings.NewReferenceType(ForwardingPolicyBindingType) + fields["ForwardingPolicy"] = bindings.NewOptionalType(bindings.NewReferenceType(ForwardingPolicyBindingType)) fieldNameMap["ForwardingPolicy"] = "ForwardingPolicy" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45221,7 +44758,7 @@ func ChildForwardingPolicyBindingType() bindings.BindingType { func ChildForwardingRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ForwardingRule"] = bindings.NewReferenceType(ForwardingRuleBindingType) + fields["ForwardingRule"] = bindings.NewOptionalType(bindings.NewReferenceType(ForwardingRuleBindingType)) fieldNameMap["ForwardingRule"] = "ForwardingRule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45262,7 +44799,7 @@ func ChildForwardingRuleBindingType() bindings.BindingType { func ChildGatewayPolicyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["GatewayPolicy"] = bindings.NewReferenceType(GatewayPolicyBindingType) + fields["GatewayPolicy"] = bindings.NewOptionalType(bindings.NewReferenceType(GatewayPolicyBindingType)) fieldNameMap["GatewayPolicy"] = "GatewayPolicy" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45303,7 +44840,7 @@ func ChildGatewayPolicyBindingType() bindings.BindingType { func ChildGatewayQosProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["QosProfile"] = bindings.NewReferenceType(GatewayQosProfileBindingType) + fields["QosProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(GatewayQosProfileBindingType)) fieldNameMap["QosProfile"] = "QosProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45344,7 +44881,7 @@ func ChildGatewayQosProfileBindingType() bindings.BindingType { func ChildGlobalConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["GlobalConfig"] = bindings.NewReferenceType(GlobalConfigBindingType) + fields["GlobalConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(GlobalConfigBindingType)) fieldNameMap["GlobalConfig"] = "GlobalConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45385,7 +44922,7 @@ func ChildGlobalConfigBindingType() bindings.BindingType { func ChildGlobalManagerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["GlobalManager"] = bindings.NewReferenceType(GlobalManagerBindingType) + fields["GlobalManager"] = bindings.NewOptionalType(bindings.NewReferenceType(GlobalManagerBindingType)) fieldNameMap["GlobalManager"] = "GlobalManager" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45426,7 +44963,7 @@ func ChildGlobalManagerBindingType() bindings.BindingType { func ChildGroupBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Group"] = bindings.NewReferenceType(GroupBindingType) + fields["Group"] = bindings.NewOptionalType(bindings.NewReferenceType(GroupBindingType)) fieldNameMap["Group"] = "Group" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45467,7 +45004,7 @@ func ChildGroupBindingType() bindings.BindingType { func ChildGroupDiscoveryProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["GroupDiscoveryProfileBindingMap"] = bindings.NewReferenceType(GroupDiscoveryProfileBindingMapBindingType) + fields["GroupDiscoveryProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(GroupDiscoveryProfileBindingMapBindingType)) fieldNameMap["GroupDiscoveryProfileBindingMap"] = "GroupDiscoveryProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45508,7 +45045,7 @@ func ChildGroupDiscoveryProfileBindingMapBindingType() bindings.BindingType { func ChildGroupMonitoringProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["GroupMonitoringProfileBindingMap"] = bindings.NewReferenceType(GroupMonitoringProfileBindingMapBindingType) + fields["GroupMonitoringProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(GroupMonitoringProfileBindingMapBindingType)) fieldNameMap["GroupMonitoringProfileBindingMap"] = "GroupMonitoringProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45549,7 +45086,7 @@ func ChildGroupMonitoringProfileBindingMapBindingType() bindings.BindingType { func ChildIPDiscoveryProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPDiscoveryProfile"] = bindings.NewReferenceType(IPDiscoveryProfileBindingType) + fields["IPDiscoveryProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPDiscoveryProfileBindingType)) fieldNameMap["IPDiscoveryProfile"] = "IpDiscoveryProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45590,7 +45127,7 @@ func ChildIPDiscoveryProfileBindingType() bindings.BindingType { func ChildIPFIXDFWCollectorProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPFIXDFWCollectorProfile"] = bindings.NewReferenceType(IPFIXDFWCollectorProfileBindingType) + fields["IPFIXDFWCollectorProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPFIXDFWCollectorProfileBindingType)) fieldNameMap["IPFIXDFWCollectorProfile"] = "IPFIXDFWCollectorProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45631,7 +45168,7 @@ func ChildIPFIXDFWCollectorProfileBindingType() bindings.BindingType { func ChildIPFIXDFWProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPFIXDFWProfile"] = bindings.NewReferenceType(IPFIXDFWProfileBindingType) + fields["IPFIXDFWProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPFIXDFWProfileBindingType)) fieldNameMap["IPFIXDFWProfile"] = "IPFIXDFWProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45672,7 +45209,7 @@ func ChildIPFIXDFWProfileBindingType() bindings.BindingType { func ChildIPFIXL2CollectorProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPFIXL2CollectorProfile"] = bindings.NewReferenceType(IPFIXL2CollectorProfileBindingType) + fields["IPFIXL2CollectorProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPFIXL2CollectorProfileBindingType)) fieldNameMap["IPFIXL2CollectorProfile"] = "IPFIXL2CollectorProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45713,7 +45250,7 @@ func ChildIPFIXL2CollectorProfileBindingType() bindings.BindingType { func ChildIPFIXL2ProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPFIXL2Profile"] = bindings.NewReferenceType(IPFIXL2ProfileBindingType) + fields["IPFIXL2Profile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPFIXL2ProfileBindingType)) fieldNameMap["IPFIXL2Profile"] = "IPFIXL2Profile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45754,7 +45291,7 @@ func ChildIPFIXL2ProfileBindingType() bindings.BindingType { func ChildIPSecVpnDpdProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPSecVpnDpdProfile"] = bindings.NewReferenceType(IPSecVpnDpdProfileBindingType) + fields["IPSecVpnDpdProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPSecVpnDpdProfileBindingType)) fieldNameMap["IPSecVpnDpdProfile"] = "IpSecVpnDpdProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45795,7 +45332,7 @@ func ChildIPSecVpnDpdProfileBindingType() bindings.BindingType { func ChildIPSecVpnIkeProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPSecVpnIkeProfile"] = bindings.NewReferenceType(IPSecVpnIkeProfileBindingType) + fields["IPSecVpnIkeProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPSecVpnIkeProfileBindingType)) fieldNameMap["IPSecVpnIkeProfile"] = "IpSecVpnIkeProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45836,7 +45373,7 @@ func ChildIPSecVpnIkeProfileBindingType() bindings.BindingType { func ChildIPSecVpnLocalEndpointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPSecVpnLocalEndpoint"] = bindings.NewReferenceType(IPSecVpnLocalEndpointBindingType) + fields["IPSecVpnLocalEndpoint"] = bindings.NewOptionalType(bindings.NewReferenceType(IPSecVpnLocalEndpointBindingType)) fieldNameMap["IPSecVpnLocalEndpoint"] = "IpSecVpnLocalEndpoint" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45877,7 +45414,7 @@ func ChildIPSecVpnLocalEndpointBindingType() bindings.BindingType { func ChildIPSecVpnServiceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPSecVpnService"] = bindings.NewReferenceType(IPSecVpnServiceBindingType) + fields["IPSecVpnService"] = bindings.NewOptionalType(bindings.NewReferenceType(IPSecVpnServiceBindingType)) fieldNameMap["IPSecVpnService"] = "IpSecVpnService" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45918,7 +45455,7 @@ func ChildIPSecVpnServiceBindingType() bindings.BindingType { func ChildIPSecVpnSessionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPSecVpnSession"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IPSecVpnSessionBindingType),}, bindings.REST) + fields["IPSecVpnSession"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IPSecVpnSessionBindingType),}, bindings.REST)) fieldNameMap["IPSecVpnSession"] = "IpSecVpnSession" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -45959,7 +45496,7 @@ func ChildIPSecVpnSessionBindingType() bindings.BindingType { func ChildIPSecVpnTunnelProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IPSecVpnTunnelProfile"] = bindings.NewReferenceType(IPSecVpnTunnelProfileBindingType) + fields["IPSecVpnTunnelProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IPSecVpnTunnelProfileBindingType)) fieldNameMap["IPSecVpnTunnelProfile"] = "IpSecVpnTunnelProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46000,7 +45537,7 @@ func ChildIPSecVpnTunnelProfileBindingType() bindings.BindingType { func ChildIdsClusterConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IdsClusterConfig"] = bindings.NewReferenceType(IdsClusterConfigBindingType) + fields["IdsClusterConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(IdsClusterConfigBindingType)) fieldNameMap["IdsClusterConfig"] = "IdsClusterConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46041,7 +45578,7 @@ func ChildIdsClusterConfigBindingType() bindings.BindingType { func ChildIdsProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IdsProfile"] = bindings.NewReferenceType(IdsProfileBindingType) + fields["IdsProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(IdsProfileBindingType)) fieldNameMap["IdsProfile"] = "IdsProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46082,7 +45619,7 @@ func ChildIdsProfileBindingType() bindings.BindingType { func ChildIdsRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IdsRule"] = bindings.NewReferenceType(IdsRuleBindingType) + fields["IdsRule"] = bindings.NewOptionalType(bindings.NewReferenceType(IdsRuleBindingType)) fieldNameMap["IdsRule"] = "IdsRule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46123,7 +45660,7 @@ func ChildIdsRuleBindingType() bindings.BindingType { func ChildIdsSecurityPolicyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IdsSecurityPolicy"] = bindings.NewReferenceType(IdsSecurityPolicyBindingType) + fields["IdsSecurityPolicy"] = bindings.NewOptionalType(bindings.NewReferenceType(IdsSecurityPolicyBindingType)) fieldNameMap["IdsSecurityPolicy"] = "IdsSecurityPolicy" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46164,7 +45701,7 @@ func ChildIdsSecurityPolicyBindingType() bindings.BindingType { func ChildIdsSignatureBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IdsSignature"] = bindings.NewReferenceType(IdsSignatureBindingType) + fields["IdsSignature"] = bindings.NewOptionalType(bindings.NewReferenceType(IdsSignatureBindingType)) fieldNameMap["IdsSignature"] = "IdsSignature" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46205,7 +45742,7 @@ func ChildIdsSignatureBindingType() bindings.BindingType { func ChildIdsStandaloneHostConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IdsStandaloneHostConfig"] = bindings.NewReferenceType(IdsStandaloneHostConfigBindingType) + fields["IdsStandaloneHostConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(IdsStandaloneHostConfigBindingType)) fieldNameMap["IdsStandaloneHostConfig"] = "IdsStandaloneHostConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46246,7 +45783,7 @@ func ChildIdsStandaloneHostConfigBindingType() bindings.BindingType { func ChildIpAddressAllocationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IpAddressAllocation"] = bindings.NewReferenceType(IpAddressAllocationBindingType) + fields["IpAddressAllocation"] = bindings.NewOptionalType(bindings.NewReferenceType(IpAddressAllocationBindingType)) fieldNameMap["IpAddressAllocation"] = "IpAddressAllocation" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46287,7 +45824,7 @@ func ChildIpAddressAllocationBindingType() bindings.BindingType { func ChildIpAddressBlockBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IpAddressBlock"] = bindings.NewReferenceType(IpAddressBlockBindingType) + fields["IpAddressBlock"] = bindings.NewOptionalType(bindings.NewReferenceType(IpAddressBlockBindingType)) fieldNameMap["IpAddressBlock"] = "IpAddressBlock" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46328,7 +45865,7 @@ func ChildIpAddressBlockBindingType() bindings.BindingType { func ChildIpAddressPoolBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IpAddressPool"] = bindings.NewReferenceType(IpAddressPoolBindingType) + fields["IpAddressPool"] = bindings.NewOptionalType(bindings.NewReferenceType(IpAddressPoolBindingType)) fieldNameMap["IpAddressPool"] = "IpAddressPool" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46369,7 +45906,7 @@ func ChildIpAddressPoolBindingType() bindings.BindingType { func ChildIpAddressPoolSubnetBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["IpAddressPoolSubnet"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IpAddressPoolSubnetBindingType),}, bindings.REST) + fields["IpAddressPoolSubnet"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IpAddressPoolSubnetBindingType),}, bindings.REST)) fieldNameMap["IpAddressPoolSubnet"] = "IpAddressPoolSubnet" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46410,7 +45947,7 @@ func ChildIpAddressPoolSubnetBindingType() bindings.BindingType { func ChildIpv6DadProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Ipv6DadProfile"] = bindings.NewReferenceType(Ipv6DadProfileBindingType) + fields["Ipv6DadProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(Ipv6DadProfileBindingType)) fieldNameMap["Ipv6DadProfile"] = "Ipv6DadProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46451,7 +45988,7 @@ func ChildIpv6DadProfileBindingType() bindings.BindingType { func ChildIpv6NdraProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Ipv6NdraProfile"] = bindings.NewReferenceType(Ipv6NdraProfileBindingType) + fields["Ipv6NdraProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(Ipv6NdraProfileBindingType)) fieldNameMap["Ipv6NdraProfile"] = "Ipv6NdraProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46492,7 +46029,7 @@ func ChildIpv6NdraProfileBindingType() bindings.BindingType { func ChildL2BridgeEndpointProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["L2BridgeEndpointProfile"] = bindings.NewReferenceType(L2BridgeEndpointProfileBindingType) + fields["L2BridgeEndpointProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(L2BridgeEndpointProfileBindingType)) fieldNameMap["L2BridgeEndpointProfile"] = "L2BridgeEndpointProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46533,7 +46070,7 @@ func ChildL2BridgeEndpointProfileBindingType() bindings.BindingType { func ChildL2VPNServiceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["L2VPNService"] = bindings.NewReferenceType(L2VPNServiceBindingType) + fields["L2VPNService"] = bindings.NewOptionalType(bindings.NewReferenceType(L2VPNServiceBindingType)) fieldNameMap["L2VPNService"] = "L2VPNService" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46574,7 +46111,7 @@ func ChildL2VPNServiceBindingType() bindings.BindingType { func ChildL2VPNSessionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["L2VPNSession"] = bindings.NewReferenceType(L2VPNSessionBindingType) + fields["L2VPNSession"] = bindings.NewOptionalType(bindings.NewReferenceType(L2VPNSessionBindingType)) fieldNameMap["L2VPNSession"] = "L2VPNSession" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46615,7 +46152,7 @@ func ChildL2VPNSessionBindingType() bindings.BindingType { func ChildL2VpnBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["L2Vpn"] = bindings.NewReferenceType(L2VpnBindingType) + fields["L2Vpn"] = bindings.NewOptionalType(bindings.NewReferenceType(L2VpnBindingType)) fieldNameMap["L2Vpn"] = "L2Vpn" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46656,7 +46193,7 @@ func ChildL2VpnBindingType() bindings.BindingType { func ChildL2VpnContextBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["L2VpnContext"] = bindings.NewReferenceType(L2VpnContextBindingType) + fields["L2VpnContext"] = bindings.NewOptionalType(bindings.NewReferenceType(L2VpnContextBindingType)) fieldNameMap["L2VpnContext"] = "L2VpnContext" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46697,7 +46234,7 @@ func ChildL2VpnContextBindingType() bindings.BindingType { func ChildL3VpnBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["L3Vpn"] = bindings.NewReferenceType(L3VpnBindingType) + fields["L3Vpn"] = bindings.NewOptionalType(bindings.NewReferenceType(L3VpnBindingType)) fieldNameMap["L3Vpn"] = "L3Vpn" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46738,7 +46275,7 @@ func ChildL3VpnBindingType() bindings.BindingType { func ChildL3VpnContextBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["L3VpnContext"] = bindings.NewReferenceType(L3VpnContextBindingType) + fields["L3VpnContext"] = bindings.NewOptionalType(bindings.NewReferenceType(L3VpnContextBindingType)) fieldNameMap["L3VpnContext"] = "L3VpnContext" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46779,7 +46316,7 @@ func ChildL3VpnContextBindingType() bindings.BindingType { func ChildLBAppProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBAppProfile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBAppProfileBindingType),}, bindings.REST) + fields["LBAppProfile"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBAppProfileBindingType),}, bindings.REST)) fieldNameMap["LBAppProfile"] = "LbAppProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46820,7 +46357,7 @@ func ChildLBAppProfileBindingType() bindings.BindingType { func ChildLBClientSslProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBClientSslProfile"] = bindings.NewReferenceType(LBClientSslProfileBindingType) + fields["LBClientSslProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(LBClientSslProfileBindingType)) fieldNameMap["LBClientSslProfile"] = "LbClientSslProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46861,7 +46398,7 @@ func ChildLBClientSslProfileBindingType() bindings.BindingType { func ChildLBMonitorProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBMonitorProfile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBMonitorProfileBindingType),}, bindings.REST) + fields["LBMonitorProfile"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBMonitorProfileBindingType),}, bindings.REST)) fieldNameMap["LBMonitorProfile"] = "LbMonitorProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46902,7 +46439,7 @@ func ChildLBMonitorProfileBindingType() bindings.BindingType { func ChildLBPersistenceProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBPersistenceProfile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBPersistenceProfileBindingType),}, bindings.REST) + fields["LBPersistenceProfile"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBPersistenceProfileBindingType),}, bindings.REST)) fieldNameMap["LBPersistenceProfile"] = "LbPersistenceProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46943,7 +46480,7 @@ func ChildLBPersistenceProfileBindingType() bindings.BindingType { func ChildLBPoolBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBPool"] = bindings.NewReferenceType(LBPoolBindingType) + fields["LBPool"] = bindings.NewOptionalType(bindings.NewReferenceType(LBPoolBindingType)) fieldNameMap["LBPool"] = "LbPool" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -46984,7 +46521,7 @@ func ChildLBPoolBindingType() bindings.BindingType { func ChildLBServerSslProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBServerSslProfile"] = bindings.NewReferenceType(LBServerSslProfileBindingType) + fields["LBServerSslProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(LBServerSslProfileBindingType)) fieldNameMap["LBServerSslProfile"] = "LbServerSslProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47025,7 +46562,7 @@ func ChildLBServerSslProfileBindingType() bindings.BindingType { func ChildLBServiceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBService"] = bindings.NewReferenceType(LBServiceBindingType) + fields["LBService"] = bindings.NewOptionalType(bindings.NewReferenceType(LBServiceBindingType)) fieldNameMap["LBService"] = "LbService" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47066,7 +46603,7 @@ func ChildLBServiceBindingType() bindings.BindingType { func ChildLBVirtualServerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LBVirtualServer"] = bindings.NewReferenceType(LBVirtualServerBindingType) + fields["LBVirtualServer"] = bindings.NewOptionalType(bindings.NewReferenceType(LBVirtualServerBindingType)) fieldNameMap["LBVirtualServer"] = "LbVirtualServer" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47107,7 +46644,7 @@ func ChildLBVirtualServerBindingType() bindings.BindingType { func ChildLocaleServicesBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["LocaleServices"] = bindings.NewReferenceType(LocaleServicesBindingType) + fields["LocaleServices"] = bindings.NewOptionalType(bindings.NewReferenceType(LocaleServicesBindingType)) fieldNameMap["LocaleServices"] = "LocaleServices" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47148,7 +46685,7 @@ func ChildLocaleServicesBindingType() bindings.BindingType { func ChildMacDiscoveryProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["MacDiscoveryProfile"] = bindings.NewReferenceType(MacDiscoveryProfileBindingType) + fields["MacDiscoveryProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(MacDiscoveryProfileBindingType)) fieldNameMap["MacDiscoveryProfile"] = "MacDiscoveryProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47189,7 +46726,7 @@ func ChildMacDiscoveryProfileBindingType() bindings.BindingType { func ChildMetadataProxyConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["MetadataProxyConfig"] = bindings.NewReferenceType(MetadataProxyConfigBindingType) + fields["MetadataProxyConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(MetadataProxyConfigBindingType)) fieldNameMap["MetadataProxyConfig"] = "MetadataProxyConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47269,7 +46806,7 @@ func ChildPolicyConfigResourceBindingType() bindings.BindingType { func ChildPolicyContextProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyContextProfile"] = bindings.NewReferenceType(PolicyContextProfileBindingType) + fields["PolicyContextProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyContextProfileBindingType)) fieldNameMap["PolicyContextProfile"] = "PolicyContextProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47310,7 +46847,7 @@ func ChildPolicyContextProfileBindingType() bindings.BindingType { func ChildPolicyDnsForwarderBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyDnsForwarder"] = bindings.NewReferenceType(PolicyDnsForwarderBindingType) + fields["PolicyDnsForwarder"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyDnsForwarderBindingType)) fieldNameMap["PolicyDnsForwarder"] = "PolicyDnsForwarder" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47351,7 +46888,7 @@ func ChildPolicyDnsForwarderBindingType() bindings.BindingType { func ChildPolicyDnsForwarderZoneBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyDnsForwarderZone"] = bindings.NewReferenceType(PolicyDnsForwarderZoneBindingType) + fields["PolicyDnsForwarderZone"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyDnsForwarderZoneBindingType)) fieldNameMap["PolicyDnsForwarderZone"] = "PolicyDnsForwarderZone" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47392,7 +46929,7 @@ func ChildPolicyDnsForwarderZoneBindingType() bindings.BindingType { func ChildPolicyEdgeClusterBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyEdgeCluster"] = bindings.NewReferenceType(PolicyEdgeClusterBindingType) + fields["PolicyEdgeCluster"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyEdgeClusterBindingType)) fieldNameMap["PolicyEdgeCluster"] = "PolicyEdgeCluster" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47433,7 +46970,7 @@ func ChildPolicyEdgeClusterBindingType() bindings.BindingType { func ChildPolicyEdgeNodeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyEdgeNode"] = bindings.NewReferenceType(PolicyEdgeNodeBindingType) + fields["PolicyEdgeNode"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyEdgeNodeBindingType)) fieldNameMap["PolicyEdgeNode"] = "PolicyEdgeNode" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47474,7 +47011,7 @@ func ChildPolicyEdgeNodeBindingType() bindings.BindingType { func ChildPolicyExcludeListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyExcludeList"] = bindings.NewReferenceType(PolicyExcludeListBindingType) + fields["PolicyExcludeList"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyExcludeListBindingType)) fieldNameMap["PolicyExcludeList"] = "PolicyExcludeList" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47515,7 +47052,7 @@ func ChildPolicyExcludeListBindingType() bindings.BindingType { func ChildPolicyFirewallCPUMemThresholdsProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyFirewallCPUMemThresholdsProfileBindingMap"] = bindings.NewReferenceType(PolicyFirewallCPUMemThresholdsProfileBindingMapBindingType) + fields["PolicyFirewallCPUMemThresholdsProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyFirewallCPUMemThresholdsProfileBindingMapBindingType)) fieldNameMap["PolicyFirewallCPUMemThresholdsProfileBindingMap"] = "PolicyFirewallCPUMemThresholdsProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47556,7 +47093,7 @@ func ChildPolicyFirewallCPUMemThresholdsProfileBindingMapBindingType() bindings. func ChildPolicyFirewallCpuMemThresholdsProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyFirewallCpuMemThresholdsProfile"] = bindings.NewReferenceType(PolicyFirewallCpuMemThresholdsProfileBindingType) + fields["PolicyFirewallCpuMemThresholdsProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyFirewallCpuMemThresholdsProfileBindingType)) fieldNameMap["PolicyFirewallCpuMemThresholdsProfile"] = "PolicyFirewallCpuMemThresholdsProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47597,7 +47134,7 @@ func ChildPolicyFirewallCpuMemThresholdsProfileBindingType() bindings.BindingTyp func ChildPolicyFirewallFloodProtectionProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyFirewallFloodProtectionProfileBindingMap"] = bindings.NewReferenceType(PolicyFirewallFloodProtectionProfileBindingMapBindingType) + fields["PolicyFirewallFloodProtectionProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyFirewallFloodProtectionProfileBindingMapBindingType)) fieldNameMap["PolicyFirewallFloodProtectionProfileBindingMap"] = "PolicyFirewallFloodProtectionProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47638,7 +47175,7 @@ func ChildPolicyFirewallFloodProtectionProfileBindingMapBindingType() bindings.B func ChildPolicyFirewallSchedulerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyFirewallScheduler"] = bindings.NewReferenceType(PolicyFirewallSchedulerBindingType) + fields["PolicyFirewallScheduler"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyFirewallSchedulerBindingType)) fieldNameMap["PolicyFirewallScheduler"] = "PolicyFirewallScheduler" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47679,7 +47216,7 @@ func ChildPolicyFirewallSchedulerBindingType() bindings.BindingType { func ChildPolicyFirewallSessionTimerProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyFirewallSessionTimerProfile"] = bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingType) + fields["PolicyFirewallSessionTimerProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingType)) fieldNameMap["PolicyFirewallSessionTimerProfile"] = "PolicyFirewallSessionTimerProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47720,7 +47257,7 @@ func ChildPolicyFirewallSessionTimerProfileBindingType() bindings.BindingType { func ChildPolicyFirewallSessionTimerProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyFirewallSessionTimerProfileBindingMap"] = bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingMapBindingType) + fields["PolicyFirewallSessionTimerProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingMapBindingType)) fieldNameMap["PolicyFirewallSessionTimerProfileBindingMap"] = "PolicyFirewallSessionTimerProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47761,7 +47298,7 @@ func ChildPolicyFirewallSessionTimerProfileBindingMapBindingType() bindings.Bind func ChildPolicyGroupReferenceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyGroupReference"] = bindings.NewReferenceType(PolicyGroupReferenceBindingType) + fields["PolicyGroupReference"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyGroupReferenceBindingType)) fieldNameMap["PolicyGroupReference"] = "PolicyGroupReference" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47799,11 +47336,11 @@ func ChildPolicyGroupReferenceBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.child_policy_group_reference", fields, reflect.TypeOf(ChildPolicyGroupReference{}), fieldNameMap, validators) } -func ChildPolicyIgmpConfigBindingType() bindings.BindingType { +func ChildPolicyIgmpProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyIgmpConfig"] = bindings.NewReferenceType(PolicyIgmpConfigBindingType) - fieldNameMap["PolicyIgmpConfig"] = "PolicyIgmpConfig" + fields["PolicyIgmpProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyIgmpProfileBindingType)) + fieldNameMap["PolicyIgmpProfile"] = "PolicyIgmpProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -47837,13 +47374,13 @@ func ChildPolicyIgmpConfigBindingType() bindings.BindingType { fields["marked_for_delete"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["marked_for_delete"] = "MarkedForDelete" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.child_policy_igmp_config", fields, reflect.TypeOf(ChildPolicyIgmpConfig{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.child_policy_igmp_profile", fields, reflect.TypeOf(ChildPolicyIgmpProfile{}), fieldNameMap, validators) } func ChildPolicyLabelBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyLabel"] = bindings.NewReferenceType(PolicyLabelBindingType) + fields["PolicyLabel"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyLabelBindingType)) fieldNameMap["PolicyLabel"] = "PolicyLabel" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47884,7 +47421,7 @@ func ChildPolicyLabelBindingType() bindings.BindingType { func ChildPolicyLbMonitorProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyLbMonitorProfile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PolicyLbMonitorProfileBindingType),}, bindings.REST) + fields["PolicyLbMonitorProfile"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PolicyLbMonitorProfileBindingType),}, bindings.REST)) fieldNameMap["PolicyLbMonitorProfile"] = "PolicyLbMonitorProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47925,7 +47462,7 @@ func ChildPolicyLbMonitorProfileBindingType() bindings.BindingType { func ChildPolicyLbPersistenceProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyLbPersistenceProfile"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PolicyLbPersistenceProfileBindingType),}, bindings.REST) + fields["PolicyLbPersistenceProfile"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PolicyLbPersistenceProfileBindingType),}, bindings.REST)) fieldNameMap["PolicyLbPersistenceProfile"] = "PolicyLbPersistenceProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -47966,7 +47503,7 @@ func ChildPolicyLbPersistenceProfileBindingType() bindings.BindingType { func ChildPolicyLbPoolAccessBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyLbPoolAccess"] = bindings.NewReferenceType(PolicyLbPoolAccessBindingType) + fields["PolicyLbPoolAccess"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyLbPoolAccessBindingType)) fieldNameMap["PolicyLbPoolAccess"] = "PolicyLbPoolAccess" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48007,7 +47544,7 @@ func ChildPolicyLbPoolAccessBindingType() bindings.BindingType { func ChildPolicyLbRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyLbRule"] = bindings.NewReferenceType(PolicyLbRuleBindingType) + fields["PolicyLbRule"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyLbRuleBindingType)) fieldNameMap["PolicyLbRule"] = "PolicyLbRule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48048,7 +47585,7 @@ func ChildPolicyLbRuleBindingType() bindings.BindingType { func ChildPolicyLbVirtualServerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyLbVirtualServer"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PolicyLbVirtualServerBindingType),}, bindings.REST) + fields["PolicyLbVirtualServer"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PolicyLbVirtualServerBindingType),}, bindings.REST)) fieldNameMap["PolicyLbVirtualServer"] = "PolicyLbVirtualServer" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48089,7 +47626,7 @@ func ChildPolicyLbVirtualServerBindingType() bindings.BindingType { func ChildPolicyMulticastConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyMulticastConfig"] = bindings.NewReferenceType(PolicyMulticastConfigBindingType) + fields["PolicyMulticastConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyMulticastConfigBindingType)) fieldNameMap["PolicyMulticastConfig"] = "PolicyMulticastConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48130,7 +47667,7 @@ func ChildPolicyMulticastConfigBindingType() bindings.BindingType { func ChildPolicyNatBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyNat"] = bindings.NewReferenceType(PolicyNatBindingType) + fields["PolicyNat"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyNatBindingType)) fieldNameMap["PolicyNat"] = "PolicyNat" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48171,7 +47708,7 @@ func ChildPolicyNatBindingType() bindings.BindingType { func ChildPolicyNatRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyNatRule"] = bindings.NewReferenceType(PolicyNatRuleBindingType) + fields["PolicyNatRule"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyNatRuleBindingType)) fieldNameMap["PolicyNatRule"] = "PolicyNatRule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48209,11 +47746,11 @@ func ChildPolicyNatRuleBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.child_policy_nat_rule", fields, reflect.TypeOf(ChildPolicyNatRule{}), fieldNameMap, validators) } -func ChildPolicyPimConfigBindingType() bindings.BindingType { +func ChildPolicyPimProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyPimConfig"] = bindings.NewReferenceType(PolicyPimConfigBindingType) - fieldNameMap["PolicyPimConfig"] = "PolicyPimConfig" + fields["PolicyPimProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyPimProfileBindingType)) + fieldNameMap["PolicyPimProfile"] = "PolicyPimProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -48247,13 +47784,13 @@ func ChildPolicyPimConfigBindingType() bindings.BindingType { fields["marked_for_delete"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["marked_for_delete"] = "MarkedForDelete" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.child_policy_pim_config", fields, reflect.TypeOf(ChildPolicyPimConfig{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.child_policy_pim_profile", fields, reflect.TypeOf(ChildPolicyPimProfile{}), fieldNameMap, validators) } func ChildPolicyServiceChainBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyServiceChain"] = bindings.NewReferenceType(PolicyServiceChainBindingType) + fields["PolicyServiceChain"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyServiceChainBindingType)) fieldNameMap["PolicyServiceChain"] = "PolicyServiceChain" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48294,7 +47831,7 @@ func ChildPolicyServiceChainBindingType() bindings.BindingType { func ChildPolicyServiceInstanceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyServiceInstance"] = bindings.NewReferenceType(PolicyServiceInstanceBindingType) + fields["PolicyServiceInstance"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyServiceInstanceBindingType)) fieldNameMap["PolicyServiceInstance"] = "PolicyServiceInstance" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48335,7 +47872,7 @@ func ChildPolicyServiceInstanceBindingType() bindings.BindingType { func ChildPolicyServiceProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyServiceProfile"] = bindings.NewReferenceType(PolicyServiceProfileBindingType) + fields["PolicyServiceProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyServiceProfileBindingType)) fieldNameMap["PolicyServiceProfile"] = "PolicyServiceProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48376,7 +47913,7 @@ func ChildPolicyServiceProfileBindingType() bindings.BindingType { func ChildPolicyTransportZoneBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PolicyTransportZone"] = bindings.NewReferenceType(PolicyTransportZoneBindingType) + fields["PolicyTransportZone"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyTransportZoneBindingType)) fieldNameMap["PolicyTransportZone"] = "PolicyTransportZone" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48417,8 +47954,8 @@ func ChildPolicyTransportZoneBindingType() bindings.BindingType { func ChildPolicyUrlCategorizationConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Rule"] = bindings.NewReferenceType(PolicyUrlCategorizationConfigBindingType) - fieldNameMap["Rule"] = "Rule" + fields["PolicyUrlCategorizationConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyUrlCategorizationConfigBindingType)) + fieldNameMap["PolicyUrlCategorizationConfig"] = "PolicyUrlCategorizationConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -48458,7 +47995,7 @@ func ChildPolicyUrlCategorizationConfigBindingType() bindings.BindingType { func ChildPortDiscoveryProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PortDiscoveryProfileBindingMap"] = bindings.NewReferenceType(PortDiscoveryProfileBindingMapBindingType) + fields["PortDiscoveryProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(PortDiscoveryProfileBindingMapBindingType)) fieldNameMap["PortDiscoveryProfileBindingMap"] = "PortDiscoveryProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48499,7 +48036,7 @@ func ChildPortDiscoveryProfileBindingMapBindingType() bindings.BindingType { func ChildPortMirroringProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PortMirroringProfile"] = bindings.NewReferenceType(PortMirroringProfileBindingType) + fields["PortMirroringProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(PortMirroringProfileBindingType)) fieldNameMap["PortMirroringProfile"] = "PortMirroringProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48540,7 +48077,7 @@ func ChildPortMirroringProfileBindingType() bindings.BindingType { func ChildPortMonitoringProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PortMonitoringProfileBindingMap"] = bindings.NewReferenceType(PortMonitoringProfileBindingMapBindingType) + fields["PortMonitoringProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(PortMonitoringProfileBindingMapBindingType)) fieldNameMap["PortMonitoringProfileBindingMap"] = "PortMonitoringProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48581,7 +48118,7 @@ func ChildPortMonitoringProfileBindingMapBindingType() bindings.BindingType { func ChildPortQosProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PortQoSProfileBindingMap"] = bindings.NewReferenceType(PortQosProfileBindingMapBindingType) + fields["PortQoSProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(PortQosProfileBindingMapBindingType)) fieldNameMap["PortQoSProfileBindingMap"] = "PortQosProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48622,7 +48159,7 @@ func ChildPortQosProfileBindingMapBindingType() bindings.BindingType { func ChildPortSecurityProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PortSecurityProfileBindingMap"] = bindings.NewReferenceType(PortSecurityProfileBindingMapBindingType) + fields["PortSecurityProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(PortSecurityProfileBindingMapBindingType)) fieldNameMap["PortSecurityProfileBindingMap"] = "PortSecurityProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48663,7 +48200,7 @@ func ChildPortSecurityProfileBindingMapBindingType() bindings.BindingType { func ChildPrefixListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["PrefixList"] = bindings.NewReferenceType(PrefixListBindingType) + fields["PrefixList"] = bindings.NewOptionalType(bindings.NewReferenceType(PrefixListBindingType)) fieldNameMap["PrefixList"] = "PrefixList" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48704,7 +48241,7 @@ func ChildPrefixListBindingType() bindings.BindingType { func ChildQosProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["QoSProfile"] = bindings.NewReferenceType(QosProfileBindingType) + fields["QoSProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(QosProfileBindingType)) fieldNameMap["QoSProfile"] = "QosProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48745,7 +48282,7 @@ func ChildQosProfileBindingType() bindings.BindingType { func ChildReactionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Reaction"] = bindings.NewReferenceType(ReactionBindingType) + fields["Reaction"] = bindings.NewOptionalType(bindings.NewReferenceType(ReactionBindingType)) fieldNameMap["Reaction"] = "Reaction" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48786,7 +48323,7 @@ func ChildReactionBindingType() bindings.BindingType { func ChildRedirectionPolicyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["RedirectionPolicy"] = bindings.NewReferenceType(RedirectionPolicyBindingType) + fields["RedirectionPolicy"] = bindings.NewOptionalType(bindings.NewReferenceType(RedirectionPolicyBindingType)) fieldNameMap["RedirectionPolicy"] = "RedirectionPolicy" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48827,7 +48364,7 @@ func ChildRedirectionPolicyBindingType() bindings.BindingType { func ChildRedirectionRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["RedirectionRule"] = bindings.NewReferenceType(RedirectionRuleBindingType) + fields["RedirectionRule"] = bindings.NewOptionalType(bindings.NewReferenceType(RedirectionRuleBindingType)) fieldNameMap["RedirectionRule"] = "RedirectionRule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48870,7 +48407,7 @@ func ChildResourceReferenceBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["children"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ChildPolicyConfigResourceBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["children"] = "Children" - fields["target_type"] = bindings.NewStringType() + fields["target_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["target_type"] = "TargetType" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48911,7 +48448,7 @@ func ChildResourceReferenceBindingType() bindings.BindingType { func ChildRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Rule"] = bindings.NewReferenceType(RuleBindingType) + fields["Rule"] = bindings.NewOptionalType(bindings.NewReferenceType(RuleBindingType)) fieldNameMap["Rule"] = "Rule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48952,7 +48489,7 @@ func ChildRuleBindingType() bindings.BindingType { func ChildSecurityPolicyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SecurityPolicy"] = bindings.NewReferenceType(SecurityPolicyBindingType) + fields["SecurityPolicy"] = bindings.NewOptionalType(bindings.NewReferenceType(SecurityPolicyBindingType)) fieldNameMap["SecurityPolicy"] = "SecurityPolicy" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -48993,7 +48530,7 @@ func ChildSecurityPolicyBindingType() bindings.BindingType { func ChildSecurityZoneBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SecurityZone"] = bindings.NewReferenceType(SecurityZoneBindingType) + fields["SecurityZone"] = bindings.NewOptionalType(bindings.NewReferenceType(SecurityZoneBindingType)) fieldNameMap["SecurityZone"] = "SecurityZone" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49034,7 +48571,7 @@ func ChildSecurityZoneBindingType() bindings.BindingType { func ChildSecurityZoneBindingBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SecurityZoneBinding"] = bindings.NewReferenceType(SecurityZoneBindingBindingType) + fields["SecurityZoneBinding"] = bindings.NewOptionalType(bindings.NewReferenceType(SecurityZoneBindingBindingType)) fieldNameMap["SecurityZoneBinding"] = "SecurityZoneBinding" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49075,7 +48612,7 @@ func ChildSecurityZoneBindingBindingType() bindings.BindingType { func ChildSecurityZoneRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SecurityZoneRule"] = bindings.NewReferenceType(SecurityZoneRuleBindingType) + fields["SecurityZoneRule"] = bindings.NewOptionalType(bindings.NewReferenceType(SecurityZoneRuleBindingType)) fieldNameMap["SecurityZoneRule"] = "SecurityZoneRule" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49116,7 +48653,7 @@ func ChildSecurityZoneRuleBindingType() bindings.BindingType { func ChildSegmentBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Segment"] = bindings.NewReferenceType(SegmentBindingType) + fields["Segment"] = bindings.NewOptionalType(bindings.NewReferenceType(SegmentBindingType)) fieldNameMap["Segment"] = "Segment" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49157,7 +48694,7 @@ func ChildSegmentBindingType() bindings.BindingType { func ChildSegmentDiscoveryProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SegmentDiscoveryProfileBindingMap"] = bindings.NewReferenceType(SegmentDiscoveryProfileBindingMapBindingType) + fields["SegmentDiscoveryProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(SegmentDiscoveryProfileBindingMapBindingType)) fieldNameMap["SegmentDiscoveryProfileBindingMap"] = "SegmentDiscoveryProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49198,7 +48735,7 @@ func ChildSegmentDiscoveryProfileBindingMapBindingType() bindings.BindingType { func ChildSegmentMonitoringProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SegmentMonitoringProfileBindingMap"] = bindings.NewReferenceType(SegmentMonitoringProfileBindingMapBindingType) + fields["SegmentMonitoringProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(SegmentMonitoringProfileBindingMapBindingType)) fieldNameMap["SegmentMonitoringProfileBindingMap"] = "SegmentMonitoringProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49239,7 +48776,7 @@ func ChildSegmentMonitoringProfileBindingMapBindingType() bindings.BindingType { func ChildSegmentPortBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SegmentPort"] = bindings.NewReferenceType(SegmentPortBindingType) + fields["SegmentPort"] = bindings.NewOptionalType(bindings.NewReferenceType(SegmentPortBindingType)) fieldNameMap["SegmentPort"] = "SegmentPort" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49280,7 +48817,7 @@ func ChildSegmentPortBindingType() bindings.BindingType { func ChildSegmentQosProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SegmentQoSProfileBindingMap"] = bindings.NewReferenceType(SegmentQosProfileBindingMapBindingType) + fields["SegmentQoSProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(SegmentQosProfileBindingMapBindingType)) fieldNameMap["SegmentQoSProfileBindingMap"] = "SegmentQosProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49321,7 +48858,7 @@ func ChildSegmentQosProfileBindingMapBindingType() bindings.BindingType { func ChildSegmentSecurityProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SegmentSecurityProfile"] = bindings.NewReferenceType(SegmentSecurityProfileBindingType) + fields["SegmentSecurityProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(SegmentSecurityProfileBindingType)) fieldNameMap["SegmentSecurityProfile"] = "SegmentSecurityProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49362,7 +48899,7 @@ func ChildSegmentSecurityProfileBindingType() bindings.BindingType { func ChildSegmentSecurityProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SegmentSecurityProfileBindingMap"] = bindings.NewReferenceType(SegmentSecurityProfileBindingMapBindingType) + fields["SegmentSecurityProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(SegmentSecurityProfileBindingMapBindingType)) fieldNameMap["SegmentSecurityProfileBindingMap"] = "SegmentSecurityProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49403,7 +48940,7 @@ func ChildSegmentSecurityProfileBindingMapBindingType() bindings.BindingType { func ChildServiceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Service"] = bindings.NewReferenceType(ServiceBindingType) + fields["Service"] = bindings.NewOptionalType(bindings.NewReferenceType(ServiceBindingType)) fieldNameMap["Service"] = "Service" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49446,7 +48983,7 @@ func ChildServiceEntryBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["Service"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ServiceEntryBindingType),}, bindings.REST)) fieldNameMap["Service"] = "Service" - fields["ServiceEntry"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ServiceEntryBindingType),}, bindings.REST) + fields["ServiceEntry"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ServiceEntryBindingType),}, bindings.REST)) fieldNameMap["ServiceEntry"] = "ServiceEntry" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49487,7 +49024,7 @@ func ChildServiceEntryBindingType() bindings.BindingType { func ChildServiceInstanceEndpointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ServiceInstanceEndpoint"] = bindings.NewReferenceType(ServiceInstanceEndpointBindingType) + fields["ServiceInstanceEndpoint"] = bindings.NewOptionalType(bindings.NewReferenceType(ServiceInstanceEndpointBindingType)) fieldNameMap["ServiceInstanceEndpoint"] = "ServiceInstanceEndpoint" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49528,7 +49065,7 @@ func ChildServiceInstanceEndpointBindingType() bindings.BindingType { func ChildServiceInterfaceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ServiceInterface"] = bindings.NewReferenceType(ServiceInterfaceBindingType) + fields["ServiceInterface"] = bindings.NewOptionalType(bindings.NewReferenceType(ServiceInterfaceBindingType)) fieldNameMap["ServiceInterface"] = "ServiceInterface" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49569,7 +49106,7 @@ func ChildServiceInterfaceBindingType() bindings.BindingType { func ChildServiceReferenceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ServiceReference"] = bindings.NewReferenceType(ServiceReferenceBindingType) + fields["ServiceReference"] = bindings.NewOptionalType(bindings.NewReferenceType(ServiceReferenceBindingType)) fieldNameMap["ServiceReference"] = "ServiceReference" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49610,7 +49147,7 @@ func ChildServiceReferenceBindingType() bindings.BindingType { func ChildServiceSegmentBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ServiceSegment"] = bindings.NewReferenceType(ServiceSegmentBindingType) + fields["ServiceSegment"] = bindings.NewOptionalType(bindings.NewReferenceType(ServiceSegmentBindingType)) fieldNameMap["ServiceSegment"] = "ServiceSegment" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49651,7 +49188,7 @@ func ChildServiceSegmentBindingType() bindings.BindingType { func ChildSessionTimerProfileBindingMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SessionTimerProfileBindingMap"] = bindings.NewReferenceType(SessionTimerProfileBindingMapBindingType) + fields["SessionTimerProfileBindingMap"] = bindings.NewOptionalType(bindings.NewReferenceType(SessionTimerProfileBindingMapBindingType)) fieldNameMap["SessionTimerProfileBindingMap"] = "SessionTimerProfileBindingMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49692,7 +49229,7 @@ func ChildSessionTimerProfileBindingMapBindingType() bindings.BindingType { func ChildSiteBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Site"] = bindings.NewReferenceType(SiteBindingType) + fields["Site"] = bindings.NewOptionalType(bindings.NewReferenceType(SiteBindingType)) fieldNameMap["Site"] = "Site" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49733,7 +49270,7 @@ func ChildSiteBindingType() bindings.BindingType { func ChildSpoofGuardProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SpoofGuardProfile"] = bindings.NewReferenceType(SpoofGuardProfileBindingType) + fields["SpoofGuardProfile"] = bindings.NewOptionalType(bindings.NewReferenceType(SpoofGuardProfileBindingType)) fieldNameMap["SpoofGuardProfile"] = "SpoofGuardProfile" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49774,7 +49311,7 @@ func ChildSpoofGuardProfileBindingType() bindings.BindingType { func ChildSslTrustObjectDataBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["SslTrustObjectData"] = bindings.NewReferenceType(SslTrustObjectDataBindingType) + fields["SslTrustObjectData"] = bindings.NewOptionalType(bindings.NewReferenceType(SslTrustObjectDataBindingType)) fieldNameMap["SslTrustObjectData"] = "SslTrustObjectData" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49815,7 +49352,7 @@ func ChildSslTrustObjectDataBindingType() bindings.BindingType { func ChildStandaloneHostIdfwConfigurationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["StandaloneHostIdfwConfiguration"] = bindings.NewReferenceType(StandaloneHostIdfwConfigurationBindingType) + fields["StandaloneHostIdfwConfiguration"] = bindings.NewOptionalType(bindings.NewReferenceType(StandaloneHostIdfwConfigurationBindingType)) fieldNameMap["StandaloneHostIdfwConfiguration"] = "StandaloneHostIdfwConfiguration" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49856,7 +49393,7 @@ func ChildStandaloneHostIdfwConfigurationBindingType() bindings.BindingType { func ChildStaticARPConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["StaticARPConfig"] = bindings.NewReferenceType(StaticARPConfigBindingType) + fields["StaticARPConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(StaticARPConfigBindingType)) fieldNameMap["StaticARPConfig"] = "StaticARPConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49897,7 +49434,7 @@ func ChildStaticARPConfigBindingType() bindings.BindingType { func ChildStaticRouteBfdPeerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["BfdPeer"] = bindings.NewReferenceType(StaticRouteBfdPeerBindingType) + fields["BfdPeer"] = bindings.NewOptionalType(bindings.NewReferenceType(StaticRouteBfdPeerBindingType)) fieldNameMap["BfdPeer"] = "BfdPeer" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49938,7 +49475,7 @@ func ChildStaticRouteBfdPeerBindingType() bindings.BindingType { func ChildStaticRoutesBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["StaticRoutes"] = bindings.NewReferenceType(StaticRoutesBindingType) + fields["StaticRoutes"] = bindings.NewOptionalType(bindings.NewReferenceType(StaticRoutesBindingType)) fieldNameMap["StaticRoutes"] = "StaticRoutes" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -49979,7 +49516,7 @@ func ChildStaticRoutesBindingType() bindings.BindingType { func ChildTier0BindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Tier0"] = bindings.NewReferenceType(Tier0BindingType) + fields["Tier0"] = bindings.NewOptionalType(bindings.NewReferenceType(Tier0BindingType)) fieldNameMap["Tier0"] = "Tier0" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50020,7 +49557,7 @@ func ChildTier0BindingType() bindings.BindingType { func ChildTier0DeploymentMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Tier0DeploymentMap"] = bindings.NewReferenceType(Tier0DeploymentMapBindingType) + fields["Tier0DeploymentMap"] = bindings.NewOptionalType(bindings.NewReferenceType(Tier0DeploymentMapBindingType)) fieldNameMap["Tier0DeploymentMap"] = "Tier0DeploymentMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50061,7 +49598,7 @@ func ChildTier0DeploymentMapBindingType() bindings.BindingType { func ChildTier0InterfaceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Tier0Interface"] = bindings.NewReferenceType(Tier0InterfaceBindingType) + fields["Tier0Interface"] = bindings.NewOptionalType(bindings.NewReferenceType(Tier0InterfaceBindingType)) fieldNameMap["Tier0Interface"] = "Tier0Interface" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50102,7 +49639,7 @@ func ChildTier0InterfaceBindingType() bindings.BindingType { func ChildTier0RouteMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Tier0RouteMap"] = bindings.NewReferenceType(Tier0RouteMapBindingType) + fields["Tier0RouteMap"] = bindings.NewOptionalType(bindings.NewReferenceType(Tier0RouteMapBindingType)) fieldNameMap["Tier0RouteMap"] = "Tier0RouteMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50143,7 +49680,7 @@ func ChildTier0RouteMapBindingType() bindings.BindingType { func ChildTier1BindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Tier1"] = bindings.NewReferenceType(Tier1BindingType) + fields["Tier1"] = bindings.NewOptionalType(bindings.NewReferenceType(Tier1BindingType)) fieldNameMap["Tier1"] = "Tier1" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50184,7 +49721,7 @@ func ChildTier1BindingType() bindings.BindingType { func ChildTier1DeploymentMapBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Tier1DeploymentMap"] = bindings.NewReferenceType(Tier1DeploymentMapBindingType) + fields["Tier1DeploymentMap"] = bindings.NewOptionalType(bindings.NewReferenceType(Tier1DeploymentMapBindingType)) fieldNameMap["Tier1DeploymentMap"] = "Tier1DeploymentMap" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50225,7 +49762,7 @@ func ChildTier1DeploymentMapBindingType() bindings.BindingType { func ChildTier1InterfaceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Tier1Interface"] = bindings.NewReferenceType(Tier1InterfaceBindingType) + fields["Tier1Interface"] = bindings.NewOptionalType(bindings.NewReferenceType(Tier1InterfaceBindingType)) fieldNameMap["Tier1Interface"] = "Tier1Interface" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50266,7 +49803,7 @@ func ChildTier1InterfaceBindingType() bindings.BindingType { func ChildTlsCertificateBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["TlsCertificate"] = bindings.NewReferenceType(TlsCertificateBindingType) + fields["TlsCertificate"] = bindings.NewOptionalType(bindings.NewReferenceType(TlsCertificateBindingType)) fieldNameMap["TlsCertificate"] = "TlsCertificate" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50307,7 +49844,7 @@ func ChildTlsCertificateBindingType() bindings.BindingType { func ChildTlsCrlBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["TlsCrl"] = bindings.NewReferenceType(TlsCrlBindingType) + fields["TlsCrl"] = bindings.NewOptionalType(bindings.NewReferenceType(TlsCrlBindingType)) fieldNameMap["TlsCrl"] = "TlsCrl" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50348,7 +49885,7 @@ func ChildTlsCrlBindingType() bindings.BindingType { func ChildTlsTrustDataBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["TlsTrustData"] = bindings.NewReferenceType(TlsTrustDataBindingType) + fields["TlsTrustData"] = bindings.NewOptionalType(bindings.NewReferenceType(TlsTrustDataBindingType)) fieldNameMap["TlsTrustData"] = "TlsTrustData" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50389,7 +49926,7 @@ func ChildTlsTrustDataBindingType() bindings.BindingType { func ChildTraceflowConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["TraceflowConfig"] = bindings.NewReferenceType(TraceflowConfigBindingType) + fields["TraceflowConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(TraceflowConfigBindingType)) fieldNameMap["TraceflowConfig"] = "TraceflowConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50430,7 +49967,7 @@ func ChildTraceflowConfigBindingType() bindings.BindingType { func ChildVhcBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["Vhc"] = bindings.NewReferenceType(VhcBindingType) + fields["Vhc"] = bindings.NewOptionalType(bindings.NewReferenceType(VhcBindingType)) fieldNameMap["Vhc"] = "Vhc" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50471,7 +50008,7 @@ func ChildVhcBindingType() bindings.BindingType { func ChildVhcDnsConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["VhcDnsConfig"] = bindings.NewReferenceType(VhcDnsConfigBindingType) + fields["VhcDnsConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(VhcDnsConfigBindingType)) fieldNameMap["VhcDnsConfig"] = "VhcDnsConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50512,7 +50049,7 @@ func ChildVhcDnsConfigBindingType() bindings.BindingType { func ChildVirtualEndpointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["VirtualEndpoint"] = bindings.NewReferenceType(VirtualEndpointBindingType) + fields["VirtualEndpoint"] = bindings.NewOptionalType(bindings.NewReferenceType(VirtualEndpointBindingType)) fieldNameMap["VirtualEndpoint"] = "VirtualEndpoint" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50553,7 +50090,7 @@ func ChildVirtualEndpointBindingType() bindings.BindingType { func ChildVniPoolConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["VniPoolConfig"] = bindings.NewReferenceType(VniPoolConfigBindingType) + fields["VniPoolConfig"] = bindings.NewOptionalType(bindings.NewReferenceType(VniPoolConfigBindingType)) fieldNameMap["VniPoolConfig"] = "VniPoolConfig" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -50581,82 +50118,25 @@ func ChildVniPoolConfigBindingType() bindings.BindingType { fieldNameMap["display_name"] = "DisplayName" fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["id"] = "Id" - fields["resource_type"] = bindings.NewStringType() - fieldNameMap["resource_type"] = "ResourceType" - fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) - fieldNameMap["tags"] = "Tags" - fields["marked_for_delete"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["marked_for_delete"] = "MarkedForDelete" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.child_vni_pool_config", fields, reflect.TypeOf(ChildVniPoolConfig{}), fieldNameMap, validators) -} - -func ClasslessStaticRouteBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["network"] = bindings.NewStringType() - fieldNameMap["network"] = "Network" - fields["next_hop"] = bindings.NewStringType() - fieldNameMap["next_hop"] = "NextHop" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.classless_static_route", fields, reflect.TypeOf(ClasslessStaticRoute{}), fieldNameMap, validators) -} - -func CloudConnectionStateBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_revision"] = "Revision" - fields["_create_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_create_time"] = "CreateTime" - fields["_create_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_create_user"] = "CreateUser" - fields["_last_modified_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_last_modified_time"] = "LastModifiedTime" - fields["_last_modified_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_last_modified_user"] = "LastModifiedUser" - fields["_protection"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_protection"] = "Protection" - fields["_system_owned"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["_system_owned"] = "SystemOwned" - fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["description"] = "Description" - fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["display_name"] = "DisplayName" - fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["id"] = "Id" - fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) + fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["parent_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["parent_path"] = "ParentPath" - fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["path"] = "Path" - fields["relative_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["relative_path"] = "RelativePath" - fields["unique_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["unique_id"] = "UniqueId" - fields["children"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ChildPolicyConfigResourceBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) - fieldNameMap["children"] = "Children" fields["marked_for_delete"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["marked_for_delete"] = "MarkedForDelete" - fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["overridden"] = "Overridden" - fields["cloud_connection_status"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cloud_connection_status"] = "CloudConnectionStatus" - fields["last_sync_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["last_sync_time"] = "LastSyncTime" - fields["url_data_version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["url_data_version"] = "UrlDataVersion" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.cloud_connection_state", fields, reflect.TypeOf(CloudConnectionState{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.child_vni_pool_config", fields, reflect.TypeOf(ChildVniPoolConfig{}), fieldNameMap, validators) +} + +func ClasslessStaticRouteBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["network"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["network"] = "Network" + fields["next_hop"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["next_hop"] = "NextHop" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.classless_static_route", fields, reflect.TypeOf(ClasslessStaticRoute{}), fieldNameMap, validators) } func CloudNativeServiceInstanceBindingType() bindings.BindingType { @@ -50758,11 +50238,11 @@ func ColumnItemBindingType() bindings.BindingType { fieldNameMap["column_identifier"] = "ColumnIdentifier" fields["drilldown_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["drilldown_id"] = "DrilldownId" - fields["field"] = bindings.NewStringType() + fields["field"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field"] = "Field" fields["hidden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["hidden"] = "Hidden" - fields["label"] = bindings.NewReferenceType(LabelBindingType) + fields["label"] = bindings.NewOptionalType(bindings.NewReferenceType(LabelBindingType)) fieldNameMap["label"] = "Label" fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" @@ -50774,7 +50254,7 @@ func ColumnItemBindingType() bindings.BindingType { fieldNameMap["sort_key"] = "SortKey" fields["tooltip"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TooltipBindingType), reflect.TypeOf([]Tooltip{}))) fieldNameMap["tooltip"] = "Tooltip" - fields["type"] = bindings.NewStringType() + fields["type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["type"] = "Type_" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.column_item", fields, reflect.TypeOf(ColumnItem{}), fieldNameMap, validators) @@ -50870,7 +50350,7 @@ func CommunicationEntryListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(CommunicationEntryBindingType), reflect.TypeOf([]CommunicationEntry{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(CommunicationEntryBindingType), reflect.TypeOf([]CommunicationEntry{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.communication_entry_list_result", fields, reflect.TypeOf(CommunicationEntryListResult{}), fieldNameMap, validators) @@ -50961,7 +50441,7 @@ func CommunicationMapListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(CommunicationMapBindingType), reflect.TypeOf([]CommunicationMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(CommunicationMapBindingType), reflect.TypeOf([]CommunicationMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.communication_map_list_result", fields, reflect.TypeOf(CommunicationMapListResult{}), fieldNameMap, validators) @@ -51014,7 +50494,7 @@ func CommunityListBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["communities"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["communities"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["communities"] = "Communities" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.community_list", fields, reflect.TypeOf(CommunityList{}), fieldNameMap, validators) @@ -51037,7 +50517,7 @@ func CommunityListListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(CommunityListBindingType), reflect.TypeOf([]CommunityList{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(CommunityListBindingType), reflect.TypeOf([]CommunityList{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.community_list_list_result", fields, reflect.TypeOf(CommunityListListResult{}), fieldNameMap, validators) @@ -51046,7 +50526,7 @@ func CommunityListListResultBindingType() bindings.BindingType { func CommunityMatchCriteriaBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["criteria"] = bindings.NewStringType() + fields["criteria"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["criteria"] = "Criteria" fields["match_operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_operator"] = "MatchOperator" @@ -51054,23 +50534,6 @@ func CommunityMatchCriteriaBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.community_match_criteria", fields, reflect.TypeOf(CommunityMatchCriteria{}), fieldNameMap, validators) } -func CompatibilityCheckResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["local_nsx_version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["local_nsx_version"] = "LocalNsxVersion" - fields["nsx_version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["nsx_version"] = "NsxVersion" - fields["rtt"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["rtt"] = "Rtt" - fields["rtt_exceeded"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["rtt_exceeded"] = "RttExceeded" - fields["version_compatible"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["version_compatible"] = "VersionCompatible" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.compatibility_check_result", fields, reflect.TypeOf(CompatibilityCheckResult{}), fieldNameMap, validators) -} - func ComputeClusterIdfwConfigurationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -51118,9 +50581,9 @@ func ComputeClusterIdfwConfigurationBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["cluster_idfw_enabled"] = bindings.NewBooleanType() + fields["cluster_idfw_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["cluster_idfw_enabled"] = "ClusterIdfwEnabled" - fields["member"] = bindings.NewReferenceType(PolicyResourceReferenceBindingType) + fields["member"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyResourceReferenceBindingType)) fieldNameMap["member"] = "Member" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.compute_cluster_idfw_configuration", fields, reflect.TypeOf(ComputeClusterIdfwConfiguration{}), fieldNameMap, validators) @@ -51143,7 +50606,7 @@ func ComputeClusterIdfwConfigurationListResultBindingType() bindings.BindingType fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ComputeClusterIdfwConfigurationBindingType), reflect.TypeOf([]ComputeClusterIdfwConfiguration{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ComputeClusterIdfwConfigurationBindingType), reflect.TypeOf([]ComputeClusterIdfwConfiguration{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.compute_cluster_idfw_configuration_list_result", fields, reflect.TypeOf(ComputeClusterIdfwConfigurationListResult{}), fieldNameMap, validators) @@ -51187,13 +50650,13 @@ func ComputeCollectionBindingType() bindings.BindingType { func ConditionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["key"] = bindings.NewStringType() + fields["key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["key"] = "Key" - fields["member_type"] = bindings.NewStringType() + fields["member_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["member_type"] = "MemberType" - fields["operator"] = bindings.NewStringType() + fields["operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operator"] = "Operator" - fields["value"] = bindings.NewStringType() + fields["value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["value"] = "Value" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -51246,11 +50709,11 @@ func ConditionBindingType() bindings.BindingType { func ConditionalValueConstraintExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["operator"] = bindings.NewStringType() + fields["operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operator"] = "Operator" - fields["rhs_value"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["rhs_value"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["rhs_value"] = "RhsValue" - fields["value_constraint"] = bindings.NewReferenceType(ValueConstraintExpressionBindingType) + fields["value_constraint"] = bindings.NewOptionalType(bindings.NewReferenceType(ValueConstraintExpressionBindingType)) fieldNameMap["value_constraint"] = "ValueConstraint" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.conditional_value_constraint_expression", fields, reflect.TypeOf(ConditionalValueConstraintExpression{}), fieldNameMap, validators) @@ -51295,7 +50758,7 @@ func ConfigurationStateElementBindingType() bindings.BindingType { func ConjunctionOperatorBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["conjunction_operator"] = bindings.NewStringType() + fields["conjunction_operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["conjunction_operator"] = "ConjunctionOperator" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -51376,6 +50839,27 @@ func ConsolidatedStatusBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.consolidated_status", fields, reflect.TypeOf(ConsolidatedStatus{}), fieldNameMap, validators) } +func ConsolidatedStatusNsxtBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["enforced_status"] = bindings.NewOptionalType(bindings.NewReferenceType(EnforcedStatusDetailsNsxtBindingType)) + fieldNameMap["enforced_status"] = "EnforcedStatus" + fields["alarm"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyRuntimeAlarmBindingType)) + fieldNameMap["alarm"] = "Alarm" + fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["enforcement_point_path"] = "EnforcementPointPath" + fields["consolidated_status"] = bindings.NewOptionalType(bindings.NewReferenceType(ConsolidatedStatusBindingType)) + fieldNameMap["consolidated_status"] = "ConsolidatedStatus" + fields["enforcement_point_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["enforcement_point_id"] = "EnforcementPointId" + fields["resource_type"] = bindings.NewStringType() + fieldNameMap["resource_type"] = "ResourceType" + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_path"] = "SitePath" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.consolidated_status_nsxt", fields, reflect.TypeOf(ConsolidatedStatusNsxt{}), fieldNameMap, validators) +} + func ConsolidatedStatusPerEnforcementPointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -51387,6 +50871,10 @@ func ConsolidatedStatusPerEnforcementPointBindingType() bindings.BindingType { fieldNameMap["consolidated_status"] = "ConsolidatedStatus" fields["enforcement_point_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_id"] = "EnforcementPointId" + fields["resource_type"] = bindings.NewStringType() + fieldNameMap["resource_type"] = "ResourceType" + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_path"] = "SitePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.consolidated_status_per_enforcement_point", fields, reflect.TypeOf(ConsolidatedStatusPerEnforcementPoint{}), fieldNameMap, validators) } @@ -51449,11 +50937,11 @@ func ConstraintBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["constraint_expression"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ConstraintExpressionBindingType),}, bindings.REST) + fields["constraint_expression"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ConstraintExpressionBindingType),}, bindings.REST)) fieldNameMap["constraint_expression"] = "ConstraintExpression" fields["message"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["message"] = "Message" - fields["target"] = bindings.NewReferenceType(ConstraintTargetBindingType) + fields["target"] = bindings.NewOptionalType(bindings.NewReferenceType(ConstraintTargetBindingType)) fieldNameMap["target"] = "Target" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.constraint", fields, reflect.TypeOf(Constraint{}), fieldNameMap, validators) @@ -51513,7 +51001,7 @@ func ConstraintListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ConstraintBindingType), reflect.TypeOf([]Constraint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ConstraintBindingType), reflect.TypeOf([]Constraint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.constraint_list_result", fields, reflect.TypeOf(ConstraintListResult{}), fieldNameMap, validators) @@ -51526,7 +51014,7 @@ func ConstraintTargetBindingType() bindings.BindingType { fieldNameMap["attribute"] = "Attribute" fields["path_prefix"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["path_prefix"] = "PathPrefix" - fields["target_resource_type"] = bindings.NewStringType() + fields["target_resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["target_resource_type"] = "TargetResourceType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.constraint_target", fields, reflect.TypeOf(ConstraintTarget{}), fieldNameMap, validators) @@ -51539,7 +51027,7 @@ func ContainerApplicationBindingType() bindings.BindingType { fieldNameMap["container_cluster_id"] = "ContainerClusterId" fields["container_project_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["container_project_id"] = "ContainerProjectId" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" fields["network_errors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NetworkErrorBindingType), reflect.TypeOf([]NetworkError{}))) fieldNameMap["network_errors"] = "NetworkErrors" @@ -51580,7 +51068,7 @@ func ContainerApplicationInstanceBindingType() bindings.BindingType { fieldNameMap["container_cluster_id"] = "ContainerClusterId" fields["container_project_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["container_project_id"] = "ContainerProjectId" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" fields["network_errors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NetworkErrorBindingType), reflect.TypeOf([]NetworkError{}))) fieldNameMap["network_errors"] = "NetworkErrors" @@ -51650,7 +51138,7 @@ func ContainerClusterNodeBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["container_cluster_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["container_cluster_id"] = "ContainerClusterId" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ip_addresses"] = "IpAddresses" @@ -51691,8 +51179,6 @@ func ContainerConfigurationBindingType() bindings.BindingType { fieldNameMap["layout"] = "Layout" fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" - fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["span"] = "Span" fields["widgets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(WidgetItemBindingType), reflect.TypeOf([]WidgetItem{}))) fieldNameMap["widgets"] = "Widgets" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) @@ -51745,6 +51231,8 @@ func ContainerConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -51754,7 +51242,7 @@ func ContainerConfigurationBindingType() bindings.BindingType { func ContainerInfrastructureInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["infra_type"] = bindings.NewStringType() + fields["infra_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["infra_type"] = "InfraType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.container_infrastructure_info", fields, reflect.TypeOf(ContainerInfrastructureInfo{}), fieldNameMap, validators) @@ -51769,7 +51257,7 @@ func ContainerIngressPolicyBindingType() bindings.BindingType { fieldNameMap["container_cluster_id"] = "ContainerClusterId" fields["container_project_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["container_project_id"] = "ContainerProjectId" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" fields["network_errors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NetworkErrorBindingType), reflect.TypeOf([]NetworkError{}))) fieldNameMap["network_errors"] = "NetworkErrors" @@ -51806,7 +51294,7 @@ func ContainerNetworkPolicyBindingType() bindings.BindingType { fieldNameMap["container_cluster_id"] = "ContainerClusterId" fields["container_project_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["container_project_id"] = "ContainerProjectId" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" fields["network_errors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NetworkErrorBindingType), reflect.TypeOf([]NetworkError{}))) fieldNameMap["network_errors"] = "NetworkErrors" @@ -51843,7 +51331,7 @@ func ContainerProjectBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["container_cluster_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["container_cluster_id"] = "ContainerClusterId" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" fields["network_errors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NetworkErrorBindingType), reflect.TypeOf([]NetworkError{}))) fieldNameMap["network_errors"] = "NetworkErrors" @@ -51871,29 +51359,10 @@ func ContainerProjectBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.container_project", fields, reflect.TypeOf(ContainerProject{}), fieldNameMap, validators) } -func CreateStandbyGlobalManagerTaskBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["action"] = bindings.NewStringType() - fieldNameMap["action"] = "Action" - fields["end_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["end_time"] = "EndTime" - fields["result"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result"] = "Result" - fields["result_description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result_description"] = "ResultDescription" - fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["start_time"] = "StartTime" - fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["state"] = "State" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.create_standby_global_manager_task", fields, reflect.TypeOf(CreateStandbyGlobalManagerTask{}), fieldNameMap, validators) -} - func CriterionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["evaluations"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(EvaluationBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["evaluations"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(EvaluationBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["evaluations"] = "Evaluations" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.criterion", fields, reflect.TypeOf(Criterion{}), fieldNameMap, validators) @@ -51926,7 +51395,7 @@ func CurrentBackupOperationStatusBindingType() bindings.BindingType { fieldNameMap["current_step_message"] = "CurrentStepMessage" fields["end_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["end_time"] = "EndTime" - fields["operation_type"] = bindings.NewStringType() + fields["operation_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operation_type"] = "OperationType" fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["start_time"] = "StartTime" @@ -51937,7 +51406,7 @@ func CurrentBackupOperationStatusBindingType() bindings.BindingType { func CustomPolicyLbPersistenceProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["persistence"] = bindings.NewStringType() + fields["persistence"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["persistence"] = "Persistence" fields["persistence_shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["persistence_shared"] = "PersistenceShared" @@ -51992,7 +51461,7 @@ func CustomPolicyLbPersistenceProfileBindingType() bindings.BindingType { func CustomPolicyLbVirtualServerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["app_protocol"] = bindings.NewStringType() + fields["app_protocol"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["app_protocol"] = "AppProtocol" fields["client_ssl_certificate_ids"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["client_ssl_certificate_ids"] = "ClientSslCertificateIds" @@ -52052,13 +51521,13 @@ func CustomPolicyLbVirtualServerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["access_log_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["access_log_enabled"] = "AccessLogEnabled" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lb_persistence_profile"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lb_persistence_profile"] = "LbPersistenceProfile" - fields["ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ports"] = "Ports" - fields["router_path"] = bindings.NewStringType() + fields["router_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["router_path"] = "RouterPath" fields["traffic_source"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["traffic_source"] = "TrafficSource" @@ -52121,6 +51590,8 @@ func CustomWidgetConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -52136,7 +51607,7 @@ func CvxConnectionInfoBindingType() bindings.BindingType { fieldNameMap["thumbprint"] = "Thumbprint" fields["username"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["username"] = "Username" - fields["enforcement_point_address"] = bindings.NewStringType() + fields["enforcement_point_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_address"] = "EnforcementPointAddress" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -52173,7 +51644,7 @@ func DataCounterBindingType() bindings.BindingType { fieldNameMap["dropped"] = "Dropped" fields["multicast_broadcast"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["multicast_broadcast"] = "MulticastBroadcast" - fields["total"] = bindings.NewIntegerType() + fields["total"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["total"] = "Total" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.data_counter", fields, reflect.TypeOf(DataCounter{}), fieldNameMap, validators) @@ -52191,9 +51662,9 @@ func DataSourceParametersBindingType() bindings.BindingType { func DatasourceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["display_name"] = bindings.NewStringType() + fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" - fields["urls"] = bindings.NewListType(bindings.NewReferenceType(UrlAliasBindingType), reflect.TypeOf([]UrlAlias{})) + fields["urls"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(UrlAliasBindingType), reflect.TypeOf([]UrlAlias{}))) fieldNameMap["urls"] = "Urls" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.datasource", fields, reflect.TypeOf(Datasource{}), fieldNameMap, validators) @@ -52202,9 +51673,9 @@ func DatasourceBindingType() bindings.BindingType { func DefaultFilterValueBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["alias"] = bindings.NewStringType() + fields["alias"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["alias"] = "Alias" - fields["value"] = bindings.NewStringType() + fields["value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.default_filter_value", fields, reflect.TypeOf(DefaultFilterValue{}), fieldNameMap, validators) @@ -52291,7 +51762,7 @@ func DeploymentZoneListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(DeploymentZoneBindingType), reflect.TypeOf([]DeploymentZone{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DeploymentZoneBindingType), reflect.TypeOf([]DeploymentZone{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.deployment_zone_list_result", fields, reflect.TypeOf(DeploymentZoneListResult{}), fieldNameMap, validators) @@ -52366,13 +51837,13 @@ func DhcpHeaderBindingType() bindings.BindingType { func DhcpIpPoolUsageBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["allocated_number"] = bindings.NewIntegerType() + fields["allocated_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["allocated_number"] = "AllocatedNumber" - fields["allocated_percentage"] = bindings.NewIntegerType() + fields["allocated_percentage"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["allocated_percentage"] = "AllocatedPercentage" - fields["dhcp_ip_pool_id"] = bindings.NewStringType() + fields["dhcp_ip_pool_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["dhcp_ip_pool_id"] = "DhcpIpPoolId" - fields["pool_size"] = bindings.NewIntegerType() + fields["pool_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["pool_size"] = "PoolSize" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_ip_pool_usage", fields, reflect.TypeOf(DhcpIpPoolUsage{}), fieldNameMap, validators) @@ -52383,13 +51854,13 @@ func DhcpLeasePerIPBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["expire_time"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["expire_time"] = "ExpireTime" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lease_time"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lease_time"] = "LeaseTime" - fields["mac_address"] = bindings.NewStringType() + fields["mac_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["mac_address"] = "MacAddress" - fields["start_time"] = bindings.NewStringType() + fields["start_time"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["start_time"] = "StartTime" fields["subnet"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["subnet"] = "Subnet" @@ -52428,7 +51899,7 @@ func DhcpLeasesResultBindingType() bindings.BindingType { func DhcpOption121BindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["static_routes"] = bindings.NewListType(bindings.NewReferenceType(ClasslessStaticRouteBindingType), reflect.TypeOf([]ClasslessStaticRoute{})) + fields["static_routes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ClasslessStaticRouteBindingType), reflect.TypeOf([]ClasslessStaticRoute{}))) fieldNameMap["static_routes"] = "StaticRoutes" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_option121", fields, reflect.TypeOf(DhcpOption121{}), fieldNameMap, validators) @@ -52481,7 +51952,7 @@ func DhcpRelayConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["server_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["server_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["server_addresses"] = "ServerAddresses" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_relay_config", fields, reflect.TypeOf(DhcpRelayConfig{}), fieldNameMap, validators) @@ -52504,7 +51975,7 @@ func DhcpRelayConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(DhcpRelayConfigBindingType), reflect.TypeOf([]DhcpRelayConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DhcpRelayConfigBindingType), reflect.TypeOf([]DhcpRelayConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_relay_config_list_result", fields, reflect.TypeOf(DhcpRelayConfigListResult{}), fieldNameMap, validators) @@ -52588,7 +52059,7 @@ func DhcpServerConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(DhcpServerConfigBindingType), reflect.TypeOf([]DhcpServerConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DhcpServerConfigBindingType), reflect.TypeOf([]DhcpServerConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_server_config_list_result", fields, reflect.TypeOf(DhcpServerConfigListResult{}), fieldNameMap, validators) @@ -52612,29 +52083,29 @@ func DhcpServerStateBindingType() bindings.BindingType { func DhcpServerStatisticsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["acks"] = bindings.NewIntegerType() + fields["acks"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["acks"] = "Acks" - fields["declines"] = bindings.NewIntegerType() + fields["declines"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["declines"] = "Declines" - fields["dhcp_server_id"] = bindings.NewStringType() + fields["dhcp_server_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["dhcp_server_id"] = "DhcpServerId" - fields["discovers"] = bindings.NewIntegerType() + fields["discovers"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["discovers"] = "Discovers" - fields["errors"] = bindings.NewIntegerType() + fields["errors"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["errors"] = "Errors" - fields["informs"] = bindings.NewIntegerType() + fields["informs"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["informs"] = "Informs" fields["ip_pool_stats"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DhcpIpPoolUsageBindingType), reflect.TypeOf([]DhcpIpPoolUsage{}))) fieldNameMap["ip_pool_stats"] = "IpPoolStats" - fields["nacks"] = bindings.NewIntegerType() + fields["nacks"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["nacks"] = "Nacks" - fields["offers"] = bindings.NewIntegerType() + fields["offers"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["offers"] = "Offers" - fields["releases"] = bindings.NewIntegerType() + fields["releases"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["releases"] = "Releases" - fields["requests"] = bindings.NewIntegerType() + fields["requests"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["requests"] = "Requests" - fields["timestamp"] = bindings.NewIntegerType() + fields["timestamp"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["timestamp"] = "Timestamp" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_server_statistics", fields, reflect.TypeOf(DhcpServerStatistics{}), fieldNameMap, validators) @@ -52643,11 +52114,11 @@ func DhcpServerStatisticsBindingType() bindings.BindingType { func DhcpServerStatusBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["active_node"] = bindings.NewStringType() + fields["active_node"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["active_node"] = "ActiveNode" fields["error_message"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["error_message"] = "ErrorMessage" - fields["service_status"] = bindings.NewStringType() + fields["service_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["service_status"] = "ServiceStatus" fields["stand_by_node"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["stand_by_node"] = "StandByNode" @@ -52723,7 +52194,7 @@ func DhcpStaticBindingConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(DhcpStaticBindingConfigBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(DhcpStaticBindingConfigBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_static_binding_config_list_result", fields, reflect.TypeOf(DhcpStaticBindingConfigListResult{}), fieldNameMap, validators) @@ -52747,29 +52218,29 @@ func DhcpStaticBindingStateBindingType() bindings.BindingType { func DhcpStatisticsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["acks"] = bindings.NewIntegerType() + fields["acks"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["acks"] = "Acks" - fields["declines"] = bindings.NewIntegerType() + fields["declines"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["declines"] = "Declines" - fields["dhcp_server_id"] = bindings.NewStringType() + fields["dhcp_server_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["dhcp_server_id"] = "DhcpServerId" - fields["discovers"] = bindings.NewIntegerType() + fields["discovers"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["discovers"] = "Discovers" - fields["errors"] = bindings.NewIntegerType() + fields["errors"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["errors"] = "Errors" - fields["informs"] = bindings.NewIntegerType() + fields["informs"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["informs"] = "Informs" fields["ip_pool_stats"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DhcpIpPoolUsageBindingType), reflect.TypeOf([]DhcpIpPoolUsage{}))) fieldNameMap["ip_pool_stats"] = "IpPoolStats" - fields["nacks"] = bindings.NewIntegerType() + fields["nacks"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["nacks"] = "Nacks" - fields["offers"] = bindings.NewIntegerType() + fields["offers"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["offers"] = "Offers" - fields["releases"] = bindings.NewIntegerType() + fields["releases"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["releases"] = "Releases" - fields["requests"] = bindings.NewIntegerType() + fields["requests"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["requests"] = "Requests" - fields["timestamp"] = bindings.NewIntegerType() + fields["timestamp"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["timestamp"] = "Timestamp" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dhcp_statistics", fields, reflect.TypeOf(DhcpStatistics{}), fieldNameMap, validators) @@ -52793,11 +52264,11 @@ func DhcpV4StaticBindingConfigBindingType() bindings.BindingType { fieldNameMap["gateway_address"] = "GatewayAddress" fields["host_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["host_name"] = "HostName" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lease_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["lease_time"] = "LeaseTime" - fields["mac_address"] = bindings.NewStringType() + fields["mac_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["mac_address"] = "MacAddress" fields["options"] = bindings.NewOptionalType(bindings.NewReferenceType(DhcpV4OptionsBindingType)) fieldNameMap["options"] = "Options" @@ -52867,7 +52338,7 @@ func DhcpV6StaticBindingConfigBindingType() bindings.BindingType { fieldNameMap["ip_addresses"] = "IpAddresses" fields["lease_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["lease_time"] = "LeaseTime" - fields["mac_address"] = bindings.NewStringType() + fields["mac_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["mac_address"] = "MacAddress" fields["preferred_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["preferred_time"] = "PreferredTime" @@ -53305,7 +52776,7 @@ func DnsSecurityProfileBindingMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["profile_path"] = bindings.NewStringType() + fields["profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["profile_path"] = "ProfilePath" fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" @@ -53353,7 +52824,7 @@ func DnsSecurityProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(DnsSecurityProfileBindingType), reflect.TypeOf([]DnsSecurityProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DnsSecurityProfileBindingType), reflect.TypeOf([]DnsSecurityProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dns_security_profile_list_result", fields, reflect.TypeOf(DnsSecurityProfileListResult{}), fieldNameMap, validators) @@ -53457,7 +52928,7 @@ func DomainDeploymentMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["enforcement_point_path"] = bindings.NewStringType() + fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_path"] = "EnforcementPointPath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.domain_deployment_map", fields, reflect.TypeOf(DomainDeploymentMap{}), fieldNameMap, validators) @@ -53480,7 +52951,7 @@ func DomainDeploymentMapListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(DomainDeploymentMapBindingType), reflect.TypeOf([]DomainDeploymentMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DomainDeploymentMapBindingType), reflect.TypeOf([]DomainDeploymentMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.domain_deployment_map_list_result", fields, reflect.TypeOf(DomainDeploymentMapListResult{}), fieldNameMap, validators) @@ -53503,7 +52974,7 @@ func DomainListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(DomainBindingType), reflect.TypeOf([]Domain{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DomainBindingType), reflect.TypeOf([]Domain{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.domain_list_result", fields, reflect.TypeOf(DomainListResult{}), fieldNameMap, validators) @@ -53520,7 +52991,7 @@ func DonutConfigurationBindingType() bindings.BindingType { fieldNameMap["label"] = "Label" fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" - fields["sections"] = bindings.NewListType(bindings.NewReferenceType(DonutSectionBindingType), reflect.TypeOf([]DonutSection{})) + fields["sections"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DonutSectionBindingType), reflect.TypeOf([]DonutSection{}))) fieldNameMap["sections"] = "Sections" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -53572,6 +53043,8 @@ func DonutConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -53585,7 +53058,7 @@ func DonutPartBindingType() bindings.BindingType { fieldNameMap["condition"] = "Condition" fields["drilldown_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["drilldown_id"] = "DrilldownId" - fields["field"] = bindings.NewStringType() + fields["field"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field"] = "Field" fields["hide_empty_legend"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["hide_empty_legend"] = "HideEmptyLegend" @@ -53604,7 +53077,7 @@ func DonutPartBindingType() bindings.BindingType { func DonutSectionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["parts"] = bindings.NewListType(bindings.NewReferenceType(DonutPartBindingType), reflect.TypeOf([]DonutPart{})) + fields["parts"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DonutPartBindingType), reflect.TypeOf([]DonutPart{}))) fieldNameMap["parts"] = "Parts" fields["row_list_field"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["row_list_field"] = "RowListField" @@ -53619,7 +53092,7 @@ func DropdownFilterWidgetConfigurationBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["default_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["default_value"] = "DefaultValue" - fields["dropdown_item"] = bindings.NewReferenceType(DropdownItemBindingType) + fields["dropdown_item"] = bindings.NewOptionalType(bindings.NewReferenceType(DropdownItemBindingType)) fieldNameMap["dropdown_item"] = "DropdownItem" fields["placeholder_msg"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["placeholder_msg"] = "PlaceholderMsg" @@ -53679,6 +53152,8 @@ func DropdownFilterWidgetConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -53690,9 +53165,9 @@ func DropdownItemBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" - fields["field"] = bindings.NewStringType() + fields["field"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field"] = "Field" - fields["value"] = bindings.NewStringType() + fields["value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.dropdown_item", fields, reflect.TypeOf(DropdownItem{}), fieldNameMap, validators) @@ -53716,7 +53191,7 @@ func EULAAcceptanceBindingType() bindings.BindingType { fieldNameMap["_schema"] = "Schema" fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) fieldNameMap["_self"] = "Self" - fields["acceptance"] = bindings.NewBooleanType() + fields["acceptance"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["acceptance"] = "Acceptance" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.EULA_acceptance", fields, reflect.TypeOf(EULAAcceptance{}), fieldNameMap, validators) @@ -53763,7 +53238,7 @@ func EgressRateLimiterBindingType() bindings.BindingType { fieldNameMap["burst_size"] = "BurstSize" fields["peak_bandwidth"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["peak_bandwidth"] = "PeakBandwidth" - fields["enabled"] = bindings.NewBooleanType() + fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -53843,7 +53318,7 @@ func EndpointPolicyListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(EndpointPolicyBindingType), reflect.TypeOf([]EndpointPolicy{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(EndpointPolicyBindingType), reflect.TypeOf([]EndpointPolicy{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.endpoint_policy_list_result", fields, reflect.TypeOf(EndpointPolicyListResult{}), fieldNameMap, validators) @@ -53896,11 +53371,11 @@ func EndpointRuleBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["groups"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["groups"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["groups"] = "Groups" fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" - fields["service_profiles"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["service_profiles"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["service_profiles"] = "ServiceProfiles" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.endpoint_rule", fields, reflect.TypeOf(EndpointRule{}), fieldNameMap, validators) @@ -53923,12 +53398,69 @@ func EndpointRuleListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(EndpointRuleBindingType), reflect.TypeOf([]EndpointRule{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(EndpointRuleBindingType), reflect.TypeOf([]EndpointRule{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.endpoint_rule_list_result", fields, reflect.TypeOf(EndpointRuleListResult{}), fieldNameMap, validators) } +func EnforcedStatusDetailsNsxtBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["enforced_status_info"] = bindings.NewOptionalType(bindings.NewReferenceType(EnforcedStatusInfoNsxtBindingType)) + fieldNameMap["enforced_status_info"] = "EnforcedStatusInfo" + fields["pending_changes_info"] = bindings.NewOptionalType(bindings.NewReferenceType(PendingChangesInfoNsxtBindingType)) + fieldNameMap["pending_changes_info"] = "PendingChangesInfo" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.enforced_status_details_nsxt", fields, reflect.TypeOf(EnforcedStatusDetailsNsxt{}), fieldNameMap, validators) +} + +func EnforcedStatusInfoNsxtBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["enforced_status"] = bindings.NewOptionalType(bindings.NewReferenceType(EnforcedStatusNsxtBindingType)) + fieldNameMap["enforced_status"] = "EnforcedStatus" + fields["enforced_status_per_scope"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(EnforcedStatusPerScopeNsxtBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) + fieldNameMap["enforced_status_per_scope"] = "EnforcedStatusPerScope" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.enforced_status_info_nsxt", fields, reflect.TypeOf(EnforcedStatusInfoNsxt{}), fieldNameMap, validators) +} + +func EnforcedStatusNsxtBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["status"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["status"] = "Status" + fields["status_message"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["status_message"] = "StatusMessage" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.enforced_status_nsxt", fields, reflect.TypeOf(EnforcedStatusNsxt{}), fieldNameMap, validators) +} + +func EnforcedStatusPerScopeNsxtBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["resource_type"] = bindings.NewStringType() + fieldNameMap["resource_type"] = "ResourceType" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.enforced_status_per_scope_nsxt", fields, reflect.TypeOf(EnforcedStatusPerScopeNsxt{}), fieldNameMap, validators) +} + +func EnforcedStatusPerTransportNodeBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["display_name"] = "DisplayName" + fields["enforced_status"] = bindings.NewOptionalType(bindings.NewReferenceType(EnforcedStatusNsxtBindingType)) + fieldNameMap["enforced_status"] = "EnforcedStatus" + fields["nsx_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["nsx_id"] = "NsxId" + fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["path"] = "Path" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.enforced_status_per_transport_node", fields, reflect.TypeOf(EnforcedStatusPerTransportNode{}), fieldNameMap, validators) +} + func EnforcementPointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -53978,7 +53510,7 @@ func EnforcementPointBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["auto_enforce"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["auto_enforce"] = "AutoEnforce" - fields["connection_info"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(EnforcementPointConnectionInfoBindingType),}, bindings.REST) + fields["connection_info"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(EnforcementPointConnectionInfoBindingType),}, bindings.REST)) fieldNameMap["connection_info"] = "ConnectionInfo" fields["version"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["version"] = "Version" @@ -53989,7 +53521,7 @@ func EnforcementPointBindingType() bindings.BindingType { func EnforcementPointConnectionInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["enforcement_point_address"] = bindings.NewStringType() + fields["enforcement_point_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_address"] = "EnforcementPointAddress" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -54014,7 +53546,7 @@ func EnforcementPointListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(EnforcementPointBindingType), reflect.TypeOf([]EnforcementPoint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(EnforcementPointBindingType), reflect.TypeOf([]EnforcementPoint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.enforcement_point_list_result", fields, reflect.TypeOf(EnforcementPointListResult{}), fieldNameMap, validators) @@ -54023,9 +53555,9 @@ func EnforcementPointListResultBindingType() bindings.BindingType { func EntityInstanceCountConstraintExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["count"] = bindings.NewIntegerType() + fields["count"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["count"] = "Count" - fields["operator"] = bindings.NewStringType() + fields["operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operator"] = "Operator" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -54064,9 +53596,9 @@ func EntityInstanceCountConstraintExpressionBindingType() bindings.BindingType { func ErrorResolverInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["error_id"] = bindings.NewIntegerType() + fields["error_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["error_id"] = "ErrorId" - fields["resolver_present"] = bindings.NewBooleanType() + fields["resolver_present"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["resolver_present"] = "ResolverPresent" fields["user_metadata"] = bindings.NewOptionalType(bindings.NewReferenceType(ErrorResolverUserMetadataBindingType)) fieldNameMap["user_metadata"] = "UserMetadata" @@ -54077,7 +53609,7 @@ func ErrorResolverInfoBindingType() bindings.BindingType { func ErrorResolverInfoListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ErrorResolverInfoBindingType), reflect.TypeOf([]ErrorResolverInfo{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ErrorResolverInfoBindingType), reflect.TypeOf([]ErrorResolverInfo{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.error_resolver_info_list", fields, reflect.TypeOf(ErrorResolverInfoList{}), fieldNameMap, validators) @@ -54086,9 +53618,9 @@ func ErrorResolverInfoListBindingType() bindings.BindingType { func ErrorResolverMetadataBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["entity_id"] = bindings.NewStringType() + fields["entity_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["entity_id"] = "EntityId" - fields["error_id"] = bindings.NewIntegerType() + fields["error_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["error_id"] = "ErrorId" fields["system_metadata"] = bindings.NewOptionalType(bindings.NewReferenceType(ErrorResolverSystemMetadataBindingType)) fieldNameMap["system_metadata"] = "SystemMetadata" @@ -54101,7 +53633,7 @@ func ErrorResolverMetadataBindingType() bindings.BindingType { func ErrorResolverMetadataListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["errors"] = bindings.NewListType(bindings.NewReferenceType(ErrorResolverMetadataBindingType), reflect.TypeOf([]ErrorResolverMetadata{})) + fields["errors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ErrorResolverMetadataBindingType), reflect.TypeOf([]ErrorResolverMetadata{}))) fieldNameMap["errors"] = "Errors" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.error_resolver_metadata_list", fields, reflect.TypeOf(ErrorResolverMetadataList{}), fieldNameMap, validators) @@ -54119,9 +53651,9 @@ func ErrorResolverSystemMetadataBindingType() bindings.BindingType { func ErrorResolverUserInputDataBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["data_type"] = bindings.NewStringType() + fields["data_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["data_type"] = "DataType" - fields["property_name"] = bindings.NewStringType() + fields["property_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["property_name"] = "PropertyName" fields["property_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["property_value"] = "PropertyValue" @@ -54141,7 +53673,7 @@ func ErrorResolverUserMetadataBindingType() bindings.BindingType { func EtherTypeServiceEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ether_type"] = bindings.NewIntegerType() + fields["ether_type"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["ether_type"] = "EtherType" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -54218,7 +53750,7 @@ func EventBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["criteria"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(CriterionBindingType), reflect.TypeOf([]Criterion{}))) fieldNameMap["criteria"] = "Criteria" - fields["source"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(SourceBindingType),}, bindings.REST) + fields["source"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(SourceBindingType),}, bindings.REST)) fieldNameMap["source"] = "Source" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.event", fields, reflect.TypeOf(Event{}), fieldNameMap, validators) @@ -54379,9 +53911,9 @@ func EvpnTunnelEndpointConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["edge_path"] = bindings.NewStringType() + fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_path"] = "EdgePath" - fields["local_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["local_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["local_addresses"] = "LocalAddresses" fields["mtu"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["mtu"] = "Mtu" @@ -54406,7 +53938,7 @@ func EvpnTunnelEndpointConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(EvpnTunnelEndpointConfigBindingType), reflect.TypeOf([]EvpnTunnelEndpointConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(EvpnTunnelEndpointConfigBindingType), reflect.TypeOf([]EvpnTunnelEndpointConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.evpn_tunnel_endpoint_config_list_result", fields, reflect.TypeOf(EvpnTunnelEndpointConfigListResult{}), fieldNameMap, validators) @@ -54466,9 +53998,9 @@ func ExpressionBindingType() bindings.BindingType { func ExternalIDExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["external_ids"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["external_ids"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["external_ids"] = "ExternalIds" - fields["member_type"] = bindings.NewStringType() + fields["member_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["member_type"] = "MemberType" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -54530,7 +54062,7 @@ func FIPSGlobalConfigBindingType() bindings.BindingType { func FeaturePermissionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["feature"] = bindings.NewStringType() + fields["feature"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["feature"] = "Feature" fields["feature_description"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["feature_description"] = "FeatureDescription" @@ -54540,44 +54072,12 @@ func FeaturePermissionBindingType() bindings.BindingType { fieldNameMap["is_execute_recommended"] = "IsExecuteRecommended" fields["is_internal"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["is_internal"] = "IsInternal" - fields["permission"] = bindings.NewStringType() + fields["permission"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["permission"] = "Permission" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.feature_permission", fields, reflect.TypeOf(FeaturePermission{}), fieldNameMap, validators) } -func FeaturePermissionArrayBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["feature_permissions"] = bindings.NewListType(bindings.NewReferenceType(FeaturePermissionBindingType), reflect.TypeOf([]FeaturePermission{})) - fieldNameMap["feature_permissions"] = "FeaturePermissions" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.feature_permission_array", fields, reflect.TypeOf(FeaturePermissionArray{}), fieldNameMap, validators) -} - -func FeaturePermissionListResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["result_count"] = "ResultCount" - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["sort_ascending"] = "SortAscending" - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(FeaturePermissionBindingType), reflect.TypeOf([]FeaturePermission{})) - fieldNameMap["results"] = "Results" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.feature_permission_list_result", fields, reflect.TypeOf(FeaturePermissionListResult{}), fieldNameMap, validators) -} - func FederationComponentUpgradeStatusBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -54700,9 +54200,9 @@ func FederationUpgradeSummaryListResultBindingType() bindings.BindingType { func FieldSanityConstraintExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["checks"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["checks"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["checks"] = "Checks" - fields["operator"] = bindings.NewStringType() + fields["operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operator"] = "Operator" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -54741,9 +54241,9 @@ func FieldSanityConstraintExpressionBindingType() bindings.BindingType { func FieldSettingBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["field_pointer"] = bindings.NewStringType() + fields["field_pointer"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field_pointer"] = "FieldPointer" - fields["value"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(FieldSettingValueBindingType),}, bindings.REST) + fields["value"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(FieldSettingValueBindingType),}, bindings.REST)) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.field_setting", fields, reflect.TypeOf(FieldSetting{}), fieldNameMap, validators) @@ -54790,9 +54290,9 @@ func FileTransferAuthenticationSchemeBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["password"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["password"] = "Password" - fields["scheme_name"] = bindings.NewStringType() + fields["scheme_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["scheme_name"] = "SchemeName" - fields["username"] = bindings.NewStringType() + fields["username"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["username"] = "Username" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.file_transfer_authentication_scheme", fields, reflect.TypeOf(FileTransferAuthenticationScheme{}), fieldNameMap, validators) @@ -54801,11 +54301,11 @@ func FileTransferAuthenticationSchemeBindingType() bindings.BindingType { func FileTransferProtocolBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["authentication_scheme"] = bindings.NewReferenceType(FileTransferAuthenticationSchemeBindingType) + fields["authentication_scheme"] = bindings.NewOptionalType(bindings.NewReferenceType(FileTransferAuthenticationSchemeBindingType)) fieldNameMap["authentication_scheme"] = "AuthenticationScheme" - fields["protocol_name"] = bindings.NewStringType() + fields["protocol_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["protocol_name"] = "ProtocolName" - fields["ssh_fingerprint"] = bindings.NewStringType() + fields["ssh_fingerprint"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ssh_fingerprint"] = "SshFingerprint" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.file_transfer_protocol", fields, reflect.TypeOf(FileTransferProtocol{}), fieldNameMap, validators) @@ -54866,6 +54366,8 @@ func FilterWidgetConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -54974,13 +54476,13 @@ func FirewallIdentityStoreBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["base_distinguished_name"] = bindings.NewStringType() + fields["base_distinguished_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["base_distinguished_name"] = "BaseDistinguishedName" - fields["ldap_servers"] = bindings.NewListType(bindings.NewReferenceType(FirewallIdentityStoreLdapServerBindingType), reflect.TypeOf([]FirewallIdentityStoreLdapServer{})) + fields["ldap_servers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(FirewallIdentityStoreLdapServerBindingType), reflect.TypeOf([]FirewallIdentityStoreLdapServer{}))) fieldNameMap["ldap_servers"] = "LdapServers" - fields["name"] = bindings.NewStringType() + fields["name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["name"] = "Name" - fields["netbios_name"] = bindings.NewStringType() + fields["netbios_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["netbios_name"] = "NetbiosName" fields["selective_sync_settings"] = bindings.NewOptionalType(bindings.NewReferenceType(FirewallIdentityStoreSelectiveSyncSettingsBindingType)) fieldNameMap["selective_sync_settings"] = "SelectiveSyncSettings" @@ -55039,7 +54541,7 @@ func FirewallIdentityStoreLdapServerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["domain_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["domain_name"] = "DomainName" - fields["host"] = bindings.NewStringType() + fields["host"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["host"] = "Host" fields["password"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["password"] = "Password" @@ -55072,7 +54574,7 @@ func FirewallIdentityStoreSelectiveSyncSettingsBindingType() bindings.BindingTyp fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["enabled"] = bindings.NewBooleanType() + fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" fields["selected_org_units"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["selected_org_units"] = "SelectedOrgUnits" @@ -55169,7 +54671,7 @@ func FloodProtectionProfileBindingListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(FloodProtectionProfileBindingMapBindingType), reflect.TypeOf([]FloodProtectionProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(FloodProtectionProfileBindingMapBindingType), reflect.TypeOf([]FloodProtectionProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.flood_protection_profile_binding_list_result", fields, reflect.TypeOf(FloodProtectionProfileBindingListResult{}), fieldNameMap, validators) @@ -55222,7 +54724,7 @@ func FloodProtectionProfileBindingMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["profile_path"] = bindings.NewStringType() + fields["profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["profile_path"] = "ProfilePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.flood_protection_profile_binding_map", fields, reflect.TypeOf(FloodProtectionProfileBindingMap{}), fieldNameMap, validators) @@ -55245,7 +54747,7 @@ func FloodProtectionProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(FloodProtectionProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(FloodProtectionProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.flood_protection_profile_list_result", fields, reflect.TypeOf(FloodProtectionProfileListResult{}), fieldNameMap, validators) @@ -55267,7 +54769,7 @@ func FooterActionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["dock_to_container_footer"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["dock_to_container_footer"] = "DockToContainerFooter" - fields["label"] = bindings.NewReferenceType(LabelBindingType) + fields["label"] = bindings.NewOptionalType(bindings.NewReferenceType(LabelBindingType)) fieldNameMap["label"] = "Label" fields["url"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["url"] = "Url" @@ -55371,7 +54873,7 @@ func ForwardingPolicyListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ForwardingPolicyBindingType), reflect.TypeOf([]ForwardingPolicy{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ForwardingPolicyBindingType), reflect.TypeOf([]ForwardingPolicy{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.forwarding_policy_list_result", fields, reflect.TypeOf(ForwardingPolicyListResult{}), fieldNameMap, validators) @@ -55481,7 +54983,7 @@ func ForwardingRuleListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ForwardingRuleBindingType), reflect.TypeOf([]ForwardingRule{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ForwardingRuleBindingType), reflect.TypeOf([]ForwardingRule{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.forwarding_rule_list_result", fields, reflect.TypeOf(ForwardingRuleListResult{}), fieldNameMap, validators) @@ -55540,6 +55042,10 @@ func FullSyncStateBindingType() bindings.BindingType { fieldNameMap["full_sync_id"] = "FullSyncId" fields["last_completed_stage"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["last_completed_stage"] = "LastCompletedStage" + fields["last_upate_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["last_upate_time"] = "LastUpateTime" + fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["start_time"] = "StartTime" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.full_sync_state", fields, reflect.TypeOf(FullSyncState{}), fieldNameMap, validators) } @@ -55561,7 +55067,7 @@ func FullSyncStateListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(FullSyncStateBindingType), reflect.TypeOf([]FullSyncState{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(FullSyncStateBindingType), reflect.TypeOf([]FullSyncState{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.full_sync_state_list_result", fields, reflect.TypeOf(FullSyncStateListResult{}), fieldNameMap, validators) @@ -55722,7 +55228,7 @@ func GatewayPolicyListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(GatewayPolicyBindingType), reflect.TypeOf([]GatewayPolicy{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GatewayPolicyBindingType), reflect.TypeOf([]GatewayPolicy{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.gateway_policy_list_result", fields, reflect.TypeOf(GatewayPolicyListResult{}), fieldNameMap, validators) @@ -55813,7 +55319,7 @@ func GatewayQosProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(GatewayQosProfileBindingType), reflect.TypeOf([]GatewayQosProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GatewayQosProfileBindingType), reflect.TypeOf([]GatewayQosProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.gateway_qos_profile_list_result", fields, reflect.TypeOf(GatewayQosProfileListResult{}), fieldNameMap, validators) @@ -55832,11 +55338,11 @@ func GatewayRouteCsvRecordBindingType() bindings.BindingType { fieldNameMap["lr_component_id"] = "LrComponentId" fields["lr_component_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lr_component_type"] = "LrComponentType" - fields["network"] = bindings.NewStringType() + fields["network"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["network"] = "Network" fields["next_hop"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["next_hop"] = "NextHop" - fields["route_type"] = bindings.NewStringType() + fields["route_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["route_type"] = "RouteType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.gateway_route_csv_record", fields, reflect.TypeOf(GatewayRouteCsvRecord{}), fieldNameMap, validators) @@ -55858,9 +55364,9 @@ func GatewayRouteTableInCsvFormatBindingType() bindings.BindingType { func GenericDhcpOptionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["code"] = bindings.NewIntegerType() + fields["code"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["code"] = "Code" - fields["values"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["values"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["values"] = "Values" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.generic_dhcp_option", fields, reflect.TypeOf(GenericDhcpOption{}), fieldNameMap, validators) @@ -55907,54 +55413,115 @@ func GenericPolicyRealizedResourceBindingType() bindings.BindingType { fieldNameMap["relative_path"] = "RelativePath" fields["unique_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["unique_id"] = "UniqueId" - fields["alarms"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyAlarmResourceBindingType), reflect.TypeOf([]PolicyAlarmResource{}))) - fieldNameMap["alarms"] = "Alarms" - fields["intent_reference"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["intent_reference"] = "IntentReference" - fields["realization_api"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["realization_api"] = "RealizationApi" - fields["realization_specific_identifier"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["realization_specific_identifier"] = "RealizationSpecificIdentifier" - fields["runtime_error"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["runtime_error"] = "RuntimeError" - fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() - fieldNameMap["state"] = "State" - fields["entity_type"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["entity_type"] = "EntityType" - fields["extended_attributes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(AttributeValBindingType), reflect.TypeOf([]AttributeVal{}))) - fieldNameMap["extended_attributes"] = "ExtendedAttributes" - fields["intent_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["intent_paths"] = "IntentPaths" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.generic_policy_realized_resource", fields, reflect.TypeOf(GenericPolicyRealizedResource{}), fieldNameMap, validators) -} - -func GenericPolicyRealizedResourceListResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["result_count"] = "ResultCount" - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["sort_ascending"] = "SortAscending" - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GenericPolicyRealizedResourceBindingType), reflect.TypeOf([]GenericPolicyRealizedResource{}))) - fieldNameMap["results"] = "Results" + fields["alarms"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyAlarmResourceBindingType), reflect.TypeOf([]PolicyAlarmResource{}))) + fieldNameMap["alarms"] = "Alarms" + fields["intent_reference"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) + fieldNameMap["intent_reference"] = "IntentReference" + fields["realization_api"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["realization_api"] = "RealizationApi" + fields["realization_specific_identifier"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["realization_specific_identifier"] = "RealizationSpecificIdentifier" + fields["runtime_error"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["runtime_error"] = "RuntimeError" + fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["runtime_status"] = "RuntimeStatus" + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["state"] = "State" + fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["enforcement_point_path"] = "EnforcementPointPath" + fields["entity_type"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["entity_type"] = "EntityType" + fields["extended_attributes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(AttributeValBindingType), reflect.TypeOf([]AttributeVal{}))) + fieldNameMap["extended_attributes"] = "ExtendedAttributes" + fields["intent_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) + fieldNameMap["intent_paths"] = "IntentPaths" + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_path"] = "SitePath" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.generic_policy_realized_resource", fields, reflect.TypeOf(GenericPolicyRealizedResource{}), fieldNameMap, validators) +} + +func GenericPolicyRealizedResourceListResultBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) + fieldNameMap["_links"] = "Links" + fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_schema"] = "Schema" + fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) + fieldNameMap["_self"] = "Self" + fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["cursor"] = "Cursor" + fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["result_count"] = "ResultCount" + fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["sort_ascending"] = "SortAscending" + fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["sort_by"] = "SortBy" + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GenericPolicyRealizedResourceBindingType), reflect.TypeOf([]GenericPolicyRealizedResource{}))) + fieldNameMap["results"] = "Results" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.generic_policy_realized_resource_list_result", fields, reflect.TypeOf(GenericPolicyRealizedResourceListResult{}), fieldNameMap, validators) +} + +func GlobalConfigBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) + fieldNameMap["_links"] = "Links" + fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_schema"] = "Schema" + fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) + fieldNameMap["_self"] = "Self" + fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_revision"] = "Revision" + fields["_create_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_create_time"] = "CreateTime" + fields["_create_user"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_create_user"] = "CreateUser" + fields["_last_modified_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_last_modified_time"] = "LastModifiedTime" + fields["_last_modified_user"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_last_modified_user"] = "LastModifiedUser" + fields["_protection"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_protection"] = "Protection" + fields["_system_owned"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["_system_owned"] = "SystemOwned" + fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["description"] = "Description" + fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["display_name"] = "DisplayName" + fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["id"] = "Id" + fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["resource_type"] = "ResourceType" + fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) + fieldNameMap["tags"] = "Tags" + fields["parent_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["parent_path"] = "ParentPath" + fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["path"] = "Path" + fields["relative_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["relative_path"] = "RelativePath" + fields["unique_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["unique_id"] = "UniqueId" + fields["children"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ChildPolicyConfigResourceBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) + fieldNameMap["children"] = "Children" + fields["marked_for_delete"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["marked_for_delete"] = "MarkedForDelete" + fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["overridden"] = "Overridden" + fields["fips"] = bindings.NewOptionalType(bindings.NewReferenceType(FIPSGlobalConfigBindingType)) + fieldNameMap["fips"] = "Fips" + fields["l3_forwarding_mode"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["l3_forwarding_mode"] = "L3ForwardingMode" + fields["mtu"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["mtu"] = "Mtu" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.generic_policy_realized_resource_list_result", fields, reflect.TypeOf(GenericPolicyRealizedResourceListResult{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.global_config", fields, reflect.TypeOf(GlobalConfig{}), fieldNameMap, validators) } -func GlobalConfigBindingType() bindings.BindingType { +func GlobalManagerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) @@ -56001,17 +55568,23 @@ func GlobalConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["fips"] = bindings.NewOptionalType(bindings.NewReferenceType(FIPSGlobalConfigBindingType)) - fieldNameMap["fips"] = "Fips" - fields["l3_forwarding_mode"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["l3_forwarding_mode"] = "L3ForwardingMode" - fields["mtu"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["mtu"] = "Mtu" + fields["connection_info"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SiteNodeConnectionInfoBindingType), reflect.TypeOf([]SiteNodeConnectionInfo{}))) + fieldNameMap["connection_info"] = "ConnectionInfo" + fields["fail_if_rtt_exceeded"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["fail_if_rtt_exceeded"] = "FailIfRttExceeded" + fields["federation_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["federation_id"] = "FederationId" + fields["maximum_rtt"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["maximum_rtt"] = "MaximumRtt" + fields["mode"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["mode"] = "Mode" + fields["site_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_id"] = "SiteId" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.global_config", fields, reflect.TypeOf(GlobalConfig{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager", fields, reflect.TypeOf(GlobalManager{}), fieldNameMap, validators) } -func GlobalManagerBindingType() bindings.BindingType { +func GlobalManagerConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) @@ -56058,81 +55631,10 @@ func GlobalManagerBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["connection_info"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SiteNodeConnectionInfoBindingType), reflect.TypeOf([]SiteNodeConnectionInfo{}))) - fieldNameMap["connection_info"] = "ConnectionInfo" - fields["fail_if_rtt_exceeded"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["fail_if_rtt_exceeded"] = "FailIfRttExceeded" - fields["federation_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["federation_id"] = "FederationId" - fields["maximum_rtt"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["maximum_rtt"] = "MaximumRtt" - fields["mode"] = bindings.NewStringType() - fieldNameMap["mode"] = "Mode" - fields["site_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["site_id"] = "SiteId" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager", fields, reflect.TypeOf(GlobalManager{}), fieldNameMap, validators) -} - -func GlobalManagerClusterRealizedStateBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["cluster_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cluster_id"] = "ClusterId" - fields["cluster_nodes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GlobalManagerNodeRealizedStateBindingType), reflect.TypeOf([]GlobalManagerNodeRealizedState{}))) - fieldNameMap["cluster_nodes"] = "ClusterNodes" - fields["cluster_status"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cluster_status"] = "ClusterStatus" - fields["vip"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["vip"] = "Vip" + fields["rtep_config"] = bindings.NewOptionalType(bindings.NewReferenceType(GmRtepConfigBindingType)) + fieldNameMap["rtep_config"] = "RtepConfig" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager_cluster_realized_state", fields, reflect.TypeOf(GlobalManagerClusterRealizedState{}), fieldNameMap, validators) -} - -func GlobalManagerDeploymentStateBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["cluster_nodes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SiteNodeInfoBindingType), reflect.TypeOf([]SiteNodeInfo{}))) - fieldNameMap["cluster_nodes"] = "ClusterNodes" - fields["name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["name"] = "Name" - fields["site_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["site_id"] = "SiteId" - fields["version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["version"] = "Version" - fields["vip"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["vip"] = "Vip" - fields["cluster_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cluster_id"] = "ClusterId" - fields["cluster_status"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cluster_status"] = "ClusterStatus" - fields["mode"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["mode"] = "Mode" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager_deployment_state", fields, reflect.TypeOf(GlobalManagerDeploymentState{}), fieldNameMap, validators) -} - -func GlobalManagerDeploymentStateListResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["result_count"] = "ResultCount" - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["sort_ascending"] = "SortAscending" - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(GlobalManagerDeploymentStateBindingType), reflect.TypeOf([]GlobalManagerDeploymentState{})) - fieldNameMap["results"] = "Results" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager_deployment_state_list_result", fields, reflect.TypeOf(GlobalManagerDeploymentStateListResult{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager_config", fields, reflect.TypeOf(GlobalManagerConfig{}), fieldNameMap, validators) } func GlobalManagerListResultBindingType() bindings.BindingType { @@ -56152,23 +55654,12 @@ func GlobalManagerListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(GlobalManagerBindingType), reflect.TypeOf([]GlobalManager{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GlobalManagerBindingType), reflect.TypeOf([]GlobalManager{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager_list_result", fields, reflect.TypeOf(GlobalManagerListResult{}), fieldNameMap, validators) } -func GlobalManagerNodeRealizedStateBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["hostname"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["hostname"] = "Hostname" - fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["ip_address"] = "IpAddress" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.global_manager_node_realized_state", fields, reflect.TypeOf(GlobalManagerNodeRealizedState{}), fieldNameMap, validators) -} - func GlobalRestoreStatusBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -56189,6 +55680,15 @@ func GmFederationSiteConfigBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.gm_federation_site_config", fields, reflect.TypeOf(GmFederationSiteConfig{}), fieldNameMap, validators) } +func GmRtepConfigBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["ibgp_password"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["ibgp_password"] = "IbgpPassword" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.gm_rtep_config", fields, reflect.TypeOf(GmRtepConfig{}), fieldNameMap, validators) +} + func GraphConfigurationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -56196,7 +55696,7 @@ func GraphConfigurationBindingType() bindings.BindingType { fieldNameMap["axes"] = "Axes" fields["display_x_value"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["display_x_value"] = "DisplayxValue" - fields["graphs"] = bindings.NewListType(bindings.NewReferenceType(GraphDefinitionBindingType), reflect.TypeOf([]GraphDefinition{})) + fields["graphs"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GraphDefinitionBindingType), reflect.TypeOf([]GraphDefinition{}))) fieldNameMap["graphs"] = "Graphs" fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" @@ -56252,6 +55752,8 @@ func GraphConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -56263,7 +55765,7 @@ func GraphDefinitionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["label"] = bindings.NewOptionalType(bindings.NewReferenceType(LabelBindingType)) fieldNameMap["label"] = "Label" - fields["point_definition"] = bindings.NewReferenceType(PointDefinitionBindingType) + fields["point_definition"] = bindings.NewOptionalType(bindings.NewReferenceType(PointDefinitionBindingType)) fieldNameMap["point_definition"] = "PointDefinition" fields["render_configuration"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RenderConfigurationBindingType), reflect.TypeOf([]RenderConfiguration{}))) fieldNameMap["render_configuration"] = "RenderConfiguration" @@ -56274,14 +55776,12 @@ func GraphDefinitionBindingType() bindings.BindingType { func GridConfigurationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["columns"] = bindings.NewListType(bindings.NewReferenceType(ColumnItemBindingType), reflect.TypeOf([]ColumnItem{})) + fields["columns"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ColumnItemBindingType), reflect.TypeOf([]ColumnItem{}))) fieldNameMap["columns"] = "Columns" fields["page_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["page_size"] = "PageSize" - fields["row_list_fields"] = bindings.NewListType(bindings.NewReferenceType(RowListFieldBindingType), reflect.TypeOf([]RowListField{})) + fields["row_list_fields"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RowListFieldBindingType), reflect.TypeOf([]RowListField{}))) fieldNameMap["row_list_fields"] = "RowListFields" - fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["span"] = "Span" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -56332,6 +55832,8 @@ func GridConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -56444,7 +55946,7 @@ func GroupDiscoveryProfileBindingMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["profile_path"] = bindings.NewStringType() + fields["profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["profile_path"] = "ProfilePath" fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" @@ -56480,7 +55982,7 @@ func GroupListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(GroupBindingType), reflect.TypeOf([]Group{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GroupBindingType), reflect.TypeOf([]Group{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.group_list_result", fields, reflect.TypeOf(GroupListResult{}), fieldNameMap, validators) @@ -56489,7 +55991,7 @@ func GroupListResultBindingType() bindings.BindingType { func GroupMemberListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["members"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["members"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["members"] = "Members" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.group_member_list", fields, reflect.TypeOf(GroupMemberList{}), fieldNameMap, validators) @@ -56498,9 +56000,9 @@ func GroupMemberListBindingType() bindings.BindingType { func GroupMemberTagsListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["member_type"] = bindings.NewStringType() + fields["member_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["member_type"] = "MemberType" - fields["tags"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["tags"] = "Tags" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.group_member_tags_list", fields, reflect.TypeOf(GroupMemberTagsList{}), fieldNameMap, validators) @@ -56511,7 +56013,7 @@ func GroupMemberTypeListResultBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["result_count"] = "ResultCount" - fields["results"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.group_member_type_list_result", fields, reflect.TypeOf(GroupMemberTypeListResult{}), fieldNameMap, validators) @@ -56591,7 +56093,7 @@ func GroupMonitoringProfileBindingMapListResultBindingType() bindings.BindingTyp fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(GroupMonitoringProfileBindingMapBindingType), reflect.TypeOf([]GroupMonitoringProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GroupMonitoringProfileBindingMapBindingType), reflect.TypeOf([]GroupMonitoringProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.group_monitoring_profile_binding_map_list_result", fields, reflect.TypeOf(GroupMonitoringProfileBindingMapListResult{}), fieldNameMap, validators) @@ -56600,7 +56102,7 @@ func GroupMonitoringProfileBindingMapListResultBindingType() bindings.BindingTyp func GroupTagsListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["results"] = bindings.NewListType(bindings.NewReferenceType(GroupMemberTagsListBindingType), reflect.TypeOf([]GroupMemberTagsList{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(GroupMemberTagsListBindingType), reflect.TypeOf([]GroupMemberTagsList{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.group_tags_list", fields, reflect.TypeOf(GroupTagsList{}), fieldNameMap, validators) @@ -56744,13 +56246,13 @@ func HttpPolicyLbVirtualServerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["access_log_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["access_log_enabled"] = "AccessLogEnabled" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lb_persistence_profile"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lb_persistence_profile"] = "LbPersistenceProfile" - fields["ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ports"] = "Ports" - fields["router_path"] = bindings.NewStringType() + fields["router_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["router_path"] = "RouterPath" fields["traffic_source"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["traffic_source"] = "TrafficSource" @@ -56828,7 +56330,7 @@ func HttpsPolicyLbVirtualServerBindingType() bindings.BindingType { fieldNameMap["client_ssl_certificate_ids"] = "ClientSslCertificateIds" fields["client_ssl_settings"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["client_ssl_settings"] = "ClientSslSettings" - fields["default_client_ssl_certificate_id"] = bindings.NewStringType() + fields["default_client_ssl_certificate_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["default_client_ssl_certificate_id"] = "DefaultClientSslCertificateId" fields["insert_client_ip_header"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["insert_client_ip_header"] = "InsertClientIpHeader" @@ -56878,13 +56380,13 @@ func HttpsPolicyLbVirtualServerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["access_log_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["access_log_enabled"] = "AccessLogEnabled" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lb_persistence_profile"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lb_persistence_profile"] = "LbPersistenceProfile" - fields["ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ports"] = "Ports" - fields["router_path"] = bindings.NewStringType() + fields["router_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["router_path"] = "RouterPath" fields["traffic_source"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["traffic_source"] = "TrafficSource" @@ -56899,7 +56401,7 @@ func ICMPTypeServiceEntryBindingType() bindings.BindingType { fieldNameMap["icmp_code"] = "IcmpCode" fields["icmp_type"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["icmp_type"] = "IcmpType" - fields["protocol"] = bindings.NewStringType() + fields["protocol"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["protocol"] = "Protocol" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -57003,7 +56505,7 @@ func IGMPTypeServiceEntryBindingType() bindings.BindingType { func IPAddressExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ip_addresses"] = "IpAddresses" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -57056,7 +56558,7 @@ func IPAddressExpressionBindingType() bindings.BindingType { func IPAddressListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ip_addresses"] = "IpAddresses" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_address_list", fields, reflect.TypeOf(IPAddressList{}), fieldNameMap, validators) @@ -57065,7 +56567,7 @@ func IPAddressListBindingType() bindings.BindingType { func IPAddressPortPairBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["port"] = "Port" @@ -57151,7 +56653,7 @@ func IPDiscoveryProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPDiscoveryProfileBindingType), reflect.TypeOf([]IPDiscoveryProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPDiscoveryProfileBindingType), reflect.TypeOf([]IPDiscoveryProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_discovery_profile_list_result", fields, reflect.TypeOf(IPDiscoveryProfileListResult{}), fieldNameMap, validators) @@ -57204,9 +56706,9 @@ func IPFIXCollectorProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["ipaddress"] = bindings.NewStringType() + fields["ipaddress"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ipaddress"] = "Ipaddress" - fields["port"] = bindings.NewIntegerType() + fields["port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["port"] = "Port" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIX_collector_profile", fields, reflect.TypeOf(IPFIXCollectorProfile{}), fieldNameMap, validators) @@ -57229,7 +56731,7 @@ func IPFIXCollectorProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPFIXCollectorProfileBindingType), reflect.TypeOf([]IPFIXCollectorProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXCollectorProfileBindingType), reflect.TypeOf([]IPFIXCollectorProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIX_collector_profile_list_result", fields, reflect.TypeOf(IPFIXCollectorProfileListResult{}), fieldNameMap, validators) @@ -57282,9 +56784,9 @@ func IPFIXDFWCollectorBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["collector_ip_address"] = bindings.NewStringType() + fields["collector_ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["collector_ip_address"] = "CollectorIpAddress" - fields["collector_port"] = bindings.NewIntegerType() + fields["collector_port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["collector_port"] = "CollectorPort" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIXDFW_collector", fields, reflect.TypeOf(IPFIXDFWCollector{}), fieldNameMap, validators) @@ -57337,7 +56839,7 @@ func IPFIXDFWCollectorProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["ipfix_dfw_collectors"] = bindings.NewListType(bindings.NewReferenceType(IPFIXDFWCollectorBindingType), reflect.TypeOf([]IPFIXDFWCollector{})) + fields["ipfix_dfw_collectors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXDFWCollectorBindingType), reflect.TypeOf([]IPFIXDFWCollector{}))) fieldNameMap["ipfix_dfw_collectors"] = "IpfixDfwCollectors" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIXDFW_collector_profile", fields, reflect.TypeOf(IPFIXDFWCollectorProfile{}), fieldNameMap, validators) @@ -57360,7 +56862,7 @@ func IPFIXDFWCollectorProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPFIXDFWCollectorProfileBindingType), reflect.TypeOf([]IPFIXDFWCollectorProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXDFWCollectorProfileBindingType), reflect.TypeOf([]IPFIXDFWCollectorProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIXDFW_collector_profile_list_result", fields, reflect.TypeOf(IPFIXDFWCollectorProfileListResult{}), fieldNameMap, validators) @@ -57413,9 +56915,9 @@ func IPFIXDFWProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["active_flow_export_timeout"] = bindings.NewIntegerType() + fields["active_flow_export_timeout"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["active_flow_export_timeout"] = "ActiveFlowExportTimeout" - fields["ipfix_dfw_collector_profile_path"] = bindings.NewStringType() + fields["ipfix_dfw_collector_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ipfix_dfw_collector_profile_path"] = "IpfixDfwCollectorProfilePath" fields["observation_domain_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["observation_domain_id"] = "ObservationDomainId" @@ -57442,7 +56944,7 @@ func IPFIXDFWProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPFIXDFWProfileBindingType), reflect.TypeOf([]IPFIXDFWProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXDFWProfileBindingType), reflect.TypeOf([]IPFIXDFWProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIXDFW_profile_list_result", fields, reflect.TypeOf(IPFIXDFWProfileListResult{}), fieldNameMap, validators) @@ -57495,7 +56997,7 @@ func IPFIXL2CollectorBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["collector_ip_address"] = bindings.NewStringType() + fields["collector_ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["collector_ip_address"] = "CollectorIpAddress" fields["collector_port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["collector_port"] = "CollectorPort" @@ -57550,7 +57052,7 @@ func IPFIXL2CollectorProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["ipfix_l2_collectors"] = bindings.NewListType(bindings.NewReferenceType(IPFIXL2CollectorBindingType), reflect.TypeOf([]IPFIXL2Collector{})) + fields["ipfix_l2_collectors"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXL2CollectorBindingType), reflect.TypeOf([]IPFIXL2Collector{}))) fieldNameMap["ipfix_l2_collectors"] = "IpfixL2Collectors" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIX_l2_collector_profile", fields, reflect.TypeOf(IPFIXL2CollectorProfile{}), fieldNameMap, validators) @@ -57573,7 +57075,7 @@ func IPFIXL2CollectorProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPFIXL2CollectorProfileBindingType), reflect.TypeOf([]IPFIXL2CollectorProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXL2CollectorProfileBindingType), reflect.TypeOf([]IPFIXL2CollectorProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIX_l2_collector_profile_list_result", fields, reflect.TypeOf(IPFIXL2CollectorProfileListResult{}), fieldNameMap, validators) @@ -57632,13 +57134,13 @@ func IPFIXL2ProfileBindingType() bindings.BindingType { fieldNameMap["export_overlay_flow"] = "ExportOverlayFlow" fields["idle_timeout"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["idle_timeout"] = "IdleTimeout" - fields["ipfix_collector_profile_path"] = bindings.NewStringType() + fields["ipfix_collector_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ipfix_collector_profile_path"] = "IpfixCollectorProfilePath" fields["max_flows"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["max_flows"] = "MaxFlows" fields["observation_domain_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["observation_domain_id"] = "ObservationDomainId" - fields["packet_sample_probability"] = bindings.NewDoubleType() + fields["packet_sample_probability"] = bindings.NewOptionalType(bindings.NewDoubleType()) fieldNameMap["packet_sample_probability"] = "PacketSampleProbability" fields["priority"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["priority"] = "Priority" @@ -57663,7 +57165,7 @@ func IPFIXL2ProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPFIXL2ProfileBindingType), reflect.TypeOf([]IPFIXL2Profile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXL2ProfileBindingType), reflect.TypeOf([]IPFIXL2Profile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIX_l2_profile_list_result", fields, reflect.TypeOf(IPFIXL2ProfileListResult{}), fieldNameMap, validators) @@ -57716,19 +57218,19 @@ func IPFIXSwitchCollectionInstanceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["active_timeout"] = bindings.NewIntegerType() + fields["active_timeout"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["active_timeout"] = "ActiveTimeout" - fields["idle_timeout"] = bindings.NewIntegerType() + fields["idle_timeout"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["idle_timeout"] = "IdleTimeout" - fields["ipfix_collector_profile_paths"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ipfix_collector_profile_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ipfix_collector_profile_paths"] = "IpfixCollectorProfilePaths" fields["max_flows"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["max_flows"] = "MaxFlows" fields["observation_domain_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["observation_domain_id"] = "ObservationDomainId" - fields["packet_sample_probability"] = bindings.NewDoubleType() + fields["packet_sample_probability"] = bindings.NewOptionalType(bindings.NewDoubleType()) fieldNameMap["packet_sample_probability"] = "PacketSampleProbability" - fields["source_logical_segment_paths"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["source_logical_segment_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["source_logical_segment_paths"] = "SourceLogicalSegmentPaths" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIX_switch_collection_instance", fields, reflect.TypeOf(IPFIXSwitchCollectionInstance{}), fieldNameMap, validators) @@ -57751,7 +57253,7 @@ func IPFIXSwitchCollectionInstanceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPFIXSwitchCollectionInstanceBindingType), reflect.TypeOf([]IPFIXSwitchCollectionInstance{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPFIXSwitchCollectionInstanceBindingType), reflect.TypeOf([]IPFIXSwitchCollectionInstance{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IPFIX_switch_collection_instance_list_result", fields, reflect.TypeOf(IPFIXSwitchCollectionInstanceListResult{}), fieldNameMap, validators) @@ -57760,9 +57262,9 @@ func IPFIXSwitchCollectionInstanceListResultBindingType() bindings.BindingType { func IPInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ip_addresses"] = "IpAddresses" - fields["prefix_length"] = bindings.NewIntegerType() + fields["prefix_length"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["prefix_length"] = "PrefixLength" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_info", fields, reflect.TypeOf(IPInfo{}), fieldNameMap, validators) @@ -57771,7 +57273,7 @@ func IPInfoBindingType() bindings.BindingType { func IPProtocolServiceEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["protocol_number"] = bindings.NewIntegerType() + fields["protocol_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["protocol_number"] = "ProtocolNumber" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -57897,7 +57399,7 @@ func IPSecVpnDpdProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPSecVpnDpdProfileBindingType), reflect.TypeOf([]IPSecVpnDpdProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPSecVpnDpdProfileBindingType), reflect.TypeOf([]IPSecVpnDpdProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_dpd_profile_list_result", fields, reflect.TypeOf(IPSecVpnDpdProfileListResult{}), fieldNameMap, validators) @@ -57981,7 +57483,7 @@ func IPSecVpnIkeProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPSecVpnIkeProfileBindingType), reflect.TypeOf([]IPSecVpnIkeProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPSecVpnIkeProfileBindingType), reflect.TypeOf([]IPSecVpnIkeProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_ike_profile_list_result", fields, reflect.TypeOf(IPSecVpnIkeProfileListResult{}), fieldNameMap, validators) @@ -58064,7 +57566,7 @@ func IPSecVpnLocalEndpointBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["certificate_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["certificate_path"] = "CertificatePath" - fields["local_address"] = bindings.NewStringType() + fields["local_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_address"] = "LocalAddress" fields["local_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_id"] = "LocalId" @@ -58093,7 +57595,7 @@ func IPSecVpnLocalEndpointListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPSecVpnLocalEndpointBindingType), reflect.TypeOf([]IPSecVpnLocalEndpoint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPSecVpnLocalEndpointBindingType), reflect.TypeOf([]IPSecVpnLocalEndpoint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_local_endpoint_list_result", fields, reflect.TypeOf(IPSecVpnLocalEndpointListResult{}), fieldNameMap, validators) @@ -58251,7 +57753,7 @@ func IPSecVpnServiceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPSecVpnServiceBindingType), reflect.TypeOf([]IPSecVpnService{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPSecVpnServiceBindingType), reflect.TypeOf([]IPSecVpnService{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_service_list_result", fields, reflect.TypeOf(IPSecVpnServiceListResult{}), fieldNameMap, validators) @@ -58316,11 +57818,11 @@ func IPSecVpnSessionBindingType() bindings.BindingType { fieldNameMap["enabled"] = "Enabled" fields["ike_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ike_profile_path"] = "IkeProfilePath" - fields["local_endpoint_path"] = bindings.NewStringType() + fields["local_endpoint_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_endpoint_path"] = "LocalEndpointPath" - fields["peer_address"] = bindings.NewStringType() + fields["peer_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_address"] = "PeerAddress" - fields["peer_id"] = bindings.NewStringType() + fields["peer_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_id"] = "PeerId" fields["psk"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["psk"] = "Psk" @@ -58349,7 +57851,7 @@ func IPSecVpnSessionListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IPSecVpnSessionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IPSecVpnSessionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_session_list_result", fields, reflect.TypeOf(IPSecVpnSessionListResult{}), fieldNameMap, validators) @@ -58459,7 +57961,7 @@ func IPSecVpnSessionStatusPerEPBindingType() bindings.BindingType { func IPSecVpnSubnetBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["subnet"] = bindings.NewStringType() + fields["subnet"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["subnet"] = "Subnet" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_subnet", fields, reflect.TypeOf(IPSecVpnSubnet{}), fieldNameMap, validators) @@ -58544,7 +58046,7 @@ func IPSecVpnTunnelInterfaceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["ip_subnets"] = bindings.NewListType(bindings.NewReferenceType(TunnelInterfaceIPSubnetBindingType), reflect.TypeOf([]TunnelInterfaceIPSubnet{})) + fields["ip_subnets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TunnelInterfaceIPSubnetBindingType), reflect.TypeOf([]TunnelInterfaceIPSubnet{}))) fieldNameMap["ip_subnets"] = "IpSubnets" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_tunnel_interface", fields, reflect.TypeOf(IPSecVpnTunnelInterface{}), fieldNameMap, validators) @@ -58632,7 +58134,7 @@ func IPSecVpnTunnelProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IPSecVpnTunnelProfileBindingType), reflect.TypeOf([]IPSecVpnTunnelProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPSecVpnTunnelProfileBindingType), reflect.TypeOf([]IPSecVpnTunnelProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.IP_sec_vpn_tunnel_profile_list_result", fields, reflect.TypeOf(IPSecVpnTunnelProfileListResult{}), fieldNameMap, validators) @@ -58825,7 +58327,7 @@ func IconBindingType() bindings.BindingType { func IdentityGroupExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["identity_groups"] = bindings.NewListType(bindings.NewReferenceType(IdentityGroupInfoBindingType), reflect.TypeOf([]IdentityGroupInfo{})) + fields["identity_groups"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdentityGroupInfoBindingType), reflect.TypeOf([]IdentityGroupInfo{}))) fieldNameMap["identity_groups"] = "IdentityGroups" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -58878,9 +58380,9 @@ func IdentityGroupExpressionBindingType() bindings.BindingType { func IdentityGroupInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["distinguished_name"] = bindings.NewStringType() + fields["distinguished_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["distinguished_name"] = "DistinguishedName" - fields["domain_base_distinguished_name"] = bindings.NewStringType() + fields["domain_base_distinguished_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["domain_base_distinguished_name"] = "DomainBaseDistinguishedName" fields["sid"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sid"] = "Sid" @@ -58899,7 +58401,7 @@ func IdentitySourceLdapServerBindingType() bindings.BindingType { fieldNameMap["enabled"] = "Enabled" fields["password"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["password"] = "Password" - fields["url"] = bindings.NewStringType() + fields["url"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["url"] = "Url" fields["use_starttls"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["use_starttls"] = "UseStarttls" @@ -58910,7 +58412,7 @@ func IdentitySourceLdapServerBindingType() bindings.BindingType { func IdentitySourceLdapServerEndpointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["url"] = bindings.NewStringType() + fields["url"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["url"] = "Url" fields["use_starttls"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["use_starttls"] = "UseStarttls" @@ -58978,9 +58480,9 @@ func IdsClusterConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["cluster"] = bindings.NewReferenceType(PolicyResourceReferenceBindingType) + fields["cluster"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyResourceReferenceBindingType)) fieldNameMap["cluster"] = "Cluster" - fields["ids_enabled"] = bindings.NewBooleanType() + fields["ids_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ids_enabled"] = "IdsEnabled" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_cluster_config", fields, reflect.TypeOf(IdsClusterConfig{}), fieldNameMap, validators) @@ -59003,7 +58505,7 @@ func IdsClusterConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IdsClusterConfigBindingType), reflect.TypeOf([]IdsClusterConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdsClusterConfigBindingType), reflect.TypeOf([]IdsClusterConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_cluster_config_list_result", fields, reflect.TypeOf(IdsClusterConfigListResult{}), fieldNameMap, validators) @@ -59056,7 +58558,7 @@ func IdsProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["severities"] = bindings.NewListType(bindings.NewReferenceType(IdsProfileSeverityBindingType), reflect.TypeOf([]IdsProfileSeverity{})) + fields["severities"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdsProfileSeverityBindingType), reflect.TypeOf([]IdsProfileSeverity{}))) fieldNameMap["severities"] = "Severities" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_profile", fields, reflect.TypeOf(IdsProfile{}), fieldNameMap, validators) @@ -59079,7 +58581,7 @@ func IdsProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IdsProfileBindingType), reflect.TypeOf([]IdsProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdsProfileBindingType), reflect.TypeOf([]IdsProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_profile_list_result", fields, reflect.TypeOf(IdsProfileListResult{}), fieldNameMap, validators) @@ -59134,7 +58636,7 @@ func IdsProfileSeverityBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["ignore_signatures"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ignore_signatures"] = "IgnoreSignatures" - fields["severity"] = bindings.NewStringType() + fields["severity"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["severity"] = "Severity" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_profile_severity", fields, reflect.TypeOf(IdsProfileSeverity{}), fieldNameMap, validators) @@ -59246,7 +58748,7 @@ func IdsRuleListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IdsRuleBindingType), reflect.TypeOf([]IdsRule{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdsRuleBindingType), reflect.TypeOf([]IdsRule{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_rule_list_result", fields, reflect.TypeOf(IdsRuleListResult{}), fieldNameMap, validators) @@ -59348,7 +58850,7 @@ func IdsSecurityPolicyListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IdsSecurityPolicyBindingType), reflect.TypeOf([]IdsSecurityPolicy{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdsSecurityPolicyBindingType), reflect.TypeOf([]IdsSecurityPolicy{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_security_policy_list_result", fields, reflect.TypeOf(IdsSecurityPolicyListResult{}), fieldNameMap, validators) @@ -59503,7 +59005,7 @@ func IdsSignatureListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IdsSignatureBindingType), reflect.TypeOf([]IdsSignature{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdsSignatureBindingType), reflect.TypeOf([]IdsSignature{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_signature_list_result", fields, reflect.TypeOf(IdsSignatureListResult{}), fieldNameMap, validators) @@ -59646,7 +59148,7 @@ func IdsSignatureVersionListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IdsSignatureVersionBindingType), reflect.TypeOf([]IdsSignatureVersion{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdsSignatureVersionBindingType), reflect.TypeOf([]IdsSignatureVersion{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_signature_version_list_result", fields, reflect.TypeOf(IdsSignatureVersionListResult{}), fieldNameMap, validators) @@ -59699,7 +59201,7 @@ func IdsStandaloneHostConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["ids_enabled"] = bindings.NewBooleanType() + fields["ids_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["ids_enabled"] = "IdsEnabled" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ids_standalone_host_config", fields, reflect.TypeOf(IdsStandaloneHostConfig{}), fieldNameMap, validators) @@ -59748,7 +59250,7 @@ func IgmpMembershipCsvRecordBindingType() bindings.BindingType { func IgmpMembershipsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["gateway_path"] = bindings.NewStringType() + fields["gateway_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["gateway_path"] = "GatewayPath" fields["igmp_memberships_per_edge"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IgmpMembershipsPerEdgeBindingType), reflect.TypeOf([]IgmpMembershipsPerEdge{}))) fieldNameMap["igmp_memberships_per_edge"] = "IgmpMembershipsPerEdge" @@ -59770,7 +59272,7 @@ func IgmpMembershipsInCsvFormatBindingType() bindings.BindingType { func IgmpMembershipsPerEdgeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["edge_path"] = bindings.NewStringType() + fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_path"] = "EdgePath" fields["igmp_memberships"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IgmpMembershipBindingType), reflect.TypeOf([]IgmpMembership{}))) fieldNameMap["igmp_memberships"] = "IgmpMemberships" @@ -59851,7 +59353,7 @@ func IngressBroadcastRateLimiterBindingType() bindings.BindingType { fieldNameMap["burst_size"] = "BurstSize" fields["peak_bandwidth"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["peak_bandwidth"] = "PeakBandwidth" - fields["enabled"] = bindings.NewBooleanType() + fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -59868,7 +59370,7 @@ func IngressRateLimiterBindingType() bindings.BindingType { fieldNameMap["burst_size"] = "BurstSize" fields["peak_bandwidth"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["peak_bandwidth"] = "PeakBandwidth" - fields["enabled"] = bindings.NewBooleanType() + fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -59892,9 +59394,9 @@ func InitiateClusterRestoreRequestBindingType() bindings.BindingType { func InjectionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["key"] = bindings.NewStringType() + fields["key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["key"] = "Key" - fields["value"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(InjectionValueBindingType),}, bindings.REST) + fields["value"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(InjectionValueBindingType),}, bindings.REST)) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.injection", fields, reflect.TypeOf(Injection{}), fieldNameMap, validators) @@ -59942,8 +59444,10 @@ func InstructionInfoBindingType() bindings.BindingType { func IntentRuntimeRequestParametersBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["intent_path"] = bindings.NewStringType() + fields["intent_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["intent_path"] = "IntentPath" + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_path"] = "SitePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.intent_runtime_request_parameters", fields, reflect.TypeOf(IntentRuntimeRequestParameters{}), fieldNameMap, validators) } @@ -59951,9 +59455,9 @@ func IntentRuntimeRequestParametersBindingType() bindings.BindingType { func InterfaceArpCsvRecordBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip"] = bindings.NewStringType() + fields["ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip"] = "Ip" - fields["mac_address"] = bindings.NewStringType() + fields["mac_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["mac_address"] = "MacAddress" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.interface_arp_csv_record", fields, reflect.TypeOf(InterfaceArpCsvRecord{}), fieldNameMap, validators) @@ -59962,9 +59466,9 @@ func InterfaceArpCsvRecordBindingType() bindings.BindingType { func InterfaceArpEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip"] = bindings.NewStringType() + fields["ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip"] = "Ip" - fields["mac_address"] = bindings.NewStringType() + fields["mac_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["mac_address"] = "MacAddress" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.interface_arp_entry", fields, reflect.TypeOf(InterfaceArpEntry{}), fieldNameMap, validators) @@ -59991,7 +59495,7 @@ func InterfaceArpTableBindingType() bindings.BindingType { fieldNameMap["edge_path"] = "EdgePath" fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_path"] = "EnforcementPointPath" - fields["interface_path"] = bindings.NewStringType() + fields["interface_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["interface_path"] = "InterfacePath" fields["last_update_timestamp"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["last_update_timestamp"] = "LastUpdateTimestamp" @@ -60041,9 +59545,9 @@ func InterfaceiPv6DADStatusBindingType() bindings.BindingType { func InterfaceSubnetBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ip_addresses"] = "IpAddresses" - fields["prefix_len"] = bindings.NewIntegerType() + fields["prefix_len"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["prefix_len"] = "PrefixLen" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.interface_subnet", fields, reflect.TypeOf(InterfaceSubnet{}), fieldNameMap, validators) @@ -60198,7 +59702,7 @@ func IpAddressBlockBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["cidr"] = bindings.NewStringType() + fields["cidr"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["cidr"] = "Cidr" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ip_address_block", fields, reflect.TypeOf(IpAddressBlock{}), fieldNameMap, validators) @@ -60221,7 +59725,7 @@ func IpAddressBlockListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IpAddressBlockBindingType), reflect.TypeOf([]IpAddressBlock{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IpAddressBlockBindingType), reflect.TypeOf([]IpAddressBlock{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ip_address_block_list_result", fields, reflect.TypeOf(IpAddressBlockListResult{}), fieldNameMap, validators) @@ -60296,9 +59800,9 @@ func IpAddressPoolBlockSubnetBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["auto_assign_gateway"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["auto_assign_gateway"] = "AutoAssignGateway" - fields["ip_block_path"] = bindings.NewStringType() + fields["ip_block_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_block_path"] = "IpBlockPath" - fields["size"] = bindings.NewIntegerType() + fields["size"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["size"] = "Size" fields["start_ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["start_ip"] = "StartIp" @@ -60367,7 +59871,7 @@ func IpAddressPoolListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(IpAddressPoolBindingType), reflect.TypeOf([]IpAddressPool{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IpAddressPoolBindingType), reflect.TypeOf([]IpAddressPool{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ip_address_pool_list_result", fields, reflect.TypeOf(IpAddressPoolListResult{}), fieldNameMap, validators) @@ -60376,9 +59880,9 @@ func IpAddressPoolListResultBindingType() bindings.BindingType { func IpAddressPoolStaticSubnetBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["allocation_ranges"] = bindings.NewListType(bindings.NewReferenceType(IpPoolRangeBindingType), reflect.TypeOf([]IpPoolRange{})) + fields["allocation_ranges"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IpPoolRangeBindingType), reflect.TypeOf([]IpPoolRange{}))) fieldNameMap["allocation_ranges"] = "AllocationRanges" - fields["cidr"] = bindings.NewStringType() + fields["cidr"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["cidr"] = "Cidr" fields["dns_nameservers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["dns_nameservers"] = "DnsNameservers" @@ -60502,7 +60006,7 @@ func IpAddressPoolSubnetListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IpAddressPoolSubnetBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(IpAddressPoolSubnetBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ip_address_pool_subnet_list_result", fields, reflect.TypeOf(IpAddressPoolSubnetListResult{}), fieldNameMap, validators) @@ -60517,9 +60021,9 @@ func IpPoolRangeBindingType() bindings.BindingType { fieldNameMap["_schema"] = "Schema" fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) fieldNameMap["_self"] = "Self" - fields["end"] = bindings.NewStringType() + fields["end"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["end"] = "End" - fields["start"] = bindings.NewStringType() + fields["start"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["start"] = "Start" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ip_pool_range", fields, reflect.TypeOf(IpPoolRange{}), fieldNameMap, validators) @@ -60680,7 +60184,7 @@ func Ipv6DadProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Ipv6DadProfileBindingType), reflect.TypeOf([]Ipv6DadProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Ipv6DadProfileBindingType), reflect.TypeOf([]Ipv6DadProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ipv6_dad_profile_list_result", fields, reflect.TypeOf(Ipv6DadProfileListResult{}), fieldNameMap, validators) @@ -60750,9 +60254,9 @@ func Ipv6NdraProfileBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["dns_config"] = bindings.NewOptionalType(bindings.NewReferenceType(RaDNSConfigBindingType)) fieldNameMap["dns_config"] = "DnsConfig" - fields["ra_config"] = bindings.NewReferenceType(RAConfigBindingType) + fields["ra_config"] = bindings.NewOptionalType(bindings.NewReferenceType(RAConfigBindingType)) fieldNameMap["ra_config"] = "RaConfig" - fields["ra_mode"] = bindings.NewStringType() + fields["ra_mode"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ra_mode"] = "RaMode" fields["reachable_timer"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["reachable_timer"] = "ReachableTimer" @@ -60779,7 +60283,7 @@ func Ipv6NdraProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Ipv6NdraProfileBindingType), reflect.TypeOf([]Ipv6NdraProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Ipv6NdraProfileBindingType), reflect.TypeOf([]Ipv6NdraProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.ipv6_ndra_profile_list_result", fields, reflect.TypeOf(Ipv6NdraProfileListResult{}), fieldNameMap, validators) @@ -60788,9 +60292,9 @@ func Ipv6NdraProfileListResultBindingType() bindings.BindingType { func KeyValuePairBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["key"] = bindings.NewStringType() + fields["key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["key"] = "Key" - fields["value"] = bindings.NewStringType() + fields["value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.key_value_pair", fields, reflect.TypeOf(KeyValuePair{}), fieldNameMap, validators) @@ -60870,7 +60374,7 @@ func L2BridgeEndpointProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(L2BridgeEndpointProfileBindingType), reflect.TypeOf([]L2BridgeEndpointProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L2BridgeEndpointProfileBindingType), reflect.TypeOf([]L2BridgeEndpointProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l2_bridge_endpoint_profile_list_result", fields, reflect.TypeOf(L2BridgeEndpointProfileListResult{}), fieldNameMap, validators) @@ -60965,7 +60469,7 @@ func L2VPNServiceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(L2VPNServiceBindingType), reflect.TypeOf([]L2VPNService{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L2VPNServiceBindingType), reflect.TypeOf([]L2VPNService{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l2_VPN_service_list_result", fields, reflect.TypeOf(L2VPNServiceListResult{}), fieldNameMap, validators) @@ -61020,7 +60524,7 @@ func L2VPNSessionBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["transport_tunnels"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["transport_tunnels"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["transport_tunnels"] = "TransportTunnels" fields["tunnel_encapsulation"] = bindings.NewOptionalType(bindings.NewReferenceType(L2VPNTunnelEncapsulationBindingType)) fieldNameMap["tunnel_encapsulation"] = "TunnelEncapsulation" @@ -61060,7 +60564,7 @@ func L2VPNSessionListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(L2VPNSessionBindingType), reflect.TypeOf([]L2VPNSession{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L2VPNSessionBindingType), reflect.TypeOf([]L2VPNSession{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l2_VPN_session_list_result", fields, reflect.TypeOf(L2VPNSessionListResult{}), fieldNameMap, validators) @@ -61161,9 +60665,9 @@ func L2VPNSessionStatusPerEPBindingType() bindings.BindingType { func L2VPNSessionTransportTunnelDataBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["local_address"] = bindings.NewStringType() + fields["local_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_address"] = "LocalAddress" - fields["peer_address"] = bindings.NewStringType() + fields["peer_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_address"] = "PeerAddress" fields["peer_code"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_code"] = "PeerCode" @@ -61303,7 +60807,7 @@ func L2VpnBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["transport_tunnels"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["transport_tunnels"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["transport_tunnels"] = "TransportTunnels" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l2_vpn", fields, reflect.TypeOf(L2Vpn{}), fieldNameMap, validators) @@ -61379,7 +60883,7 @@ func L2VpnListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(L2VpnBindingType), reflect.TypeOf([]L2Vpn{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L2VpnBindingType), reflect.TypeOf([]L2Vpn{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l2_vpn_list_result", fields, reflect.TypeOf(L2VpnListResult{}), fieldNameMap, validators) @@ -61388,7 +60892,7 @@ func L2VpnListResultBindingType() bindings.BindingType { func L2VpnPeerCodesBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["peer_codes"] = bindings.NewListType(bindings.NewReferenceType(L2VpnTransportTunnelPeerCodeBindingType), reflect.TypeOf([]L2VpnTransportTunnelPeerCode{})) + fields["peer_codes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L2VpnTransportTunnelPeerCodeBindingType), reflect.TypeOf([]L2VpnTransportTunnelPeerCode{}))) fieldNameMap["peer_codes"] = "PeerCodes" fields["enforcement_point_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_path"] = "EnforcementPointPath" @@ -61443,7 +60947,7 @@ func L2VpnSessionRemoteMacForSegmentBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["remote_mac_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["remote_mac_addresses"] = "RemoteMacAddresses" - fields["segment_path"] = bindings.NewStringType() + fields["segment_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["segment_path"] = "SegmentPath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l2_vpn_session_remote_mac_for_segment", fields, reflect.TypeOf(L2VpnSessionRemoteMacForSegment{}), fieldNameMap, validators) @@ -61527,9 +61031,9 @@ func L2VpnTapTrafficStatisticsBindingType() bindings.BindingType { func L2VpnTransportTunnelPeerCodeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["peer_code"] = bindings.NewStringType() + fields["peer_code"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_code"] = "PeerCode" - fields["transport_tunnel_path"] = bindings.NewStringType() + fields["transport_tunnel_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["transport_tunnel_path"] = "TransportTunnelPath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l2_vpn_transport_tunnel_peer_code", fields, reflect.TypeOf(L2VpnTransportTunnelPeerCode{}), fieldNameMap, validators) @@ -61594,15 +61098,15 @@ func L3VpnBindingType() bindings.BindingType { fieldNameMap["ike_encryption_algorithms"] = "IkeEncryptionAlgorithms" fields["ike_version"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ike_version"] = "IkeVersion" - fields["l3vpn_session"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(L3VpnSessionBindingType),}, bindings.REST) + fields["l3vpn_session"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(L3VpnSessionBindingType),}, bindings.REST)) fieldNameMap["l3vpn_session"] = "L3vpnSession" - fields["local_address"] = bindings.NewStringType() + fields["local_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_address"] = "LocalAddress" fields["passphrases"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["passphrases"] = "Passphrases" fields["remote_private_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["remote_private_address"] = "RemotePrivateAddress" - fields["remote_public_address"] = bindings.NewStringType() + fields["remote_public_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["remote_public_address"] = "RemotePublicAddress" fields["tunnel_digest_algorithms"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["tunnel_digest_algorithms"] = "TunnelDigestAlgorithms" @@ -61690,7 +61194,7 @@ func L3VpnListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(L3VpnBindingType), reflect.TypeOf([]L3Vpn{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L3VpnBindingType), reflect.TypeOf([]L3Vpn{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l3_vpn_list_result", fields, reflect.TypeOf(L3VpnListResult{}), fieldNameMap, validators) @@ -61754,11 +61258,11 @@ func L3VpnRuleBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["action"] = "Action" - fields["destinations"] = bindings.NewListType(bindings.NewReferenceType(L3VpnSubnetBindingType), reflect.TypeOf([]L3VpnSubnet{})) + fields["destinations"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L3VpnSubnetBindingType), reflect.TypeOf([]L3VpnSubnet{}))) fieldNameMap["destinations"] = "Destinations" fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" - fields["sources"] = bindings.NewListType(bindings.NewReferenceType(L3VpnSubnetBindingType), reflect.TypeOf([]L3VpnSubnet{})) + fields["sources"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(L3VpnSubnetBindingType), reflect.TypeOf([]L3VpnSubnet{}))) fieldNameMap["sources"] = "Sources" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l3_vpn_rule", fields, reflect.TypeOf(L3VpnRule{}), fieldNameMap, validators) @@ -61787,7 +61291,7 @@ func L3VpnStatisticsPerEnforcementPointBindingType() bindings.BindingType { func L3VpnSubnetBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["subnet"] = bindings.NewStringType() + fields["subnet"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["subnet"] = "Subnet" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.l3_vpn_subnet", fields, reflect.TypeOf(L3VpnSubnet{}), fieldNameMap, validators) @@ -61851,7 +61355,7 @@ func L4PortSetServiceEntryBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["destination_ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["destination_ports"] = "DestinationPorts" - fields["l4_protocol"] = bindings.NewStringType() + fields["l4_protocol"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["l4_protocol"] = "L4Protocol" fields["source_ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["source_ports"] = "SourcePorts" @@ -61959,11 +61463,11 @@ func L7PolicyLbPersistenceProfileBindingType() bindings.BindingType { func LBAccessListControlBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["action"] = bindings.NewStringType() + fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["action"] = "Action" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["group_path"] = bindings.NewStringType() + fields["group_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["group_path"] = "GroupPath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_access_list_control", fields, reflect.TypeOf(LBAccessListControl{}), fieldNameMap, validators) @@ -62098,7 +61602,7 @@ func LBAppProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBAppProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBAppProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_app_profile_list_result", fields, reflect.TypeOf(LBAppProfileListResult{}), fieldNameMap, validators) @@ -62109,7 +61613,7 @@ func LBClientCertificateIssuerDnConditionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["case_sensitive"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["case_sensitive"] = "CaseSensitive" - fields["issuer_dn"] = bindings.NewStringType() + fields["issuer_dn"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["issuer_dn"] = "IssuerDn" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" @@ -62124,7 +61628,7 @@ func LBClientCertificateSubjectDnConditionBindingType() bindings.BindingType { fieldNameMap["case_sensitive"] = "CaseSensitive" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" - fields["subject_dn"] = bindings.NewStringType() + fields["subject_dn"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["subject_dn"] = "SubjectDn" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_client_certificate_subject_dn_condition", fields, reflect.TypeOf(LBClientCertificateSubjectDnCondition{}), fieldNameMap, validators) @@ -62208,7 +61712,7 @@ func LBClientSslProfileBindingBindingType() bindings.BindingType { fieldNameMap["client_auth_ca_paths"] = "ClientAuthCaPaths" fields["client_auth_crl_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["client_auth_crl_paths"] = "ClientAuthCrlPaths" - fields["default_certificate_path"] = bindings.NewStringType() + fields["default_certificate_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["default_certificate_path"] = "DefaultCertificatePath" fields["sni_certificate_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["sni_certificate_paths"] = "SniCertificatePaths" @@ -62235,7 +61739,7 @@ func LBClientSslProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(LBClientSslProfileBindingType), reflect.TypeOf([]LBClientSslProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LBClientSslProfileBindingType), reflect.TypeOf([]LBClientSslProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_client_ssl_profile_list_result", fields, reflect.TypeOf(LBClientSslProfileListResult{}), fieldNameMap, validators) @@ -62365,7 +61869,7 @@ func LBEdgeNodeUsageBindingType() bindings.BindingType { fieldNameMap["severity"] = "Severity" fields["usage_percentage"] = bindings.NewOptionalType(bindings.NewDoubleType()) fieldNameMap["usage_percentage"] = "UsagePercentage" - fields["node_path"] = bindings.NewStringType() + fields["node_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["node_path"] = "NodePath" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -62632,6 +62136,8 @@ func LBHttpProfileBindingType() bindings.BindingType { fieldNameMap["request_body_size"] = "RequestBodySize" fields["request_header_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["request_header_size"] = "RequestHeaderSize" + fields["response_buffering"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["response_buffering"] = "ResponseBuffering" fields["response_header_size"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["response_header_size"] = "ResponseHeaderSize" fields["response_timeout"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -62689,9 +62195,9 @@ func LBHttpProfileBindingType() bindings.BindingType { func LBHttpRedirectActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["redirect_status"] = bindings.NewStringType() + fields["redirect_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["redirect_status"] = "RedirectStatus" - fields["redirect_url"] = bindings.NewStringType() + fields["redirect_url"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["redirect_url"] = "RedirectUrl" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -62704,7 +62210,7 @@ func LBHttpRejectActionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["reply_message"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["reply_message"] = "ReplyMessage" - fields["reply_status"] = bindings.NewStringType() + fields["reply_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["reply_status"] = "ReplyStatus" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -62715,7 +62221,7 @@ func LBHttpRejectActionBindingType() bindings.BindingType { func LBHttpRequestBodyConditionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["body_value"] = bindings.NewStringType() + fields["body_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["body_value"] = "BodyValue" fields["case_sensitive"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["case_sensitive"] = "CaseSensitive" @@ -62734,9 +62240,9 @@ func LBHttpRequestCookieConditionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["case_sensitive"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["case_sensitive"] = "CaseSensitive" - fields["cookie_name"] = bindings.NewStringType() + fields["cookie_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["cookie_name"] = "CookieName" - fields["cookie_value"] = bindings.NewStringType() + fields["cookie_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["cookie_value"] = "CookieValue" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" @@ -62755,7 +62261,7 @@ func LBHttpRequestHeaderConditionBindingType() bindings.BindingType { fieldNameMap["case_sensitive"] = "CaseSensitive" fields["header_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_name"] = "HeaderName" - fields["header_value"] = bindings.NewStringType() + fields["header_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_value"] = "HeaderValue" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" @@ -62770,7 +62276,7 @@ func LBHttpRequestHeaderConditionBindingType() bindings.BindingType { func LBHttpRequestHeaderDeleteActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["header_name"] = bindings.NewStringType() + fields["header_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_name"] = "HeaderName" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -62781,9 +62287,9 @@ func LBHttpRequestHeaderDeleteActionBindingType() bindings.BindingType { func LBHttpRequestHeaderRewriteActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["header_name"] = bindings.NewStringType() + fields["header_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_name"] = "HeaderName" - fields["header_value"] = bindings.NewStringType() + fields["header_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_value"] = "HeaderValue" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -62794,7 +62300,7 @@ func LBHttpRequestHeaderRewriteActionBindingType() bindings.BindingType { func LBHttpRequestMethodConditionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["method"] = bindings.NewStringType() + fields["method"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["method"] = "Method" fields["inverse"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["inverse"] = "Inverse" @@ -62811,7 +62317,7 @@ func LBHttpRequestUriArgumentsConditionBindingType() bindings.BindingType { fieldNameMap["case_sensitive"] = "CaseSensitive" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" - fields["uri_arguments"] = bindings.NewStringType() + fields["uri_arguments"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["uri_arguments"] = "UriArguments" fields["inverse"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["inverse"] = "Inverse" @@ -62828,7 +62334,7 @@ func LBHttpRequestUriConditionBindingType() bindings.BindingType { fieldNameMap["case_sensitive"] = "CaseSensitive" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" - fields["uri"] = bindings.NewStringType() + fields["uri"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["uri"] = "Uri" fields["inverse"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["inverse"] = "Inverse" @@ -62841,7 +62347,7 @@ func LBHttpRequestUriConditionBindingType() bindings.BindingType { func LBHttpRequestUriRewriteActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["uri"] = bindings.NewStringType() + fields["uri"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["uri"] = "Uri" fields["uri_arguments"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["uri_arguments"] = "UriArguments" @@ -62854,7 +62360,7 @@ func LBHttpRequestUriRewriteActionBindingType() bindings.BindingType { func LBHttpRequestVersionConditionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["version"] = bindings.NewStringType() + fields["version"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["version"] = "Version" fields["inverse"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["inverse"] = "Inverse" @@ -62869,9 +62375,9 @@ func LBHttpResponseHeaderConditionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["case_sensitive"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["case_sensitive"] = "CaseSensitive" - fields["header_name"] = bindings.NewStringType() + fields["header_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_name"] = "HeaderName" - fields["header_value"] = bindings.NewStringType() + fields["header_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_value"] = "HeaderValue" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" @@ -62886,7 +62392,7 @@ func LBHttpResponseHeaderConditionBindingType() bindings.BindingType { func LBHttpResponseHeaderDeleteActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["header_name"] = bindings.NewStringType() + fields["header_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_name"] = "HeaderName" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -62897,9 +62403,9 @@ func LBHttpResponseHeaderDeleteActionBindingType() bindings.BindingType { func LBHttpResponseHeaderRewriteActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["header_name"] = bindings.NewStringType() + fields["header_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_name"] = "HeaderName" - fields["header_value"] = bindings.NewStringType() + fields["header_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_value"] = "HeaderValue" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -63105,7 +62611,7 @@ func LBJwtAuthActionBindingType() bindings.BindingType { func LBJwtCertificateKeyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["certificate_path"] = bindings.NewStringType() + fields["certificate_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["certificate_path"] = "CertificatePath" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -63125,7 +62631,7 @@ func LBJwtKeyBindingType() bindings.BindingType { func LBJwtPublicKeyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["public_key_content"] = bindings.NewStringType() + fields["public_key_content"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["public_key_content"] = "PublicKeyContent" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -63210,7 +62716,7 @@ func LBMonitorProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBMonitorProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBMonitorProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_monitor_profile_list_result", fields, reflect.TypeOf(LBMonitorProfileListResult{}), fieldNameMap, validators) @@ -63230,7 +62736,7 @@ func LBNodeCountPerSeverityBindingType() bindings.BindingType { func LBNodeUsageBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["node_path"] = bindings.NewStringType() + fields["node_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["node_path"] = "NodePath" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -63323,7 +62829,7 @@ func LBPassiveMonitorProfileBindingType() bindings.BindingType { func LBPersistenceCookieTimeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["cookie_max_idle"] = bindings.NewIntegerType() + fields["cookie_max_idle"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["cookie_max_idle"] = "CookieMaxIdle" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -63401,7 +62907,7 @@ func LBPersistenceProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBPersistenceProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBPersistenceProfileBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_persistence_profile_list_result", fields, reflect.TypeOf(LBPersistenceProfileListResult{}), fieldNameMap, validators) @@ -63493,7 +62999,7 @@ func LBPoolListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(LBPoolBindingType), reflect.TypeOf([]LBPool{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LBPoolBindingType), reflect.TypeOf([]LBPool{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_pool_list_result", fields, reflect.TypeOf(LBPoolListResult{}), fieldNameMap, validators) @@ -63508,7 +63014,7 @@ func LBPoolMemberBindingType() bindings.BindingType { fieldNameMap["backup_member"] = "BackupMember" fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["max_concurrent_connections"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["max_concurrent_connections"] = "MaxConcurrentConnections" @@ -63525,7 +63031,7 @@ func LBPoolMemberGroupBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["customized_members"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PoolMemberSettingBindingType), reflect.TypeOf([]PoolMemberSetting{}))) fieldNameMap["customized_members"] = "CustomizedMembers" - fields["group_path"] = bindings.NewStringType() + fields["group_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["group_path"] = "GroupPath" fields["ip_revision_filter"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_revision_filter"] = "IpRevisionFilter" @@ -63640,7 +63146,7 @@ func LBPoolStatusPerEPBindingType() bindings.BindingType { func LBRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["actions"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBRuleActionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["actions"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(LBRuleActionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["actions"] = "Actions" fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" @@ -63677,7 +63183,7 @@ func LBRuleConditionBindingType() bindings.BindingType { func LBSelectPoolActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["pool_id"] = bindings.NewStringType() + fields["pool_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["pool_id"] = "PoolId" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -63784,7 +63290,7 @@ func LBServerSslProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(LBServerSslProfileBindingType), reflect.TypeOf([]LBServerSslProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LBServerSslProfileBindingType), reflect.TypeOf([]LBServerSslProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_server_ssl_profile_list_result", fields, reflect.TypeOf(LBServerSslProfileListResult{}), fieldNameMap, validators) @@ -63881,7 +63387,7 @@ func LBServiceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(LBServiceBindingType), reflect.TypeOf([]LBService{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LBServiceBindingType), reflect.TypeOf([]LBService{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_service_list_result", fields, reflect.TypeOf(LBServiceListResult{}), fieldNameMap, validators) @@ -64109,7 +63615,7 @@ func LBSnatDisabledBindingType() bindings.BindingType { func LBSnatIpElementBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["prefix_length"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["prefix_length"] = "PrefixLength" @@ -64120,7 +63626,7 @@ func LBSnatIpElementBindingType() bindings.BindingType { func LBSnatIpPoolBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_addresses"] = bindings.NewListType(bindings.NewReferenceType(LBSnatIpElementBindingType), reflect.TypeOf([]LBSnatIpElement{})) + fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LBSnatIpElementBindingType), reflect.TypeOf([]LBSnatIpElement{}))) fieldNameMap["ip_addresses"] = "IpAddresses" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -64199,7 +63705,7 @@ func LBSourceIpPersistenceProfileBindingType() bindings.BindingType { func LBSslModeSelectionActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ssl_mode"] = bindings.NewStringType() + fields["ssl_mode"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ssl_mode"] = "SslMode" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -64265,7 +63771,7 @@ func LBSslSniConditionBindingType() bindings.BindingType { fieldNameMap["case_sensitive"] = "CaseSensitive" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" - fields["sni"] = bindings.NewStringType() + fields["sni"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sni"] = "Sni" fields["inverse"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["inverse"] = "Inverse" @@ -64319,7 +63825,7 @@ func LBStatisticsCounterBindingType() bindings.BindingType { func LBTcpHeaderConditionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["source_port"] = bindings.NewStringType() + fields["source_port"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["source_port"] = "SourcePort" fields["inverse"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["inverse"] = "Inverse" @@ -64397,9 +63903,9 @@ func LBTcpMonitorProfileBindingType() bindings.BindingType { func LBUdpMonitorProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["receive"] = bindings.NewStringType() + fields["receive"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["receive"] = "Receive" - fields["send"] = bindings.NewStringType() + fields["send"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["send"] = "Send" fields["fall_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["fall_count"] = "FallCount" @@ -64462,9 +63968,9 @@ func LBUdpMonitorProfileBindingType() bindings.BindingType { func LBVariableAssignmentActionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["variable_name"] = bindings.NewStringType() + fields["variable_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["variable_name"] = "VariableName" - fields["variable_value"] = bindings.NewStringType() + fields["variable_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["variable_value"] = "VariableValue" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -64479,9 +63985,9 @@ func LBVariableConditionBindingType() bindings.BindingType { fieldNameMap["case_sensitive"] = "CaseSensitive" fields["match_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["match_type"] = "MatchType" - fields["variable_name"] = bindings.NewStringType() + fields["variable_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["variable_name"] = "VariableName" - fields["variable_value"] = bindings.NewStringType() + fields["variable_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["variable_value"] = "VariableValue" fields["inverse"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["inverse"] = "Inverse" @@ -64498,7 +64004,7 @@ func LBVariablePersistenceLearnActionBindingType() bindings.BindingType { fieldNameMap["persistence_profile_path"] = "PersistenceProfilePath" fields["variable_hash_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["variable_hash_enabled"] = "VariableHashEnabled" - fields["variable_name"] = bindings.NewStringType() + fields["variable_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["variable_name"] = "VariableName" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -64513,7 +64019,7 @@ func LBVariablePersistenceOnActionBindingType() bindings.BindingType { fieldNameMap["persistence_profile_path"] = "PersistenceProfilePath" fields["variable_hash_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["variable_hash_enabled"] = "VariableHashEnabled" - fields["variable_name"] = bindings.NewStringType() + fields["variable_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["variable_name"] = "VariableName" fields["type"] = bindings.NewStringType() fieldNameMap["type"] = "Type_" @@ -64572,7 +64078,7 @@ func LBVirtualServerBindingType() bindings.BindingType { fieldNameMap["access_list_control"] = "AccessListControl" fields["access_log_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["access_log_enabled"] = "AccessLogEnabled" - fields["application_profile_path"] = bindings.NewStringType() + fields["application_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["application_profile_path"] = "ApplicationProfilePath" fields["client_ssl_profile_binding"] = bindings.NewOptionalType(bindings.NewReferenceType(LBClientSslProfileBindingBindingType)) fieldNameMap["client_ssl_profile_binding"] = "ClientSslProfileBinding" @@ -64580,7 +64086,7 @@ func LBVirtualServerBindingType() bindings.BindingType { fieldNameMap["default_pool_member_ports"] = "DefaultPoolMemberPorts" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lb_persistence_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lb_persistence_profile_path"] = "LbPersistenceProfilePath" @@ -64594,7 +64100,7 @@ func LBVirtualServerBindingType() bindings.BindingType { fieldNameMap["max_new_connection_rate"] = "MaxNewConnectionRate" fields["pool_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["pool_path"] = "PoolPath" - fields["ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ports"] = "Ports" fields["rules"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LBRuleBindingType), reflect.TypeOf([]LBRule{}))) fieldNameMap["rules"] = "Rules" @@ -64623,7 +64129,7 @@ func LBVirtualServerListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(LBVirtualServerBindingType), reflect.TypeOf([]LBVirtualServer{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LBVirtualServerBindingType), reflect.TypeOf([]LBVirtualServer{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.LB_virtual_server_list_result", fields, reflect.TypeOf(LBVirtualServerListResult{}), fieldNameMap, validators) @@ -64693,23 +64199,6 @@ func LBVirtualServerStatusPerEPBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.LB_virtual_server_status_per_EP", fields, reflect.TypeOf(LBVirtualServerStatusPerEP{}), fieldNameMap, validators) } -func LMConfigOnboardingStatusDetailsBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["current_entity"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["current_entity"] = "CurrentEntity" - fields["current_stage"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["current_stage"] = "CurrentStage" - fields["current_stage_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["current_stage_count"] = "CurrentStageCount" - fields["current_status"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["current_status"] = "CurrentStatus" - fields["total_stage_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["total_stage_count"] = "TotalStageCount" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.LM_config_onboarding_status_details", fields, reflect.TypeOf(LMConfigOnboardingStatusDetails{}), fieldNameMap, validators) -} - func LabelBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -64721,7 +64210,7 @@ func LabelBindingType() bindings.BindingType { fieldNameMap["icons"] = "Icons" fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" - fields["text"] = bindings.NewStringType() + fields["text"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["text"] = "Text" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.label", fields, reflect.TypeOf(Label{}), fieldNameMap, validators) @@ -64734,7 +64223,7 @@ func LabelValueConfigurationBindingType() bindings.BindingType { fieldNameMap["layout"] = "Layout" fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" - fields["properties"] = bindings.NewListType(bindings.NewReferenceType(PropertyItemBindingType), reflect.TypeOf([]PropertyItem{})) + fields["properties"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PropertyItemBindingType), reflect.TypeOf([]PropertyItem{}))) fieldNameMap["properties"] = "Properties" fields["sub_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sub_type"] = "SubType" @@ -64788,6 +64277,8 @@ func LabelValueConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -64840,9 +64331,9 @@ func LayoutPropertiesBindingType() bindings.BindingType { func LbHttpRequestHeaderBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["header_name"] = bindings.NewStringType() + fields["header_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_name"] = "HeaderName" - fields["header_value"] = bindings.NewStringType() + fields["header_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["header_value"] = "HeaderValue" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.lb_http_request_header", fields, reflect.TypeOf(LbHttpRequestHeader{}), fieldNameMap, validators) @@ -64865,9 +64356,9 @@ func LbSslCipherAndProtocolListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["ciphers"] = bindings.NewListType(bindings.NewReferenceType(LbSslCipherInfoBindingType), reflect.TypeOf([]LbSslCipherInfo{})) + fields["ciphers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LbSslCipherInfoBindingType), reflect.TypeOf([]LbSslCipherInfo{}))) fieldNameMap["ciphers"] = "Ciphers" - fields["protocols"] = bindings.NewListType(bindings.NewReferenceType(LbSslProtocolInfoBindingType), reflect.TypeOf([]LbSslProtocolInfo{})) + fields["protocols"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LbSslProtocolInfoBindingType), reflect.TypeOf([]LbSslProtocolInfo{}))) fieldNameMap["protocols"] = "Protocols" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.lb_ssl_cipher_and_protocol_list_result", fields, reflect.TypeOf(LbSslCipherAndProtocolListResult{}), fieldNameMap, validators) @@ -64876,13 +64367,13 @@ func LbSslCipherAndProtocolListResultBindingType() bindings.BindingType { func LbSslCipherInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["cipher"] = bindings.NewStringType() + fields["cipher"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["cipher"] = "Cipher" fields["cipher_group_labels"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["cipher_group_labels"] = "CipherGroupLabels" - fields["is_default"] = bindings.NewBooleanType() + fields["is_default"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["is_default"] = "IsDefault" - fields["is_secure"] = bindings.NewBooleanType() + fields["is_secure"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["is_secure"] = "IsSecure" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.lb_ssl_cipher_info", fields, reflect.TypeOf(LbSslCipherInfo{}), fieldNameMap, validators) @@ -64891,11 +64382,11 @@ func LbSslCipherInfoBindingType() bindings.BindingType { func LbSslProtocolInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["is_default"] = bindings.NewBooleanType() + fields["is_default"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["is_default"] = "IsDefault" - fields["is_secure"] = bindings.NewBooleanType() + fields["is_secure"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["is_secure"] = "IsSecure" - fields["protocol"] = bindings.NewStringType() + fields["protocol"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["protocol"] = "Protocol" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.lb_ssl_protocol_info", fields, reflect.TypeOf(LbSslProtocolInfo{}), fieldNameMap, validators) @@ -64934,9 +64425,9 @@ func LdapIdentitySourceBindingType() bindings.BindingType { fieldNameMap["resource_type"] = "ResourceType" fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["base_dn"] = bindings.NewStringType() + fields["base_dn"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["base_dn"] = "BaseDn" - fields["domain_name"] = bindings.NewStringType() + fields["domain_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["domain_name"] = "DomainName" fields["ldap_servers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdentitySourceLdapServerBindingType), reflect.TypeOf([]IdentitySourceLdapServer{}))) fieldNameMap["ldap_servers"] = "LdapServers" @@ -65071,9 +64562,9 @@ func LocalEgressBindingType() bindings.BindingType { func LocalEgressRoutingEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["nexthop_address"] = bindings.NewStringType() + fields["nexthop_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["nexthop_address"] = "NexthopAddress" - fields["prefix_list_paths"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["prefix_list_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["prefix_list_paths"] = "PrefixListPaths" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.local_egress_routing_entry", fields, reflect.TypeOf(LocalEgressRoutingEntry{}), fieldNameMap, validators) @@ -65157,7 +64648,7 @@ func LocaleServicesListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(LocaleServicesBindingType), reflect.TypeOf([]LocaleServices{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LocaleServicesBindingType), reflect.TypeOf([]LocaleServices{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.locale_services_list_result", fields, reflect.TypeOf(LocaleServicesListResult{}), fieldNameMap, validators) @@ -65202,7 +64693,7 @@ func LogicalRouterPortCountersBindingType() bindings.BindingType { func LogicalRouterPortStatisticsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["logical_router_port_id"] = bindings.NewStringType() + fields["logical_router_port_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["logical_router_port_id"] = "LogicalRouterPortId" fields["per_node_statistics"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LogicalRouterPortStatisticsPerNodeBindingType), reflect.TypeOf([]LogicalRouterPortStatisticsPerNode{}))) fieldNameMap["per_node_statistics"] = "PerNodeStatistics" @@ -65234,7 +64725,7 @@ func LogicalRouterPortStatisticsSummaryBindingType() bindings.BindingType { fieldNameMap["rx"] = "Rx" fields["tx"] = bindings.NewOptionalType(bindings.NewReferenceType(LogicalRouterPortCountersBindingType)) fieldNameMap["tx"] = "Tx" - fields["logical_router_port_id"] = bindings.NewStringType() + fields["logical_router_port_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["logical_router_port_id"] = "LogicalRouterPortId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.logical_router_port_statistics_summary", fields, reflect.TypeOf(LogicalRouterPortStatisticsSummary{}), fieldNameMap, validators) @@ -65264,7 +64755,7 @@ func LogicalRouterStatusBindingType() bindings.BindingType { fieldNameMap["last_update_timestamp"] = "LastUpdateTimestamp" fields["locale_operation_mode"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["locale_operation_mode"] = "LocaleOperationMode" - fields["logical_router_id"] = bindings.NewStringType() + fields["logical_router_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["logical_router_id"] = "LogicalRouterId" fields["per_node_status"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LogicalRouterStatusPerNodeBindingType), reflect.TypeOf([]LogicalRouterStatusPerNode{}))) fieldNameMap["per_node_status"] = "PerNodeStatus" @@ -65275,11 +64766,11 @@ func LogicalRouterStatusBindingType() bindings.BindingType { func LogicalRouterStatusPerNodeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["high_availability_status"] = bindings.NewStringType() + fields["high_availability_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["high_availability_status"] = "HighAvailabilityStatus" fields["service_router_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["service_router_id"] = "ServiceRouterId" - fields["transport_node_id"] = bindings.NewStringType() + fields["transport_node_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["transport_node_id"] = "TransportNodeId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.logical_router_status_per_node", fields, reflect.TypeOf(LogicalRouterStatusPerNode{}), fieldNameMap, validators) @@ -65311,7 +64802,7 @@ func LogicalSwitchStatisticsBindingType() bindings.BindingType { func MACAddressExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["mac_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["mac_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["mac_addresses"] = "MacAddresses" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -65364,7 +64855,7 @@ func MACAddressExpressionBindingType() bindings.BindingType { func MACAddressListBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["mac_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["mac_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["mac_addresses"] = "MacAddresses" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.MAC_address_list", fields, reflect.TypeOf(MACAddressList{}), fieldNameMap, validators) @@ -65421,7 +64912,7 @@ func MacDiscoveryProfileBindingType() bindings.BindingType { fieldNameMap["mac_change_enabled"] = "MacChangeEnabled" fields["mac_learning_aging_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["mac_learning_aging_time"] = "MacLearningAgingTime" - fields["mac_learning_enabled"] = bindings.NewBooleanType() + fields["mac_learning_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["mac_learning_enabled"] = "MacLearningEnabled" fields["mac_limit"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["mac_limit"] = "MacLimit" @@ -65452,7 +64943,7 @@ func MacDiscoveryProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(MacDiscoveryProfileBindingType), reflect.TypeOf([]MacDiscoveryProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(MacDiscoveryProfileBindingType), reflect.TypeOf([]MacDiscoveryProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.mac_discovery_profile_list_result", fields, reflect.TypeOf(MacDiscoveryProfileListResult{}), fieldNameMap, validators) @@ -65519,7 +65010,7 @@ func ManagementConfigBindingType() bindings.BindingType { fieldNameMap["_self"] = "Self" fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["_revision"] = "Revision" - fields["publish_fqdns"] = bindings.NewBooleanType() + fields["publish_fqdns"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["publish_fqdns"] = "PublishFqdns" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.management_config", fields, reflect.TypeOf(ManagementConfig{}), fieldNameMap, validators) @@ -65574,15 +65065,15 @@ func MetadataProxyConfigBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["crypto_protocols"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["crypto_protocols"] = "CryptoProtocols" - fields["edge_cluster_path"] = bindings.NewStringType() + fields["edge_cluster_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_cluster_path"] = "EdgeClusterPath" fields["enable_standby_relocation"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enable_standby_relocation"] = "EnableStandbyRelocation" fields["preferred_edge_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["preferred_edge_paths"] = "PreferredEdgePaths" - fields["secret"] = bindings.NewStringType() + fields["secret"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["secret"] = "Secret" - fields["server_address"] = bindings.NewStringType() + fields["server_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["server_address"] = "ServerAddress" fields["server_certificates"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["server_certificates"] = "ServerCertificates" @@ -65607,7 +65098,7 @@ func MetadataProxyConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(MetadataProxyConfigBindingType), reflect.TypeOf([]MetadataProxyConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(MetadataProxyConfigBindingType), reflect.TypeOf([]MetadataProxyConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.metadata_proxy_config_list_result", fields, reflect.TypeOf(MetadataProxyConfigListResult{}), fieldNameMap, validators) @@ -65669,7 +65160,7 @@ func MultiWidgetConfigurationBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" - fields["widgets"] = bindings.NewListType(bindings.NewReferenceType(WidgetItemBindingType), reflect.TypeOf([]WidgetItem{})) + fields["widgets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(WidgetItemBindingType), reflect.TypeOf([]WidgetItem{}))) fieldNameMap["widgets"] = "Widgets" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -65721,6 +65212,8 @@ func MultiWidgetConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -65771,7 +65264,7 @@ func MulticastForwardingInterfaceBindingType() bindings.BindingType { func MulticastForwardingPerEdgeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["edge_path"] = bindings.NewStringType() + fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_path"] = "EdgePath" fields["mcast_forwarding"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(MulticastForwardingBindingType), reflect.TypeOf([]MulticastForwarding{}))) fieldNameMap["mcast_forwarding"] = "McastForwarding" @@ -65822,7 +65315,7 @@ func MulticastRouteCsvRecordBindingType() bindings.BindingType { func MulticastRoutesPerEdgeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["edge_path"] = bindings.NewStringType() + fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_path"] = "EdgePath" fields["mcast_routes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(MulticastRouteBindingType), reflect.TypeOf([]MulticastRoute{}))) fieldNameMap["mcast_routes"] = "McastRoutes" @@ -65843,7 +65336,7 @@ func NSXTConnectionInfoBindingType() bindings.BindingType { fieldNameMap["transport_zone_ids"] = "TransportZoneIds" fields["username"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["username"] = "Username" - fields["enforcement_point_address"] = bindings.NewStringType() + fields["enforcement_point_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_address"] = "EnforcementPointAddress" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -65856,11 +65349,11 @@ func NSXVConnectionInfoBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["password"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["password"] = "Password" - fields["thumbprint"] = bindings.NewStringType() + fields["thumbprint"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["thumbprint"] = "Thumbprint" fields["username"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["username"] = "Username" - fields["enforcement_point_address"] = bindings.NewStringType() + fields["enforcement_point_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point_address"] = "EnforcementPointAddress" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -65893,7 +65386,7 @@ func NdpHeaderBindingType() bindings.BindingType { func NestedExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["expressions"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ExpressionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["expressions"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ExpressionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["expressions"] = "Expressions" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -65946,7 +65439,7 @@ func NestedExpressionBindingType() bindings.BindingType { func NestedServiceServiceEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["nested_service_path"] = bindings.NewStringType() + fields["nested_service_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["nested_service_path"] = "NestedServicePath" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -66009,27 +65502,14 @@ func NetworkErrorBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.network_error", fields, reflect.TypeOf(NetworkError{}), fieldNameMap, validators) } -func NewRoleBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["new_role_description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["new_role_description"] = "NewRoleDescription" - fields["new_role_id"] = bindings.NewStringType() - fieldNameMap["new_role_id"] = "NewRoleId" - fields["new_role_name"] = bindings.NewStringType() - fieldNameMap["new_role_name"] = "NewRoleName" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.new_role", fields, reflect.TypeOf(NewRole{}), fieldNameMap, validators) -} - func NicMetadataBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["interface_index"] = bindings.NewIntegerType() + fields["interface_index"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["interface_index"] = "InterfaceIndex" - fields["interface_label"] = bindings.NewStringType() + fields["interface_label"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["interface_label"] = "InterfaceLabel" - fields["interface_type"] = bindings.NewStringType() + fields["interface_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["interface_type"] = "InterfaceType" fields["transports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["transports"] = "Transports" @@ -66044,7 +65524,7 @@ func NsxRoleBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["permissions"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["permissions"] = "Permissions" - fields["role"] = bindings.NewStringType() + fields["role"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["role"] = "Role" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.nsx_role", fields, reflect.TypeOf(NsxRole{}), fieldNameMap, validators) @@ -66112,9 +65592,9 @@ func NsxtDnsAnswerBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["authoritative_answers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NsxtDnsQueryAnswerBindingType), reflect.TypeOf([]NsxtDnsQueryAnswer{}))) fieldNameMap["authoritative_answers"] = "AuthoritativeAnswers" - fields["dns_server"] = bindings.NewStringType() + fields["dns_server"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["dns_server"] = "DnsServer" - fields["edge_node_id"] = bindings.NewStringType() + fields["edge_node_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_node_id"] = "EdgeNodeId" fields["non_authoritative_answers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NsxtDnsQueryAnswerBindingType), reflect.TypeOf([]NsxtDnsQueryAnswer{}))) fieldNameMap["non_authoritative_answers"] = "NonAuthoritativeAnswers" @@ -66202,9 +65682,9 @@ func ObjectRolePermissionGroupBindingType() bindings.BindingType { fieldNameMap["inheritance_disabled"] = "InheritanceDisabled" fields["operation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operation"] = "Operation" - fields["path_prefix"] = bindings.NewStringType() + fields["path_prefix"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["path_prefix"] = "PathPrefix" - fields["role_name"] = bindings.NewStringType() + fields["role_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["role_name"] = "RoleName" fields["rule_disabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["rule_disabled"] = "RuleDisabled" @@ -66229,31 +65709,12 @@ func ObjectRolePermissionGroupListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ObjectRolePermissionGroupBindingType), reflect.TypeOf([]ObjectRolePermissionGroup{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ObjectRolePermissionGroupBindingType), reflect.TypeOf([]ObjectRolePermissionGroup{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.object_role_permission_group_list_result", fields, reflect.TypeOf(ObjectRolePermissionGroupListResult{}), fieldNameMap, validators) } -func OnboardLocalManagerTaskBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["action"] = bindings.NewStringType() - fieldNameMap["action"] = "Action" - fields["end_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["end_time"] = "EndTime" - fields["result"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result"] = "Result" - fields["result_description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result_description"] = "ResultDescription" - fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["start_time"] = "StartTime" - fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["state"] = "State" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.onboard_local_manager_task", fields, reflect.TypeOf(OnboardLocalManagerTask{}), fieldNameMap, validators) -} - func OpenLdapIdentitySourceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -66287,9 +65748,9 @@ func OpenLdapIdentitySourceBindingType() bindings.BindingType { fieldNameMap["resource_type"] = "ResourceType" fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["base_dn"] = bindings.NewStringType() + fields["base_dn"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["base_dn"] = "BaseDn" - fields["domain_name"] = bindings.NewStringType() + fields["domain_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["domain_name"] = "DomainName" fields["ldap_servers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IdentitySourceLdapServerBindingType), reflect.TypeOf([]IdentitySourceLdapServer{}))) fieldNameMap["ldap_servers"] = "LdapServers" @@ -66369,7 +65830,7 @@ func OverriddenResourceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(OverriddenResourceBindingType), reflect.TypeOf([]OverriddenResource{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(OverriddenResourceBindingType), reflect.TypeOf([]OverriddenResource{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.overridden_resource_list_result", fields, reflect.TypeOf(OverriddenResourceListResult{}), fieldNameMap, validators) @@ -66393,9 +65854,9 @@ func PacketDataBindingType() bindings.BindingType { func PacketTypeAndCounterBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["counter"] = bindings.NewIntegerType() + fields["counter"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["counter"] = "Counter" - fields["packet_type"] = bindings.NewStringType() + fields["packet_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["packet_type"] = "PacketType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.packet_type_and_counter", fields, reflect.TypeOf(PacketTypeAndCounter{}), fieldNameMap, validators) @@ -66423,7 +65884,7 @@ func PacketsDroppedBySecurityBindingType() bindings.BindingType { func PartialPatchConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["enable_partial_patch"] = bindings.NewBooleanType() + fields["enable_partial_patch"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enable_partial_patch"] = "EnablePartialPatch" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.partial_patch_config", fields, reflect.TypeOf(PartialPatchConfig{}), fieldNameMap, validators) @@ -66432,7 +65893,7 @@ func PartialPatchConfigBindingType() bindings.BindingType { func PatchResourcesBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["body"] = bindings.NewDynamicStructType(nil, bindings.REST) + fields["body"] = bindings.NewOptionalType(bindings.NewDynamicStructType(nil, bindings.REST)) fieldNameMap["body"] = "Body" fields["injections"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(InjectionBindingType), reflect.TypeOf([]Injection{}))) fieldNameMap["injections"] = "Injections" @@ -66445,7 +65906,7 @@ func PatchResourcesBindingType() bindings.BindingType { func PathExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["paths"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["paths"] = "Paths" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -66498,9 +65959,9 @@ func PathExpressionBindingType() bindings.BindingType { func PathPermissionGroupBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["object_path"] = bindings.NewStringType() + fields["object_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["object_path"] = "ObjectPath" - fields["operation"] = bindings.NewStringType() + fields["operation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operation"] = "Operation" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.path_permission_group", fields, reflect.TypeOf(PathPermissionGroup{}), fieldNameMap, validators) @@ -66511,12 +65972,21 @@ func PeerCertificateChainBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["details"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(X509CertificateBindingType), reflect.TypeOf([]X509Certificate{}))) fieldNameMap["details"] = "Details" - fields["pem_encoded"] = bindings.NewStringType() + fields["pem_encoded"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["pem_encoded"] = "PemEncoded" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.peer_certificate_chain", fields, reflect.TypeOf(PeerCertificateChain{}), fieldNameMap, validators) } +func PendingChangesInfoNsxtBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["pending_changes_flag"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["pending_changes_flag"] = "PendingChangesFlag" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.pending_changes_info_nsxt", fields, reflect.TypeOf(PendingChangesInfoNsxt{}), fieldNameMap, validators) +} + func PerStepRestoreStatusBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -66567,7 +66037,7 @@ func PimRpMappingCsvRecordBindingType() bindings.BindingType { func PimRpMappingsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["gateway_path"] = bindings.NewStringType() + fields["gateway_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["gateway_path"] = "GatewayPath" fields["pim_rp_mappings_per_edge"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PimRpMappingsPerEdgeBindingType), reflect.TypeOf([]PimRpMappingsPerEdge{}))) fieldNameMap["pim_rp_mappings_per_edge"] = "PimRpMappingsPerEdge" @@ -66589,7 +66059,7 @@ func PimRpMappingsInCsvFormatBindingType() bindings.BindingType { func PimRpMappingsPerEdgeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["edge_path"] = bindings.NewStringType() + fields["edge_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_path"] = "EdgePath" fields["pim_rp_mappings"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PimRpMappingBindingType), reflect.TypeOf([]PimRpMapping{}))) fieldNameMap["pim_rp_mappings"] = "PimRpMappings" @@ -66602,15 +66072,15 @@ func PointDefinitionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["drilldown_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["drilldown_id"] = "DrilldownId" - fields["field"] = bindings.NewStringType() + fields["field"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field"] = "Field" fields["navigation"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["navigation"] = "Navigation" fields["tooltip"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TooltipBindingType), reflect.TypeOf([]Tooltip{}))) fieldNameMap["tooltip"] = "Tooltip" - fields["x_value"] = bindings.NewStringType() + fields["x_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["x_value"] = "XValue" - fields["y_value"] = bindings.NewStringType() + fields["y_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["y_value"] = "YValue" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.point_definition", fields, reflect.TypeOf(PointDefinition{}), fieldNameMap, validators) @@ -66791,17 +66261,17 @@ func PolicyApiErrorBindingType() bindings.BindingType { func PolicyAttributesBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["datatype"] = bindings.NewStringType() + fields["datatype"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["datatype"] = "Datatype" fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["description"] = "Description" fields["isALGType"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["isALGType"] = "IsALGType" - fields["key"] = bindings.NewStringType() + fields["key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["key"] = "Key" fields["sub_attributes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicySubAttributesBindingType), reflect.TypeOf([]PolicySubAttributes{}))) fieldNameMap["sub_attributes"] = "SubAttributes" - fields["value"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["value"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_attributes", fields, reflect.TypeOf(PolicyAttributes{}), fieldNameMap, validators) @@ -66810,7 +66280,7 @@ func PolicyAttributesBindingType() bindings.BindingType { func PolicyBasedIPSecVpnSessionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["rules"] = bindings.NewListType(bindings.NewReferenceType(IPSecVpnRuleBindingType), reflect.TypeOf([]IPSecVpnRule{})) + fields["rules"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPSecVpnRuleBindingType), reflect.TypeOf([]IPSecVpnRule{}))) fieldNameMap["rules"] = "Rules" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -66868,11 +66338,11 @@ func PolicyBasedIPSecVpnSessionBindingType() bindings.BindingType { fieldNameMap["enabled"] = "Enabled" fields["ike_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ike_profile_path"] = "IkeProfilePath" - fields["local_endpoint_path"] = bindings.NewStringType() + fields["local_endpoint_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_endpoint_path"] = "LocalEndpointPath" - fields["peer_address"] = bindings.NewStringType() + fields["peer_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_address"] = "PeerAddress" - fields["peer_id"] = bindings.NewStringType() + fields["peer_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_id"] = "PeerId" fields["psk"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["psk"] = "Psk" @@ -66916,6 +66386,8 @@ func PolicyBgpNeighborStatusBindingType() bindings.BindingType { fieldNameMap["hold_time"] = "HoldTime" fields["keep_alive_interval"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["keep_alive_interval"] = "KeepAliveInterval" + fields["last_update_timestamp"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["last_update_timestamp"] = "LastUpdateTimestamp" fields["local_port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["local_port"] = "LocalPort" fields["messages_received"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -66936,6 +66408,8 @@ func PolicyBgpNeighborStatusBindingType() bindings.BindingType { fieldNameMap["remote_site"] = "RemoteSite" fields["source_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["source_address"] = "SourceAddress" + fields["tier0_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["tier0_path"] = "Tier0Path" fields["time_since_established"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["time_since_established"] = "TimeSinceEstablished" fields["total_in_prefix_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) @@ -66963,16 +66437,68 @@ func PolicyBgpNeighborsStatusListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["last_update_timestamp"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["last_update_timestamp"] = "LastUpdateTimestamp" fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyBgpNeighborStatusBindingType), reflect.TypeOf([]PolicyBgpNeighborStatus{}))) fieldNameMap["results"] = "Results" - fields["tier0_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["tier0_path"] = "Tier0Path" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_bgp_neighbors_status_list_result", fields, reflect.TypeOf(PolicyBgpNeighborsStatusListResult{}), fieldNameMap, validators) } +func PolicyCapacityDashboardUsageBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["current_usage_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["current_usage_count"] = "CurrentUsageCount" + fields["current_usage_percentage"] = bindings.NewOptionalType(bindings.NewDoubleType()) + fieldNameMap["current_usage_percentage"] = "CurrentUsagePercentage" + fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["display_name"] = "DisplayName" + fields["max_supported_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["max_supported_count"] = "MaxSupportedCount" + fields["usage_type"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["usage_type"] = "UsageType" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.policy_capacity_dashboard_usage", fields, reflect.TypeOf(PolicyCapacityDashboardUsage{}), fieldNameMap, validators) +} + +func PolicyCapacityUsageResponseBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) + fieldNameMap["_links"] = "Links" + fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_schema"] = "Schema" + fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) + fieldNameMap["_self"] = "Self" + fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_revision"] = "Revision" + fields["_create_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_create_time"] = "CreateTime" + fields["_create_user"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_create_user"] = "CreateUser" + fields["_last_modified_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_last_modified_time"] = "LastModifiedTime" + fields["_last_modified_user"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_last_modified_user"] = "LastModifiedUser" + fields["_protection"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_protection"] = "Protection" + fields["_system_owned"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["_system_owned"] = "SystemOwned" + fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["description"] = "Description" + fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["display_name"] = "DisplayName" + fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["id"] = "Id" + fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["resource_type"] = "ResourceType" + fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) + fieldNameMap["tags"] = "Tags" + fields["capacity_usage"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyCapacityDashboardUsageBindingType), reflect.TypeOf([]PolicyCapacityDashboardUsage{}))) + fieldNameMap["capacity_usage"] = "CapacityUsage" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.policy_capacity_usage_response", fields, reflect.TypeOf(PolicyCapacityUsageResponse{}), fieldNameMap, validators) +} + func PolicyComplianceStatusBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -67082,7 +66608,7 @@ func PolicyContextProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["attributes"] = bindings.NewListType(bindings.NewReferenceType(PolicyAttributesBindingType), reflect.TypeOf([]PolicyAttributes{})) + fields["attributes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyAttributesBindingType), reflect.TypeOf([]PolicyAttributes{}))) fieldNameMap["attributes"] = "Attributes" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_context_profile", fields, reflect.TypeOf(PolicyContextProfile{}), fieldNameMap, validators) @@ -67171,11 +66697,11 @@ func PolicyDnsForwarderBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["conditional_forwarder_zone_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["conditional_forwarder_zone_paths"] = "ConditionalForwarderZonePaths" - fields["default_forwarder_zone_path"] = bindings.NewStringType() + fields["default_forwarder_zone_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["default_forwarder_zone_path"] = "DefaultForwarderZonePath" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["listener_ip"] = bindings.NewStringType() + fields["listener_ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["listener_ip"] = "ListenerIp" fields["log_level"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["log_level"] = "LogLevel" @@ -67234,7 +66760,7 @@ func PolicyDnsForwarderZoneBindingType() bindings.BindingType { fieldNameMap["dns_domain_names"] = "DnsDomainNames" fields["source_ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["source_ip"] = "SourceIp" - fields["upstream_servers"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["upstream_servers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["upstream_servers"] = "UpstreamServers" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_dns_forwarder_zone", fields, reflect.TypeOf(PolicyDnsForwarderZone{}), fieldNameMap, validators) @@ -67257,7 +66783,7 @@ func PolicyDnsForwarderZoneListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyDnsForwarderZoneBindingType), reflect.TypeOf([]PolicyDnsForwarderZone{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyDnsForwarderZoneBindingType), reflect.TypeOf([]PolicyDnsForwarderZone{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_dns_forwarder_zone_list_result", fields, reflect.TypeOf(PolicyDnsForwarderZoneListResult{}), fieldNameMap, validators) @@ -67427,7 +66953,7 @@ func PolicyEdgeClusterListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyEdgeClusterBindingType), reflect.TypeOf([]PolicyEdgeCluster{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyEdgeClusterBindingType), reflect.TypeOf([]PolicyEdgeCluster{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_edge_cluster_list_result", fields, reflect.TypeOf(PolicyEdgeClusterListResult{}), fieldNameMap, validators) @@ -67505,7 +67031,7 @@ func PolicyEdgeNodeListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyEdgeNodeBindingType), reflect.TypeOf([]PolicyEdgeNode{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyEdgeNodeBindingType), reflect.TypeOf([]PolicyEdgeNode{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_edge_node_list_result", fields, reflect.TypeOf(PolicyEdgeNodeListResult{}), fieldNameMap, validators) @@ -67558,7 +67084,7 @@ func PolicyExcludeListBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["members"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["members"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["members"] = "Members" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_exclude_list", fields, reflect.TypeOf(PolicyExcludeList{}), fieldNameMap, validators) @@ -67567,9 +67093,9 @@ func PolicyExcludeListBindingType() bindings.BindingType { func PolicyFineTuningResourceInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["fields"] = bindings.NewListType(bindings.NewReferenceType(PolicyFineTuningResourceInfoDetailBindingType), reflect.TypeOf([]PolicyFineTuningResourceInfoDetail{})) + fields["fields"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyFineTuningResourceInfoDetailBindingType), reflect.TypeOf([]PolicyFineTuningResourceInfoDetail{}))) fieldNameMap["fields"] = "Fields" - fields["resource_name"] = bindings.NewStringType() + fields["resource_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["resource_name"] = "ResourceName" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_fine_tuning_resource_info", fields, reflect.TypeOf(PolicyFineTuningResourceInfo{}), fieldNameMap, validators) @@ -67578,9 +67104,9 @@ func PolicyFineTuningResourceInfoBindingType() bindings.BindingType { func PolicyFineTuningResourceInfoDetailBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["field_name"] = bindings.NewStringType() + fields["field_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field_name"] = "FieldName" - fields["sub_type"] = bindings.NewReferenceType(PolicyFineTuningResourceInfoBindingType) + fields["sub_type"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyFineTuningResourceInfoBindingType)) fieldNameMap["sub_type"] = "SubType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_fine_tuning_resource_info_detail", fields, reflect.TypeOf(PolicyFineTuningResourceInfoDetail{}), fieldNameMap, validators) @@ -67633,9 +67159,9 @@ func PolicyFirewallCPUMemThresholdsProfileBindingMapBindingType() bindings.Bindi fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["profile_path"] = bindings.NewStringType() + fields["profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["profile_path"] = "ProfilePath" - fields["sequence_number"] = bindings.NewIntegerType() + fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" fields["transport_nodes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyResourceReferenceBindingType), reflect.TypeOf([]PolicyResourceReference{}))) fieldNameMap["transport_nodes"] = "TransportNodes" @@ -67660,7 +67186,7 @@ func PolicyFirewallCPUMemThresholdsProfileBindingMapListResultBindingType() bind fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyFirewallCPUMemThresholdsProfileBindingMapBindingType), reflect.TypeOf([]PolicyFirewallCPUMemThresholdsProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyFirewallCPUMemThresholdsProfileBindingMapBindingType), reflect.TypeOf([]PolicyFirewallCPUMemThresholdsProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_CPU_mem_thresholds_profile_binding_map_list_result", fields, reflect.TypeOf(PolicyFirewallCPUMemThresholdsProfileBindingMapListResult{}), fieldNameMap, validators) @@ -67713,9 +67239,9 @@ func PolicyFirewallCpuMemThresholdsProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["cpu_threshold_percentage"] = bindings.NewIntegerType() + fields["cpu_threshold_percentage"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["cpu_threshold_percentage"] = "CpuThresholdPercentage" - fields["mem_threshold_percentage"] = bindings.NewIntegerType() + fields["mem_threshold_percentage"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["mem_threshold_percentage"] = "MemThresholdPercentage" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_cpu_mem_thresholds_profile", fields, reflect.TypeOf(PolicyFirewallCpuMemThresholdsProfile{}), fieldNameMap, validators) @@ -67738,7 +67264,7 @@ func PolicyFirewallCpuMemThresholdsProfileListResultBindingType() bindings.Bindi fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyFirewallCpuMemThresholdsProfileBindingType), reflect.TypeOf([]PolicyFirewallCpuMemThresholdsProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyFirewallCpuMemThresholdsProfileBindingType), reflect.TypeOf([]PolicyFirewallCpuMemThresholdsProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_cpu_mem_thresholds_profile_list_result", fields, reflect.TypeOf(PolicyFirewallCpuMemThresholdsProfileListResult{}), fieldNameMap, validators) @@ -67791,9 +67317,9 @@ func PolicyFirewallFloodProtectionProfileBindingMapBindingType() bindings.Bindin fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["profile_path"] = bindings.NewStringType() + fields["profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["profile_path"] = "ProfilePath" - fields["sequence_number"] = bindings.NewIntegerType() + fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_flood_protection_profile_binding_map", fields, reflect.TypeOf(PolicyFirewallFloodProtectionProfileBindingMap{}), fieldNameMap, validators) @@ -67816,7 +67342,7 @@ func PolicyFirewallFloodProtectionProfileBindingMapListResultBindingType() bindi fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyFirewallFloodProtectionProfileBindingMapBindingType), reflect.TypeOf([]PolicyFirewallFloodProtectionProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyFirewallFloodProtectionProfileBindingMapBindingType), reflect.TypeOf([]PolicyFirewallFloodProtectionProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_flood_protection_profile_binding_map_list_result", fields, reflect.TypeOf(PolicyFirewallFloodProtectionProfileBindingMapListResult{}), fieldNameMap, validators) @@ -67871,19 +67397,19 @@ func PolicyFirewallSchedulerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["days"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["days"] = "Days" - fields["end_date"] = bindings.NewStringType() + fields["end_date"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["end_date"] = "EndDate" fields["end_time"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["end_time"] = "EndTime" - fields["recurring"] = bindings.NewBooleanType() + fields["recurring"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["recurring"] = "Recurring" - fields["start_date"] = bindings.NewStringType() + fields["start_date"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["start_date"] = "StartDate" fields["start_time"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["start_time"] = "StartTime" fields["time_interval"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyTimeIntervalValueBindingType), reflect.TypeOf([]PolicyTimeIntervalValue{}))) fieldNameMap["time_interval"] = "TimeInterval" - fields["timezone"] = bindings.NewStringType() + fields["timezone"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["timezone"] = "Timezone" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_scheduler", fields, reflect.TypeOf(PolicyFirewallScheduler{}), fieldNameMap, validators) @@ -67959,27 +67485,27 @@ func PolicyFirewallSessionTimerProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["icmp_error_reply"] = bindings.NewIntegerType() + fields["icmp_error_reply"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["icmp_error_reply"] = "IcmpErrorReply" - fields["icmp_first_packet"] = bindings.NewIntegerType() + fields["icmp_first_packet"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["icmp_first_packet"] = "IcmpFirstPacket" - fields["tcp_closed"] = bindings.NewIntegerType() + fields["tcp_closed"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["tcp_closed"] = "TcpClosed" - fields["tcp_closing"] = bindings.NewIntegerType() + fields["tcp_closing"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["tcp_closing"] = "TcpClosing" - fields["tcp_established"] = bindings.NewIntegerType() + fields["tcp_established"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["tcp_established"] = "TcpEstablished" - fields["tcp_finwait"] = bindings.NewIntegerType() + fields["tcp_finwait"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["tcp_finwait"] = "TcpFinwait" - fields["tcp_first_packet"] = bindings.NewIntegerType() + fields["tcp_first_packet"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["tcp_first_packet"] = "TcpFirstPacket" - fields["tcp_opening"] = bindings.NewIntegerType() + fields["tcp_opening"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["tcp_opening"] = "TcpOpening" - fields["udp_first_packet"] = bindings.NewIntegerType() + fields["udp_first_packet"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["udp_first_packet"] = "UdpFirstPacket" - fields["udp_multiple"] = bindings.NewIntegerType() + fields["udp_multiple"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["udp_multiple"] = "UdpMultiple" - fields["udp_single"] = bindings.NewIntegerType() + fields["udp_single"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["udp_single"] = "UdpSingle" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_session_timer_profile", fields, reflect.TypeOf(PolicyFirewallSessionTimerProfile{}), fieldNameMap, validators) @@ -68032,7 +67558,7 @@ func PolicyFirewallSessionTimerProfileBindingMapBindingType() bindings.BindingTy fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["firewall_session_timer_profile_path"] = bindings.NewStringType() + fields["firewall_session_timer_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["firewall_session_timer_profile_path"] = "FirewallSessionTimerProfilePath" fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" @@ -68057,7 +67583,7 @@ func PolicyFirewallSessionTimerProfileBindingMapListResultBindingType() bindings fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingMapBindingType), reflect.TypeOf([]PolicyFirewallSessionTimerProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingMapBindingType), reflect.TypeOf([]PolicyFirewallSessionTimerProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_session_timer_profile_binding_map_list_result", fields, reflect.TypeOf(PolicyFirewallSessionTimerProfileBindingMapListResult{}), fieldNameMap, validators) @@ -68080,7 +67606,7 @@ func PolicyFirewallSessionTimerProfileListResultBindingType() bindings.BindingTy fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingType), reflect.TypeOf([]PolicyFirewallSessionTimerProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyFirewallSessionTimerProfileBindingType), reflect.TypeOf([]PolicyFirewallSessionTimerProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_firewall_session_timer_profile_list_result", fields, reflect.TypeOf(PolicyFirewallSessionTimerProfileListResult{}), fieldNameMap, validators) @@ -68103,7 +67629,7 @@ func PolicyGroupIPMembersListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_group_IP_members_list_result", fields, reflect.TypeOf(PolicyGroupIPMembersListResult{}), fieldNameMap, validators) @@ -68139,7 +67665,7 @@ func PolicyGroupMembersListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyGroupMemberDetailsBindingType), reflect.TypeOf([]PolicyGroupMemberDetails{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyGroupMemberDetailsBindingType), reflect.TypeOf([]PolicyGroupMemberDetails{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_group_members_list_result", fields, reflect.TypeOf(PolicyGroupMembersListResult{}), fieldNameMap, validators) @@ -68192,7 +67718,7 @@ func PolicyGroupReferenceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["refs"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["refs"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["refs"] = "Refs" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_group_reference", fields, reflect.TypeOf(PolicyGroupReference{}), fieldNameMap, validators) @@ -68201,7 +67727,7 @@ func PolicyGroupReferenceBindingType() bindings.BindingType { func PolicyIPAddressInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["address_value"] = bindings.NewStringType() + fields["address_value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["address_value"] = "AddressValue" fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" @@ -68211,7 +67737,7 @@ func PolicyIPAddressInfoBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.policy_IP_address_info", fields, reflect.TypeOf(PolicyIPAddressInfo{}), fieldNameMap, validators) } -func PolicyIgmpConfigBindingType() bindings.BindingType { +func PolicyIgmpProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) @@ -68267,10 +67793,10 @@ func PolicyIgmpConfigBindingType() bindings.BindingType { fields["robustness_variable"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["robustness_variable"] = "RobustnessVariable" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_igmp_config", fields, reflect.TypeOf(PolicyIgmpConfig{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.policy_igmp_profile", fields, reflect.TypeOf(PolicyIgmpProfile{}), fieldNameMap, validators) } -func PolicyIgmpConfigListResultBindingType() bindings.BindingType { +func PolicyIgmpProfileListResultBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) @@ -68287,10 +67813,10 @@ func PolicyIgmpConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyIgmpConfigBindingType), reflect.TypeOf([]PolicyIgmpConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyIgmpProfileBindingType), reflect.TypeOf([]PolicyIgmpProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_igmp_config_list_result", fields, reflect.TypeOf(PolicyIgmpConfigListResult{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.policy_igmp_profile_list_result", fields, reflect.TypeOf(PolicyIgmpProfileListResult{}), fieldNameMap, validators) } func PolicyInsertParametersBindingType() bindings.BindingType { @@ -68307,7 +67833,7 @@ func PolicyInsertParametersBindingType() bindings.BindingType { func PolicyInterfaceStatisticsBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["logical_router_port_id"] = bindings.NewStringType() + fields["logical_router_port_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["logical_router_port_id"] = "LogicalRouterPortId" fields["per_node_statistics"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(LogicalRouterPortStatisticsPerNodeBindingType), reflect.TypeOf([]LogicalRouterPortStatisticsPerNode{}))) fieldNameMap["per_node_statistics"] = "PerNodeStatistics" @@ -68324,7 +67850,7 @@ func PolicyInterfaceStatisticsSummaryBindingType() bindings.BindingType { fieldNameMap["rx"] = "Rx" fields["tx"] = bindings.NewOptionalType(bindings.NewReferenceType(LogicalRouterPortCountersBindingType)) fieldNameMap["tx"] = "Tx" - fields["logical_router_port_id"] = bindings.NewStringType() + fields["logical_router_port_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["logical_router_port_id"] = "LogicalRouterPortId" fields["interface_policy_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["interface_policy_path"] = "InterfacePolicyPath" @@ -68332,75 +67858,6 @@ func PolicyInterfaceStatisticsSummaryBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.policy_interface_statistics_summary", fields, reflect.TypeOf(PolicyInterfaceStatisticsSummary{}), fieldNameMap, validators) } -func PolicyLMEntityInfoBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["name"] = "Name" - fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["path"] = "Path" - fields["policy_resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["policy_resource_type"] = "PolicyResourceType" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_LM_entity_info", fields, reflect.TypeOf(PolicyLMEntityInfo{}), fieldNameMap, validators) -} - -func PolicyLMEntityTypeBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["entity_completed"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["entity_completed"] = "EntityCompleted" - fields["entity_count"] = bindings.NewIntegerType() - fieldNameMap["entity_count"] = "EntityCount" - fields["entity_type"] = bindings.NewStringType() - fieldNameMap["entity_type"] = "EntityType" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_LM_entity_type", fields, reflect.TypeOf(PolicyLMEntityType{}), fieldNameMap, validators) -} - -func PolicyLMOnboardingDiagnosticsBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["conflicts"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyLMEntityInfoBindingType), reflect.TypeOf([]PolicyLMEntityInfo{}))) - fieldNameMap["conflicts"] = "Conflicts" - fields["entity_summary"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyLMEntityTypeBindingType), reflect.TypeOf([]PolicyLMEntityType{}))) - fieldNameMap["entity_summary"] = "EntitySummary" - fields["unsupported"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyLMEntityInfoBindingType), reflect.TypeOf([]PolicyLMEntityInfo{}))) - fieldNameMap["unsupported"] = "Unsupported" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_LM_onboarding_diagnostics", fields, reflect.TypeOf(PolicyLMOnboardingDiagnostics{}), fieldNameMap, validators) -} - -func PolicyLMOnboardingMetadataBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["gm_version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["gm_version"] = "GmVersion" - fields["members"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyLMEntityInfoBindingType), reflect.TypeOf([]PolicyLMEntityInfo{}))) - fieldNameMap["members"] = "Members" - fields["prefix"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["prefix"] = "Prefix" - fields["site_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["site_id"] = "SiteId" - fields["suffix"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["suffix"] = "Suffix" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_LM_onboarding_metadata", fields, reflect.TypeOf(PolicyLMOnboardingMetadata{}), fieldNameMap, validators) -} - -func PolicyLMOnboardingStatusBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["diagnostics"] = bindings.NewOptionalType(bindings.NewReferenceType(PolicyLMOnboardingDiagnosticsBindingType)) - fieldNameMap["diagnostics"] = "Diagnostics" - fields["message"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["message"] = "Message" - fields["status"] = bindings.NewOptionalType(bindings.NewReferenceType(LMConfigOnboardingStatusDetailsBindingType)) - fieldNameMap["status"] = "Status" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_LM_onboarding_status", fields, reflect.TypeOf(PolicyLMOnboardingStatus{}), fieldNameMap, validators) -} - func PolicyLabelBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -68450,7 +67907,7 @@ func PolicyLabelBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["refs"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["refs"] = "Refs" - fields["type"] = bindings.NewStringType() + fields["type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["type"] = "Type_" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_label", fields, reflect.TypeOf(PolicyLabel{}), fieldNameMap, validators) @@ -68473,7 +67930,7 @@ func PolicyLabelListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyLabelBindingType), reflect.TypeOf([]PolicyLabel{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyLabelBindingType), reflect.TypeOf([]PolicyLabel{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_label_list_result", fields, reflect.TypeOf(PolicyLabelListResult{}), fieldNameMap, validators) @@ -68762,13 +68219,13 @@ func PolicyLbVirtualServerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["access_log_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["access_log_enabled"] = "AccessLogEnabled" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lb_persistence_profile"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lb_persistence_profile"] = "LbPersistenceProfile" - fields["ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ports"] = "Ports" - fields["router_path"] = bindings.NewStringType() + fields["router_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["router_path"] = "RouterPath" fields["traffic_source"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["traffic_source"] = "TrafficSource" @@ -68846,10 +68303,10 @@ func PolicyMulticastConfigBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["igmp_config_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["igmp_config_path"] = "IgmpConfigPath" - fields["pim_config_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["pim_config_path"] = "PimConfigPath" + fields["igmp_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["igmp_profile_path"] = "IgmpProfilePath" + fields["pim_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["pim_profile_path"] = "PimProfilePath" fields["replication_multicast_range"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["replication_multicast_range"] = "ReplicationMulticastRange" var validators = []bindings.Validator{} @@ -68859,7 +68316,7 @@ func PolicyMulticastConfigBindingType() bindings.BindingType { func PolicyMulticastForwardingBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["gateway_path"] = bindings.NewStringType() + fields["gateway_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["gateway_path"] = "GatewayPath" fields["mcast_forwarding_per_edge"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(MulticastForwardingPerEdgeBindingType), reflect.TypeOf([]MulticastForwardingPerEdge{}))) fieldNameMap["mcast_forwarding_per_edge"] = "McastForwardingPerEdge" @@ -68881,7 +68338,7 @@ func PolicyMulticastForwardingInCsvFormatBindingType() bindings.BindingType { func PolicyMulticastRoutesBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["gateway_path"] = bindings.NewStringType() + fields["gateway_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["gateway_path"] = "GatewayPath" fields["mcast_routes_per_edge"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(MulticastRoutesPerEdgeBindingType), reflect.TypeOf([]MulticastRoutesPerEdge{}))) fieldNameMap["mcast_routes_per_edge"] = "McastRoutesPerEdge" @@ -69013,7 +68470,7 @@ func PolicyNatRuleBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["action"] = bindings.NewStringType() + fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["action"] = "Action" fields["destination_network"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["destination_network"] = "DestinationNetwork" @@ -69056,7 +68513,7 @@ func PolicyNatRuleListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyNatRuleBindingType), reflect.TypeOf([]PolicyNatRule{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyNatRuleBindingType), reflect.TypeOf([]PolicyNatRule{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_nat_rule_list_result", fields, reflect.TypeOf(PolicyNatRuleListResult{}), fieldNameMap, validators) @@ -69096,7 +68553,7 @@ func PolicyNatRuleStatisticsListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyNatRuleStatisticsPerEnforcementPointBindingType), reflect.TypeOf([]PolicyNatRuleStatisticsPerEnforcementPoint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyNatRuleStatisticsPerEnforcementPointBindingType), reflect.TypeOf([]PolicyNatRuleStatisticsPerEnforcementPoint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_nat_rule_statistics_list_result", fields, reflect.TypeOf(PolicyNatRuleStatisticsListResult{}), fieldNameMap, validators) @@ -69149,7 +68606,7 @@ func PolicyNatRuleStatisticsPerLogicalRouterListResultBindingType() bindings.Bin fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyNatRuleStatisticsPerLogicalRouterBindingType), reflect.TypeOf([]PolicyNatRuleStatisticsPerLogicalRouter{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyNatRuleStatisticsPerLogicalRouterBindingType), reflect.TypeOf([]PolicyNatRuleStatisticsPerLogicalRouter{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_nat_rule_statistics_per_logical_router_list_result", fields, reflect.TypeOf(PolicyNatRuleStatisticsPerLogicalRouterListResult{}), fieldNameMap, validators) @@ -69187,7 +68644,7 @@ func PolicyNonCompliantConfigBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.policy_non_compliant_config", fields, reflect.TypeOf(PolicyNonCompliantConfig{}), fieldNameMap, validators) } -func PolicyPimConfigBindingType() bindings.BindingType { +func PolicyPimProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) @@ -69237,10 +68694,10 @@ func PolicyPimConfigBindingType() bindings.BindingType { fields["rp_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["rp_address"] = "RpAddress" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_pim_config", fields, reflect.TypeOf(PolicyPimConfig{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.policy_pim_profile", fields, reflect.TypeOf(PolicyPimProfile{}), fieldNameMap, validators) } -func PolicyPimConfigListResultBindingType() bindings.BindingType { +func PolicyPimProfileListResultBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) @@ -69257,10 +68714,10 @@ func PolicyPimConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyPimConfigBindingType), reflect.TypeOf([]PolicyPimConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyPimProfileBindingType), reflect.TypeOf([]PolicyPimProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.policy_pim_config_list_result", fields, reflect.TypeOf(PolicyPimConfigListResult{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.policy_pim_profile_list_result", fields, reflect.TypeOf(PolicyPimProfileListResult{}), fieldNameMap, validators) } func PolicyRealizedResourceBindingType() bindings.BindingType { @@ -69316,7 +68773,7 @@ func PolicyRealizedResourceBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_realized_resource", fields, reflect.TypeOf(PolicyRealizedResource{}), fieldNameMap, validators) @@ -69435,7 +68892,7 @@ func PolicyResourceReferenceForEPListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyResourceReferenceForEPBindingType), reflect.TypeOf([]PolicyResourceReferenceForEP{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyResourceReferenceForEPBindingType), reflect.TypeOf([]PolicyResourceReferenceForEP{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_resource_reference_for_EP_list_result", fields, reflect.TypeOf(PolicyResourceReferenceForEPListResult{}), fieldNameMap, validators) @@ -69458,7 +68915,7 @@ func PolicyResourceReferenceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyResourceReferenceBindingType), reflect.TypeOf([]PolicyResourceReference{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyResourceReferenceBindingType), reflect.TypeOf([]PolicyResourceReference{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_resource_reference_list_result", fields, reflect.TypeOf(PolicyResourceReferenceListResult{}), fieldNameMap, validators) @@ -69537,13 +68994,13 @@ func PolicyServiceChainBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["failure_policy"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["failure_policy"] = "FailurePolicy" - fields["forward_path_service_profiles"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["forward_path_service_profiles"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["forward_path_service_profiles"] = "ForwardPathServiceProfiles" fields["path_selection_policy"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["path_selection_policy"] = "PathSelectionPolicy" fields["reverse_path_service_profiles"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["reverse_path_service_profiles"] = "ReversePathServiceProfiles" - fields["service_segment_path"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["service_segment_path"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["service_segment_path"] = "ServiceSegmentPath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_service_chain", fields, reflect.TypeOf(PolicyServiceChain{}), fieldNameMap, validators) @@ -69566,7 +69023,7 @@ func PolicyServiceChainListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyServiceChainBindingType), reflect.TypeOf([]PolicyServiceChain{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyServiceChainBindingType), reflect.TypeOf([]PolicyServiceChain{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_service_chain_list_result", fields, reflect.TypeOf(PolicyServiceChainListResult{}), fieldNameMap, validators) @@ -69621,25 +69078,25 @@ func PolicyServiceInstanceBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["deployment_mode"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["deployment_mode"] = "DeploymentMode" - fields["partner_service_name"] = bindings.NewStringType() + fields["partner_service_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["partner_service_name"] = "PartnerServiceName" fields["transport_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["transport_type"] = "TransportType" - fields["attributes"] = bindings.NewListType(bindings.NewReferenceType(AttributeBindingType), reflect.TypeOf([]Attribute{})) + fields["attributes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(AttributeBindingType), reflect.TypeOf([]Attribute{}))) fieldNameMap["attributes"] = "Attributes" - fields["compute_id"] = bindings.NewStringType() + fields["compute_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["compute_id"] = "ComputeId" fields["context_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["context_id"] = "ContextId" - fields["deployment_spec_name"] = bindings.NewStringType() + fields["deployment_spec_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["deployment_spec_name"] = "DeploymentSpecName" - fields["deployment_template_name"] = bindings.NewStringType() + fields["deployment_template_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["deployment_template_name"] = "DeploymentTemplateName" fields["failure_policy"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["failure_policy"] = "FailurePolicy" fields["primary_gateway_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["primary_gateway_address"] = "PrimaryGatewayAddress" - fields["primary_interface_mgmt_ip"] = bindings.NewStringType() + fields["primary_interface_mgmt_ip"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["primary_interface_mgmt_ip"] = "PrimaryInterfaceMgmtIp" fields["primary_interface_network"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["primary_interface_network"] = "PrimaryInterfaceNetwork" @@ -69657,7 +69114,7 @@ func PolicyServiceInstanceBindingType() bindings.BindingType { fieldNameMap["secondary_portgroup_id"] = "SecondaryPortgroupId" fields["secondary_subnet_mask"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["secondary_subnet_mask"] = "SecondarySubnetMask" - fields["storage_id"] = bindings.NewStringType() + fields["storage_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["storage_id"] = "StorageId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_service_instance", fields, reflect.TypeOf(PolicyServiceInstance{}), fieldNameMap, validators) @@ -69680,7 +69137,7 @@ func PolicyServiceInstanceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyServiceInstanceBindingType), reflect.TypeOf([]PolicyServiceInstance{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyServiceInstanceBindingType), reflect.TypeOf([]PolicyServiceInstance{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_service_instance_list_result", fields, reflect.TypeOf(PolicyServiceInstanceListResult{}), fieldNameMap, validators) @@ -69781,7 +69238,7 @@ func PolicyServiceProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyServiceProfileBindingType), reflect.TypeOf([]PolicyServiceProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyServiceProfileBindingType), reflect.TypeOf([]PolicyServiceProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_service_profile_list_result", fields, reflect.TypeOf(PolicyServiceProfileListResult{}), fieldNameMap, validators) @@ -69790,11 +69247,11 @@ func PolicyServiceProfileListResultBindingType() bindings.BindingType { func PolicySubAttributesBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["datatype"] = bindings.NewStringType() + fields["datatype"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["datatype"] = "Datatype" - fields["key"] = bindings.NewStringType() + fields["key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["key"] = "Key" - fields["value"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["value"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_sub_attributes", fields, reflect.TypeOf(PolicySubAttributes{}), fieldNameMap, validators) @@ -69803,9 +69260,9 @@ func PolicySubAttributesBindingType() bindings.BindingType { func PolicyTimeIntervalValueBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["end_interval"] = bindings.NewStringType() + fields["end_interval"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["end_interval"] = "EndInterval" - fields["start_interval"] = bindings.NewStringType() + fields["start_interval"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["start_interval"] = "StartInterval" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_time_interval_value", fields, reflect.TypeOf(PolicyTimeIntervalValue{}), fieldNameMap, validators) @@ -70046,7 +69503,7 @@ func PolicyTransportZoneListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyTransportZoneBindingType), reflect.TypeOf([]PolicyTransportZone{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyTransportZoneBindingType), reflect.TypeOf([]PolicyTransportZone{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_transport_zone_list_result", fields, reflect.TypeOf(PolicyTransportZoneListResult{}), fieldNameMap, validators) @@ -70101,7 +69558,7 @@ func PolicyUrlCategorizationConfigBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["context_profiles"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["context_profiles"] = "ContextProfiles" - fields["enabled"] = bindings.NewBooleanType() + fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" fields["update_frequency"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["update_frequency"] = "UpdateFrequency" @@ -70156,9 +69613,9 @@ func PolicyUrlCategoryBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["category_id"] = bindings.NewIntegerType() + fields["category_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["category_id"] = "CategoryId" - fields["category_name"] = bindings.NewStringType() + fields["category_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["category_name"] = "CategoryName" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_url_category", fields, reflect.TypeOf(PolicyUrlCategory{}), fieldNameMap, validators) @@ -70181,7 +69638,7 @@ func PolicyUrlCategoryListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyUrlCategoryBindingType), reflect.TypeOf([]PolicyUrlCategory{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyUrlCategoryBindingType), reflect.TypeOf([]PolicyUrlCategory{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_url_category_list_result", fields, reflect.TypeOf(PolicyUrlCategoryListResult{}), fieldNameMap, validators) @@ -70234,13 +69691,13 @@ func PolicyUrlReputationSeverityBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["max_reputation"] = bindings.NewIntegerType() + fields["max_reputation"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["max_reputation"] = "MaxReputation" - fields["min_reputation"] = bindings.NewIntegerType() + fields["min_reputation"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["min_reputation"] = "MinReputation" - fields["name"] = bindings.NewStringType() + fields["name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["name"] = "Name" - fields["reputation_severity_id"] = bindings.NewIntegerType() + fields["reputation_severity_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["reputation_severity_id"] = "ReputationSeverityId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_url_reputation_severity", fields, reflect.TypeOf(PolicyUrlReputationSeverity{}), fieldNameMap, validators) @@ -70263,7 +69720,7 @@ func PolicyUrlReputationSeverityListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyUrlReputationSeverityBindingType), reflect.TypeOf([]PolicyUrlReputationSeverity{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyUrlReputationSeverityBindingType), reflect.TypeOf([]PolicyUrlReputationSeverity{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.policy_url_reputation_severity_list_result", fields, reflect.TypeOf(PolicyUrlReputationSeverityListResult{}), fieldNameMap, validators) @@ -70276,7 +69733,7 @@ func PoolMemberSettingBindingType() bindings.BindingType { fieldNameMap["admin_state"] = "AdminState" fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["port"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["port"] = "Port" @@ -70394,7 +69851,7 @@ func PortDiscoveryProfileBindingMapListResultBindingType() bindings.BindingType fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PortDiscoveryProfileBindingMapBindingType), reflect.TypeOf([]PortDiscoveryProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PortDiscoveryProfileBindingMapBindingType), reflect.TypeOf([]PortDiscoveryProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.port_discovery_profile_binding_map_list_result", fields, reflect.TypeOf(PortDiscoveryProfileBindingMapListResult{}), fieldNameMap, validators) @@ -70447,7 +69904,7 @@ func PortMirroringInstanceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["destination_group"] = bindings.NewStringType() + fields["destination_group"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["destination_group"] = "DestinationGroup" fields["direction"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["direction"] = "Direction" @@ -70474,7 +69931,7 @@ func PortMirroringInstanceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PortMirroringInstanceBindingType), reflect.TypeOf([]PortMirroringInstance{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PortMirroringInstanceBindingType), reflect.TypeOf([]PortMirroringInstance{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.port_mirroring_instance_list_result", fields, reflect.TypeOf(PortMirroringInstanceListResult{}), fieldNameMap, validators) @@ -70527,7 +69984,7 @@ func PortMirroringProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["destination_group"] = bindings.NewStringType() + fields["destination_group"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["destination_group"] = "DestinationGroup" fields["direction"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["direction"] = "Direction" @@ -70562,7 +70019,7 @@ func PortMirroringProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PortMirroringProfileBindingType), reflect.TypeOf([]PortMirroringProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PortMirroringProfileBindingType), reflect.TypeOf([]PortMirroringProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.port_mirroring_profile_list_result", fields, reflect.TypeOf(PortMirroringProfileListResult{}), fieldNameMap, validators) @@ -70640,7 +70097,7 @@ func PortMonitoringProfileBindingMapListResultBindingType() bindings.BindingType fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PortMonitoringProfileBindingMapBindingType), reflect.TypeOf([]PortMonitoringProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PortMonitoringProfileBindingMapBindingType), reflect.TypeOf([]PortMonitoringProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.port_monitoring_profile_binding_map_list_result", fields, reflect.TypeOf(PortMonitoringProfileBindingMapListResult{}), fieldNameMap, validators) @@ -70716,7 +70173,7 @@ func PortQosProfileBindingMapListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PortQosProfileBindingMapBindingType), reflect.TypeOf([]PortQosProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PortQosProfileBindingMapBindingType), reflect.TypeOf([]PortQosProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.port_qos_profile_binding_map_list_result", fields, reflect.TypeOf(PortQosProfileBindingMapListResult{}), fieldNameMap, validators) @@ -70794,7 +70251,7 @@ func PortSecurityProfileBindingMapListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PortSecurityProfileBindingMapBindingType), reflect.TypeOf([]PortSecurityProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PortSecurityProfileBindingMapBindingType), reflect.TypeOf([]PortSecurityProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.port_security_profile_binding_map_list_result", fields, reflect.TypeOf(PortSecurityProfileBindingMapListResult{}), fieldNameMap, validators) @@ -70809,7 +70266,7 @@ func PrefixEntryBindingType() bindings.BindingType { fieldNameMap["ge"] = "Ge" fields["le"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["le"] = "Le" - fields["network"] = bindings.NewStringType() + fields["network"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["network"] = "Network" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.prefix_entry", fields, reflect.TypeOf(PrefixEntry{}), fieldNameMap, validators) @@ -70862,7 +70319,7 @@ func PrefixListBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["prefixes"] = bindings.NewListType(bindings.NewReferenceType(PrefixEntryBindingType), reflect.TypeOf([]PrefixEntry{})) + fields["prefixes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PrefixEntryBindingType), reflect.TypeOf([]PrefixEntry{}))) fieldNameMap["prefixes"] = "Prefixes" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.prefix_list", fields, reflect.TypeOf(PrefixList{}), fieldNameMap, validators) @@ -70885,7 +70342,7 @@ func PrefixListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PrefixListBindingType), reflect.TypeOf([]PrefixList{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PrefixListBindingType), reflect.TypeOf([]PrefixList{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.prefix_list_result", fields, reflect.TypeOf(PrefixListResult{}), fieldNameMap, validators) @@ -70938,7 +70395,7 @@ func ProfileBindingMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["profile_path"] = bindings.NewStringType() + fields["profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["profile_path"] = "ProfilePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.profile_binding_map", fields, reflect.TypeOf(ProfileBindingMap{}), fieldNameMap, validators) @@ -70949,7 +70406,7 @@ func PropertyItemBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["condition"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["condition"] = "Condition" - fields["field"] = bindings.NewStringType() + fields["field"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field"] = "Field" fields["heading"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["heading"] = "Heading" @@ -70961,7 +70418,7 @@ func PropertyItemBindingType() bindings.BindingType { fieldNameMap["render_configuration"] = "RenderConfiguration" fields["separator"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["separator"] = "Separator" - fields["type"] = bindings.NewStringType() + fields["type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["type"] = "Type_" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.property_item", fields, reflect.TypeOf(PropertyItem{}), fieldNameMap, validators) @@ -70970,7 +70427,7 @@ func PropertyItemBindingType() bindings.BindingType { func QosBaseRateLimiterBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["enabled"] = bindings.NewBooleanType() + fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -71114,7 +70571,7 @@ func QosProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(QosProfileBindingType), reflect.TypeOf([]QosProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(QosProfileBindingType), reflect.TypeOf([]QosProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.qos_profile_list_result", fields, reflect.TypeOf(QosProfileListResult{}), fieldNameMap, validators) @@ -71199,9 +70656,9 @@ func ReactionBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["actions"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ActionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["actions"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ActionBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["actions"] = "Actions" - fields["events"] = bindings.NewListType(bindings.NewReferenceType(EventBindingType), reflect.TypeOf([]Event{})) + fields["events"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(EventBindingType), reflect.TypeOf([]Event{}))) fieldNameMap["events"] = "Events" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.reaction", fields, reflect.TypeOf(Reaction{}), fieldNameMap, validators) @@ -71224,7 +70681,7 @@ func ReactionListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ReactionBindingType), reflect.TypeOf([]Reaction{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ReactionBindingType), reflect.TypeOf([]Reaction{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.reaction_list_result", fields, reflect.TypeOf(ReactionListResult{}), fieldNameMap, validators) @@ -71283,7 +70740,7 @@ func RealizedEnforcementPointBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["realized_firewalls"] = bindings.NewOptionalType(bindings.NewReferenceType(RealizedFirewallsBindingType)) fieldNameMap["realized_firewalls"] = "RealizedFirewalls" @@ -71371,7 +70828,7 @@ func RealizedFirewallBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.realized_firewall", fields, reflect.TypeOf(RealizedFirewall{}), fieldNameMap, validators) @@ -71430,7 +70887,7 @@ func RealizedFirewallRuleBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["action"] = "Action" @@ -71507,7 +70964,7 @@ func RealizedFirewallSectionBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.realized_firewall_section", fields, reflect.TypeOf(RealizedFirewallSection{}), fieldNameMap, validators) @@ -71589,7 +71046,7 @@ func RealizedFirewallsBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["realized_firewalls"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(RealizedFirewallBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["realized_firewalls"] = "RealizedFirewalls" @@ -71597,92 +71054,6 @@ func RealizedFirewallsBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.realized_firewalls", fields, reflect.TypeOf(RealizedFirewalls{}), fieldNameMap, validators) } -func RealizedGlobalManagerBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_revision"] = "Revision" - fields["_create_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_create_time"] = "CreateTime" - fields["_create_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_create_user"] = "CreateUser" - fields["_last_modified_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_last_modified_time"] = "LastModifiedTime" - fields["_last_modified_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_last_modified_user"] = "LastModifiedUser" - fields["_protection"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_protection"] = "Protection" - fields["_system_owned"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["_system_owned"] = "SystemOwned" - fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["description"] = "Description" - fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["display_name"] = "DisplayName" - fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["id"] = "Id" - fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["resource_type"] = "ResourceType" - fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) - fieldNameMap["tags"] = "Tags" - fields["parent_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["parent_path"] = "ParentPath" - fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["path"] = "Path" - fields["relative_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["relative_path"] = "RelativePath" - fields["unique_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["unique_id"] = "UniqueId" - fields["alarms"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyAlarmResourceBindingType), reflect.TypeOf([]PolicyAlarmResource{}))) - fieldNameMap["alarms"] = "Alarms" - fields["intent_reference"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["intent_reference"] = "IntentReference" - fields["realization_api"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["realization_api"] = "RealizationApi" - fields["realization_specific_identifier"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["realization_specific_identifier"] = "RealizationSpecificIdentifier" - fields["runtime_error"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["runtime_error"] = "RuntimeError" - fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() - fieldNameMap["state"] = "State" - fields["cluster_config"] = bindings.NewOptionalType(bindings.NewReferenceType(GlobalManagerClusterRealizedStateBindingType)) - fieldNameMap["cluster_config"] = "ClusterConfig" - fields["tasks"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(RealizedManagementTaskBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) - fieldNameMap["tasks"] = "Tasks" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.realized_global_manager", fields, reflect.TypeOf(RealizedGlobalManager{}), fieldNameMap, validators) -} - -func RealizedGlobalManagerListResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["result_count"] = "ResultCount" - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["sort_ascending"] = "SortAscending" - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RealizedGlobalManagerBindingType), reflect.TypeOf([]RealizedGlobalManager{})) - fieldNameMap["results"] = "Results" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.realized_global_manager_list_result", fields, reflect.TypeOf(RealizedGlobalManagerListResult{}), fieldNameMap, validators) -} - func RealizedGroupBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -71736,7 +71107,7 @@ func RealizedGroupBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.realized_group", fields, reflect.TypeOf(RealizedGroup{}), fieldNameMap, validators) @@ -71795,7 +71166,7 @@ func RealizedGroupsBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["realized_groups"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(RealizedGroupBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["realized_groups"] = "RealizedGroups" @@ -71856,7 +71227,7 @@ func RealizedLogicalPortBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["logical_port_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["logical_port_id"] = "LogicalPortId" @@ -71919,7 +71290,7 @@ func RealizedLogicalSwitchBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["logical_switch_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["logical_switch_id"] = "LogicalSwitchId" @@ -71929,25 +71300,6 @@ func RealizedLogicalSwitchBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.realized_logical_switch", fields, reflect.TypeOf(RealizedLogicalSwitch{}), fieldNameMap, validators) } -func RealizedManagementTaskBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["action"] = bindings.NewStringType() - fieldNameMap["action"] = "Action" - fields["end_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["end_time"] = "EndTime" - fields["result"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result"] = "Result" - fields["result_description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["result_description"] = "ResultDescription" - fields["start_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["start_time"] = "StartTime" - fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["state"] = "State" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.realized_management_task", fields, reflect.TypeOf(RealizedManagementTask{}), fieldNameMap, validators) -} - func RealizedNSGroupBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -72003,7 +71355,7 @@ func RealizedNSGroupBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.realized_NS_group", fields, reflect.TypeOf(RealizedNSGroup{}), fieldNameMap, validators) @@ -72062,7 +71414,7 @@ func RealizedNSGroupMemberEvaluationBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["logical_ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RealizedLogicalPortBindingType), reflect.TypeOf([]RealizedLogicalPort{}))) fieldNameMap["logical_ports"] = "LogicalPorts" @@ -72131,7 +71483,7 @@ func RealizedNSServiceBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.realized_NS_service", fields, reflect.TypeOf(RealizedNSService{}), fieldNameMap, validators) @@ -72192,7 +71544,7 @@ func RealizedSecurityGroupBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.realized_security_group", fields, reflect.TypeOf(RealizedSecurityGroup{}), fieldNameMap, validators) @@ -72274,7 +71626,7 @@ func RealizedSecurityGroupMemberEvaluationBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["member_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["member_count"] = "MemberCount" @@ -72337,7 +71689,7 @@ func RealizedServiceBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.realized_service", fields, reflect.TypeOf(RealizedService{}), fieldNameMap, validators) @@ -72396,98 +71748,12 @@ func RealizedServicesBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() - fieldNameMap["state"] = "State" - fields["realized_services"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(RealizedServiceBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) - fieldNameMap["realized_services"] = "RealizedServices" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.realized_services", fields, reflect.TypeOf(RealizedServices{}), fieldNameMap, validators) -} - -func RealizedSiteBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_revision"] = "Revision" - fields["_create_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_create_time"] = "CreateTime" - fields["_create_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_create_user"] = "CreateUser" - fields["_last_modified_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_last_modified_time"] = "LastModifiedTime" - fields["_last_modified_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_last_modified_user"] = "LastModifiedUser" - fields["_protection"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_protection"] = "Protection" - fields["_system_owned"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["_system_owned"] = "SystemOwned" - fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["description"] = "Description" - fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["display_name"] = "DisplayName" - fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["id"] = "Id" - fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["resource_type"] = "ResourceType" - fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) - fieldNameMap["tags"] = "Tags" - fields["parent_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["parent_path"] = "ParentPath" - fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["path"] = "Path" - fields["relative_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["relative_path"] = "RelativePath" - fields["unique_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["unique_id"] = "UniqueId" - fields["alarms"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyAlarmResourceBindingType), reflect.TypeOf([]PolicyAlarmResource{}))) - fieldNameMap["alarms"] = "Alarms" - fields["intent_reference"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["intent_reference"] = "IntentReference" - fields["realization_api"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["realization_api"] = "RealizationApi" - fields["realization_specific_identifier"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["realization_specific_identifier"] = "RealizationSpecificIdentifier" - fields["runtime_error"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["runtime_error"] = "RuntimeError" - fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" - fields["cluster_config"] = bindings.NewOptionalType(bindings.NewReferenceType(SiteClusterRealizedStateBindingType)) - fieldNameMap["cluster_config"] = "ClusterConfig" - fields["tasks"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(RealizedManagementTaskBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) - fieldNameMap["tasks"] = "Tasks" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.realized_site", fields, reflect.TypeOf(RealizedSite{}), fieldNameMap, validators) -} - -func RealizedSiteListResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["result_count"] = "ResultCount" - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["sort_ascending"] = "SortAscending" - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RealizedSiteBindingType), reflect.TypeOf([]RealizedSite{})) - fieldNameMap["results"] = "Results" + fields["realized_services"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(RealizedServiceBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) + fieldNameMap["realized_services"] = "RealizedServices" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.realized_site_list_result", fields, reflect.TypeOf(RealizedSiteListResult{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.realized_services", fields, reflect.TypeOf(RealizedServices{}), fieldNameMap, validators) } func RealizedVirtualMachineBindingType() bindings.BindingType { @@ -72543,7 +71809,7 @@ func RealizedVirtualMachineBindingType() bindings.BindingType { fieldNameMap["runtime_error"] = "RuntimeError" fields["runtime_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["runtime_status"] = "RuntimeStatus" - fields["state"] = bindings.NewStringType() + fields["state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["state"] = "State" fields["compute_ids"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["compute_ids"] = "ComputeIds" @@ -72580,42 +71846,6 @@ func RealizedVirtualMachineListResultBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.realized_virtual_machine_list_result", fields, reflect.TypeOf(RealizedVirtualMachineListResult{}), fieldNameMap, validators) } -func RecommendedFeaturePermissionBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["recommended_permissions"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) - fieldNameMap["recommended_permissions"] = "RecommendedPermissions" - fields["src_features"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) - fieldNameMap["src_features"] = "SrcFeatures" - fields["target_feature"] = bindings.NewStringType() - fieldNameMap["target_feature"] = "TargetFeature" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.recommended_feature_permission", fields, reflect.TypeOf(RecommendedFeaturePermission{}), fieldNameMap, validators) -} - -func RecommendedFeaturePermissionListResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["result_count"] = "ResultCount" - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["sort_ascending"] = "SortAscending" - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RecommendedFeaturePermissionBindingType), reflect.TypeOf([]RecommendedFeaturePermission{})) - fieldNameMap["results"] = "Results" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.recommended_feature_permission_list_result", fields, reflect.TypeOf(RecommendedFeaturePermissionListResult{}), fieldNameMap, validators) -} - func RedirectionPolicyBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -72716,7 +71946,7 @@ func RedirectionPolicyListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RedirectionPolicyBindingType), reflect.TypeOf([]RedirectionPolicy{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RedirectionPolicyBindingType), reflect.TypeOf([]RedirectionPolicy{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.redirection_policy_list_result", fields, reflect.TypeOf(RedirectionPolicyListResult{}), fieldNameMap, validators) @@ -72826,7 +72056,7 @@ func RedirectionRuleListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RedirectionRuleBindingType), reflect.TypeOf([]RedirectionRule{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RedirectionRuleBindingType), reflect.TypeOf([]RedirectionRule{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.redirection_rule_list_result", fields, reflect.TypeOf(RedirectionRuleListResult{}), fieldNameMap, validators) @@ -72835,7 +72065,7 @@ func RedirectionRuleListResultBindingType() bindings.BindingType { func RegistrationTokenBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["roles"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["roles"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["roles"] = "Roles" fields["token"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["token"] = "Token" @@ -72865,7 +72095,7 @@ func RelatedApiErrorBindingType() bindings.BindingType { func RelatedAttributeBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["attribute"] = bindings.NewStringType() + fields["attribute"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["attribute"] = "Attribute" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.related_attribute", fields, reflect.TypeOf(RelatedAttribute{}), fieldNameMap, validators) @@ -72874,9 +72104,9 @@ func RelatedAttributeBindingType() bindings.BindingType { func RelatedAttributeConditionalExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["condition"] = bindings.NewReferenceType(ConditionalValueConstraintExpressionBindingType) + fields["condition"] = bindings.NewOptionalType(bindings.NewReferenceType(ConditionalValueConstraintExpressionBindingType)) fieldNameMap["condition"] = "Condition" - fields["related_attribute"] = bindings.NewReferenceType(RelatedAttributeBindingType) + fields["related_attribute"] = bindings.NewOptionalType(bindings.NewReferenceType(RelatedAttributeBindingType)) fieldNameMap["related_attribute"] = "RelatedAttribute" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -72915,13 +72145,13 @@ func RelatedAttributeConditionalExpressionBindingType() bindings.BindingType { func RemoteFileServerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["directory_path"] = bindings.NewStringType() + fields["directory_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["directory_path"] = "DirectoryPath" fields["port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["port"] = "Port" - fields["protocol"] = bindings.NewReferenceType(FileTransferProtocolBindingType) + fields["protocol"] = bindings.NewOptionalType(bindings.NewReferenceType(FileTransferProtocolBindingType)) fieldNameMap["protocol"] = "Protocol" - fields["server"] = bindings.NewStringType() + fields["server"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["server"] = "Server" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.remote_file_server", fields, reflect.TypeOf(RemoteFileServer{}), fieldNameMap, validators) @@ -72932,9 +72162,9 @@ func RemoteServerFingerprintBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["port"] = "Port" - fields["server"] = bindings.NewStringType() + fields["server"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["server"] = "Server" - fields["ssh_fingerprint"] = bindings.NewStringType() + fields["ssh_fingerprint"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ssh_fingerprint"] = "SshFingerprint" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.remote_server_fingerprint", fields, reflect.TypeOf(RemoteServerFingerprint{}), fieldNameMap, validators) @@ -72945,7 +72175,7 @@ func RemoteServerFingerprintRequestBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["port"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["port"] = "Port" - fields["server"] = bindings.NewStringType() + fields["server"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["server"] = "Server" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.remote_server_fingerprint_request", fields, reflect.TypeOf(RemoteServerFingerprintRequest{}), fieldNameMap, validators) @@ -72984,7 +72214,7 @@ func ResourceBindingType() bindings.BindingType { func ResourceFieldPointerBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["field_pointer"] = bindings.NewStringType() + fields["field_pointer"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field_pointer"] = "FieldPointer" fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["path"] = "Path" @@ -72995,9 +72225,9 @@ func ResourceFieldPointerBindingType() bindings.BindingType { func ResourceInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["resource_ids"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["resource_ids"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["resource_ids"] = "ResourceIds" - fields["resource_type"] = bindings.NewStringType() + fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["resource_type"] = "ResourceType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.resource_info", fields, reflect.TypeOf(ResourceInfo{}), fieldNameMap, validators) @@ -73020,7 +72250,7 @@ func ResourceInfoListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(PolicyFineTuningResourceInfoBindingType), reflect.TypeOf([]PolicyFineTuningResourceInfo{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(PolicyFineTuningResourceInfoBindingType), reflect.TypeOf([]PolicyFineTuningResourceInfo{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.resource_info_list_result", fields, reflect.TypeOf(ResourceInfoListResult{}), fieldNameMap, validators) @@ -73042,9 +72272,9 @@ func ResourceLinkBindingType() bindings.BindingType { func ResourceOperationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["operation_types"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["operation_types"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["operation_types"] = "OperationTypes" - fields["resource_pointer"] = bindings.NewStringType() + fields["resource_pointer"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["resource_pointer"] = "ResourcePointer" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -73074,9 +72304,9 @@ func ResourceTagStatusBindingType() bindings.BindingType { fieldNameMap["details"] = "Details" fields["resource_display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["resource_display_name"] = "ResourceDisplayName" - fields["resource_id"] = bindings.NewStringType() + fields["resource_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["resource_id"] = "ResourceId" - fields["tag_status"] = bindings.NewStringType() + fields["tag_status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["tag_status"] = "TagStatus" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.resource_tag_status", fields, reflect.TypeOf(ResourceTagStatus{}), fieldNameMap, validators) @@ -73087,7 +72317,7 @@ func ResourceTypeTagStatusBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["resource_tag_status"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceTagStatusBindingType), reflect.TypeOf([]ResourceTagStatus{}))) fieldNameMap["resource_tag_status"] = "ResourceTagStatus" - fields["resource_type"] = bindings.NewStringType() + fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["resource_type"] = "ResourceType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.resource_type_tag_status", fields, reflect.TypeOf(ResourceTypeTagStatus{}), fieldNameMap, validators) @@ -73098,7 +72328,7 @@ func RestoreConfigurationBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["passphrase"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["passphrase"] = "Passphrase" - fields["remote_file_server"] = bindings.NewReferenceType(RemoteFileServerBindingType) + fields["remote_file_server"] = bindings.NewOptionalType(bindings.NewReferenceType(RemoteFileServerBindingType)) fieldNameMap["remote_file_server"] = "RemoteFileServer" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.restore_configuration", fields, reflect.TypeOf(RestoreConfiguration{}), fieldNameMap, validators) @@ -73137,7 +72367,7 @@ func RevisionedResourceBindingType() bindings.BindingType { func RoleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["role"] = bindings.NewStringType() + fields["role"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["role"] = "Role" fields["role_display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["role_display_name"] = "RoleDisplayName" @@ -73211,7 +72441,7 @@ func RoleBindingListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RoleBindingBindingType), reflect.TypeOf([]RoleBinding{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RoleBindingBindingType), reflect.TypeOf([]RoleBinding{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.role_binding_list_result", fields, reflect.TypeOf(RoleBindingListResult{}), fieldNameMap, validators) @@ -73234,7 +72464,7 @@ func RoleListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RoleBindingType), reflect.TypeOf([]Role{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RoleBindingType), reflect.TypeOf([]Role{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.role_list_result", fields, reflect.TypeOf(RoleListResult{}), fieldNameMap, validators) @@ -73273,7 +72503,7 @@ func RoleWithFeaturesBindingType() bindings.BindingType { fieldNameMap["resource_type"] = "ResourceType" fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["features"] = bindings.NewListType(bindings.NewReferenceType(FeaturePermissionBindingType), reflect.TypeOf([]FeaturePermission{})) + fields["features"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(FeaturePermissionBindingType), reflect.TypeOf([]FeaturePermission{}))) fieldNameMap["features"] = "Features" fields["role"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["role"] = "Role" @@ -73298,7 +72528,7 @@ func RoleWithFeaturesListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RoleWithFeaturesBindingType), reflect.TypeOf([]RoleWithFeatures{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RoleWithFeaturesBindingType), reflect.TypeOf([]RoleWithFeatures{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.role_with_features_list_result", fields, reflect.TypeOf(RoleWithFeaturesListResult{}), fieldNameMap, validators) @@ -73307,9 +72537,9 @@ func RoleWithFeaturesListResultBindingType() bindings.BindingType { func RouteAdvertisementRuleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["action"] = bindings.NewStringType() + fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["action"] = "Action" - fields["name"] = bindings.NewStringType() + fields["name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["name"] = "Name" fields["prefix_operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["prefix_operator"] = "PrefixOperator" @@ -73324,7 +72554,7 @@ func RouteAdvertisementRuleBindingType() bindings.BindingType { func RouteAggregationEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["prefix"] = bindings.NewStringType() + fields["prefix"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["prefix"] = "Prefix" fields["summary_only"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["summary_only"] = "SummaryOnly" @@ -73337,7 +72567,7 @@ func RouteBasedIPSecVpnSessionBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["force_whitelisting"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["force_whitelisting"] = "ForceWhitelisting" - fields["tunnel_interfaces"] = bindings.NewListType(bindings.NewReferenceType(IPSecVpnTunnelInterfaceBindingType), reflect.TypeOf([]IPSecVpnTunnelInterface{})) + fields["tunnel_interfaces"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPSecVpnTunnelInterfaceBindingType), reflect.TypeOf([]IPSecVpnTunnelInterface{}))) fieldNameMap["tunnel_interfaces"] = "TunnelInterfaces" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -73395,11 +72625,11 @@ func RouteBasedIPSecVpnSessionBindingType() bindings.BindingType { fieldNameMap["enabled"] = "Enabled" fields["ike_profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ike_profile_path"] = "IkeProfilePath" - fields["local_endpoint_path"] = bindings.NewStringType() + fields["local_endpoint_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_endpoint_path"] = "LocalEndpointPath" - fields["peer_address"] = bindings.NewStringType() + fields["peer_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_address"] = "PeerAddress" - fields["peer_id"] = bindings.NewStringType() + fields["peer_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_id"] = "PeerId" fields["psk"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["psk"] = "Psk" @@ -73420,7 +72650,7 @@ func RouteBasedL3VpnSessionBindingType() bindings.BindingType { fieldNameMap["force_whitelisting"] = "ForceWhitelisting" fields["routing_config_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["routing_config_path"] = "RoutingConfigPath" - fields["tunnel_subnets"] = bindings.NewListType(bindings.NewReferenceType(TunnelSubnetBindingType), reflect.TypeOf([]TunnelSubnet{})) + fields["tunnel_subnets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TunnelSubnetBindingType), reflect.TypeOf([]TunnelSubnet{}))) fieldNameMap["tunnel_subnets"] = "TunnelSubnets" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -73450,7 +72680,7 @@ func RouteDetailsBindingType() bindings.BindingType { func RouteMapEntryBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["action"] = bindings.NewStringType() + fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["action"] = "Action" fields["community_list_matches"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(CommunityMatchCriteriaBindingType), reflect.TypeOf([]CommunityMatchCriteria{}))) fieldNameMap["community_list_matches"] = "CommunityListMatches" @@ -73535,7 +72765,7 @@ func RoutingTableBindingType() bindings.BindingType { fieldNameMap["count"] = "Count" fields["edge_node"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["edge_node"] = "EdgeNode" - fields["route_entries"] = bindings.NewListType(bindings.NewReferenceType(RoutingEntryBindingType), reflect.TypeOf([]RoutingEntry{})) + fields["route_entries"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RoutingEntryBindingType), reflect.TypeOf([]RoutingEntry{}))) fieldNameMap["route_entries"] = "RouteEntries" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.routing_table", fields, reflect.TypeOf(RoutingTable{}), fieldNameMap, validators) @@ -73569,7 +72799,7 @@ func RowListFieldBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["alias"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["alias"] = "Alias" - fields["path"] = bindings.NewStringType() + fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["path"] = "Path" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.row_list_field", fields, reflect.TypeOf(RowListField{}), fieldNameMap, validators) @@ -73679,7 +72909,7 @@ func RuleListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RuleBindingType), reflect.TypeOf([]Rule{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RuleBindingType), reflect.TypeOf([]Rule{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.rule_list_result", fields, reflect.TypeOf(RuleListResult{}), fieldNameMap, validators) @@ -73748,7 +72978,7 @@ func RuleStatisticsListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(RuleStatisticsForEnforcementPointBindingType), reflect.TypeOf([]RuleStatisticsForEnforcementPoint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RuleStatisticsForEnforcementPointBindingType), reflect.TypeOf([]RuleStatisticsForEnforcementPoint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.rule_statistics_list_result", fields, reflect.TypeOf(RuleStatisticsListResult{}), fieldNameMap, validators) @@ -73818,7 +73048,7 @@ func SIDataCounterBindingType() bindings.BindingType { fieldNameMap["dropped"] = "Dropped" fields["multicast_broadcast"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["multicast_broadcast"] = "MulticastBroadcast" - fields["total"] = bindings.NewIntegerType() + fields["total"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["total"] = "Total" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.SI_data_counter", fields, reflect.TypeOf(SIDataCounter{}), fieldNameMap, validators) @@ -73840,9 +73070,9 @@ func SIMacLearningCountersBindingType() bindings.BindingType { func SIPacketTypeAndCounterBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["counter"] = bindings.NewIntegerType() + fields["counter"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["counter"] = "Counter" - fields["packet_type"] = bindings.NewStringType() + fields["packet_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["packet_type"] = "PacketType" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.SI_packet_type_and_counter", fields, reflect.TypeOf(SIPacketTypeAndCounter{}), fieldNameMap, validators) @@ -73870,16 +73100,18 @@ func SIPacketsDroppedBySecurityBindingType() bindings.BindingType { func SVMDeploymentSpecBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["host_type"] = bindings.NewStringType() + fields["host_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["host_type"] = "HostType" fields["min_host_version"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["min_host_version"] = "MinHostVersion" fields["name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["name"] = "Name" - fields["ovf_url"] = bindings.NewStringType() + fields["ovf_url"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ovf_url"] = "OvfUrl" fields["service_form_factor"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["service_form_factor"] = "ServiceFormFactor" + fields["svm_version"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["svm_version"] = "SvmVersion" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.SVM_deployment_spec", fields, reflect.TypeOf(SVMDeploymentSpec{}), fieldNameMap, validators) } @@ -73901,7 +73133,7 @@ func SearchResponseBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType(nil, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType(nil, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.search_response", fields, reflect.TypeOf(SearchResponse{}), fieldNameMap, validators) @@ -74007,7 +73239,7 @@ func SecurityPolicyListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SecurityPolicyBindingType), reflect.TypeOf([]SecurityPolicy{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SecurityPolicyBindingType), reflect.TypeOf([]SecurityPolicy{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.security_policy_list_result", fields, reflect.TypeOf(SecurityPolicyListResult{}), fieldNameMap, validators) @@ -74056,7 +73288,7 @@ func SecurityPolicyStatisticsListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SecurityPolicyStatisticsForEnforcementPointBindingType), reflect.TypeOf([]SecurityPolicyStatisticsForEnforcementPoint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SecurityPolicyStatisticsForEnforcementPointBindingType), reflect.TypeOf([]SecurityPolicyStatisticsForEnforcementPoint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.security_policy_statistics_list_result", fields, reflect.TypeOf(SecurityPolicyStatisticsListResult{}), fieldNameMap, validators) @@ -74213,7 +73445,7 @@ func SecurityZoneBindingBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["security_zone_path"] = bindings.NewStringType() + fields["security_zone_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["security_zone_path"] = "SecurityZonePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.security_zone_binding", fields, reflect.TypeOf(SecurityZoneBinding{}), fieldNameMap, validators) @@ -74266,9 +73498,9 @@ func SecurityZoneRuleBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["action"] = bindings.NewStringType() + fields["action"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["action"] = "Action" - fields["destination"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["destination"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["destination"] = "Destination" fields["disabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["disabled"] = "Disabled" @@ -74278,9 +73510,9 @@ func SecurityZoneRuleBindingType() bindings.BindingType { fieldNameMap["notes"] = "Notes" fields["sequence_number"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["sequence_number"] = "SequenceNumber" - fields["services"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["services"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["services"] = "Services" - fields["source"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["source"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["source"] = "Source" fields["tag"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["tag"] = "Tag" @@ -74544,7 +73776,7 @@ func SegmentDiscoveryProfileBindingMapListResultBindingType() bindings.BindingTy fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SegmentDiscoveryProfileBindingMapBindingType), reflect.TypeOf([]SegmentDiscoveryProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SegmentDiscoveryProfileBindingMapBindingType), reflect.TypeOf([]SegmentDiscoveryProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_discovery_profile_binding_map_list_result", fields, reflect.TypeOf(SegmentDiscoveryProfileBindingMapListResult{}), fieldNameMap, validators) @@ -74553,7 +73785,7 @@ func SegmentDiscoveryProfileBindingMapListResultBindingType() bindings.BindingTy func SegmentExtraConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["config_pair"] = bindings.NewReferenceType(KeyValuePairBindingType) + fields["config_pair"] = bindings.NewOptionalType(bindings.NewReferenceType(KeyValuePairBindingType)) fieldNameMap["config_pair"] = "ConfigPair" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_extra_config", fields, reflect.TypeOf(SegmentExtraConfig{}), fieldNameMap, validators) @@ -74576,7 +73808,7 @@ func SegmentListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SegmentBindingType), reflect.TypeOf([]Segment{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SegmentBindingType), reflect.TypeOf([]Segment{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_list_result", fields, reflect.TypeOf(SegmentListResult{}), fieldNameMap, validators) @@ -74654,7 +73886,7 @@ func SegmentMonitoringProfileBindingMapListResultBindingType() bindings.BindingT fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SegmentMonitoringProfileBindingMapBindingType), reflect.TypeOf([]SegmentMonitoringProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SegmentMonitoringProfileBindingMapBindingType), reflect.TypeOf([]SegmentMonitoringProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_monitoring_profile_binding_map_list_result", fields, reflect.TypeOf(SegmentMonitoringProfileBindingMapListResult{}), fieldNameMap, validators) @@ -74742,7 +73974,7 @@ func SegmentPortListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SegmentPortBindingType), reflect.TypeOf([]SegmentPort{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SegmentPortBindingType), reflect.TypeOf([]SegmentPort{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_port_list_result", fields, reflect.TypeOf(SegmentPortListResult{}), fieldNameMap, validators) @@ -74841,7 +74073,7 @@ func SegmentQosProfileBindingMapListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SegmentQosProfileBindingMapBindingType), reflect.TypeOf([]SegmentQosProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SegmentQosProfileBindingMapBindingType), reflect.TypeOf([]SegmentQosProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_qos_profile_binding_map_list_result", fields, reflect.TypeOf(SegmentQosProfileBindingMapListResult{}), fieldNameMap, validators) @@ -74990,7 +74222,7 @@ func SegmentSecurityProfileBindingMapListResultBindingType() bindings.BindingTyp fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SegmentSecurityProfileBindingMapBindingType), reflect.TypeOf([]SegmentSecurityProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SegmentSecurityProfileBindingMapBindingType), reflect.TypeOf([]SegmentSecurityProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_security_profile_binding_map_list_result", fields, reflect.TypeOf(SegmentSecurityProfileBindingMapListResult{}), fieldNameMap, validators) @@ -75013,7 +74245,7 @@ func SegmentSecurityProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SegmentSecurityProfileBindingType), reflect.TypeOf([]SegmentSecurityProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SegmentSecurityProfileBindingType), reflect.TypeOf([]SegmentSecurityProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.segment_security_profile_list_result", fields, reflect.TypeOf(SegmentSecurityProfileListResult{}), fieldNameMap, validators) @@ -75068,7 +74300,7 @@ func SelectableResourceReferenceBindingType() bindings.BindingType { fieldNameMap["target_id"] = "TargetId" fields["target_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["target_type"] = "TargetType" - fields["selected"] = bindings.NewBooleanType() + fields["selected"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["selected"] = "Selected" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.selectable_resource_reference", fields, reflect.TypeOf(SelectableResourceReference{}), fieldNameMap, validators) @@ -75226,9 +74458,9 @@ func ServiceDefinitionBindingType() bindings.BindingType { fieldNameMap["tags"] = "Tags" fields["attachment_point"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["attachment_point"] = "AttachmentPoint" - fields["functionalities"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["functionalities"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["functionalities"] = "Functionalities" - fields["implementations"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["implementations"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["implementations"] = "Implementations" fields["on_failure_policy"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["on_failure_policy"] = "OnFailurePolicy" @@ -75240,7 +74472,7 @@ func ServiceDefinitionBindingType() bindings.BindingType { fieldNameMap["service_manager_id"] = "ServiceManagerId" fields["transports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["transports"] = "Transports" - fields["vendor_id"] = bindings.NewStringType() + fields["vendor_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["vendor_id"] = "VendorId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_definition", fields, reflect.TypeOf(ServiceDefinition{}), fieldNameMap, validators) @@ -75251,7 +74483,7 @@ func ServiceDeploymentSpecBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["deployment_specs"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SVMDeploymentSpecBindingType), reflect.TypeOf([]SVMDeploymentSpec{}))) fieldNameMap["deployment_specs"] = "DeploymentSpecs" - fields["deployment_template"] = bindings.NewListType(bindings.NewReferenceType(DeploymentTemplateBindingType), reflect.TypeOf([]DeploymentTemplate{})) + fields["deployment_template"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(DeploymentTemplateBindingType), reflect.TypeOf([]DeploymentTemplate{}))) fieldNameMap["deployment_template"] = "DeploymentTemplate" fields["nic_metadata_list"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(NicMetadataBindingType), reflect.TypeOf([]NicMetadata{}))) fieldNameMap["nic_metadata_list"] = "NicMetadataList" @@ -75329,7 +74561,7 @@ func ServiceEntryListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ServiceEntryBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ServiceEntryBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_entry_list_result", fields, reflect.TypeOf(ServiceEntryListResult{}), fieldNameMap, validators) @@ -75361,7 +74593,7 @@ func ServiceInsertionServiceListResultBindingType() bindings.BindingType { func ServiceInstanceEndpointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["service_interface_path"] = bindings.NewStringType() + fields["service_interface_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["service_interface_path"] = "ServiceInterfacePath" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -75407,7 +74639,7 @@ func ServiceInstanceEndpointBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["target_ips"] = bindings.NewListType(bindings.NewReferenceType(IPInfoBindingType), reflect.TypeOf([]IPInfo{})) + fields["target_ips"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPInfoBindingType), reflect.TypeOf([]IPInfo{}))) fieldNameMap["target_ips"] = "TargetIps" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_instance_endpoint", fields, reflect.TypeOf(ServiceInstanceEndpoint{}), fieldNameMap, validators) @@ -75430,7 +74662,7 @@ func ServiceInstanceEndpointListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ServiceInstanceEndpointBindingType), reflect.TypeOf([]ServiceInstanceEndpoint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ServiceInstanceEndpointBindingType), reflect.TypeOf([]ServiceInstanceEndpoint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_instance_endpoint_list_result", fields, reflect.TypeOf(ServiceInstanceEndpointListResult{}), fieldNameMap, validators) @@ -75483,7 +74715,7 @@ func ServiceInterfaceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["subnets"] = bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{})) + fields["subnets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{}))) fieldNameMap["subnets"] = "Subnets" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_interface", fields, reflect.TypeOf(ServiceInterface{}), fieldNameMap, validators) @@ -75506,7 +74738,7 @@ func ServiceInterfaceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ServiceInterfaceBindingType), reflect.TypeOf([]ServiceInterface{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ServiceInterfaceBindingType), reflect.TypeOf([]ServiceInterface{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_interface_list_result", fields, reflect.TypeOf(ServiceInterfaceListResult{}), fieldNameMap, validators) @@ -75529,7 +74761,7 @@ func ServiceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ServiceBindingType), reflect.TypeOf([]Service{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ServiceBindingType), reflect.TypeOf([]Service{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_list_result", fields, reflect.TypeOf(ServiceListResult{}), fieldNameMap, validators) @@ -75623,7 +74855,7 @@ func ServiceReferenceBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["partner_service_name"] = bindings.NewStringType() + fields["partner_service_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["partner_service_name"] = "PartnerServiceName" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_reference", fields, reflect.TypeOf(ServiceReference{}), fieldNameMap, validators) @@ -75646,7 +74878,7 @@ func ServiceReferenceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ServiceReferenceBindingType), reflect.TypeOf([]ServiceReference{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ServiceReferenceBindingType), reflect.TypeOf([]ServiceReference{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_reference_list_result", fields, reflect.TypeOf(ServiceReferenceListResult{}), fieldNameMap, validators) @@ -75701,7 +74933,7 @@ func ServiceSegmentBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["lr_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["lr_paths"] = "LrPaths" - fields["transport_zone_path"] = bindings.NewStringType() + fields["transport_zone_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["transport_zone_path"] = "TransportZonePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_segment", fields, reflect.TypeOf(ServiceSegment{}), fieldNameMap, validators) @@ -75724,7 +74956,7 @@ func ServiceSegmentListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(ServiceSegmentBindingType), reflect.TypeOf([]ServiceSegment{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ServiceSegmentBindingType), reflect.TypeOf([]ServiceSegment{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.service_segment_list_result", fields, reflect.TypeOf(ServiceSegmentListResult{}), fieldNameMap, validators) @@ -75747,7 +74979,7 @@ func SessionTimerProfileBindingListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SessionTimerProfileBindingMapBindingType), reflect.TypeOf([]SessionTimerProfileBindingMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SessionTimerProfileBindingMapBindingType), reflect.TypeOf([]SessionTimerProfileBindingMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.session_timer_profile_binding_list_result", fields, reflect.TypeOf(SessionTimerProfileBindingListResult{}), fieldNameMap, validators) @@ -75800,7 +75032,7 @@ func SessionTimerProfileBindingMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["profile_path"] = bindings.NewStringType() + fields["profile_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["profile_path"] = "ProfilePath" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.session_timer_profile_binding_map", fields, reflect.TypeOf(SessionTimerProfileBindingMap{}), fieldNameMap, validators) @@ -75891,61 +75123,6 @@ func SiteAllocationIndexForEdgeBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.site_allocation_index_for_edge", fields, reflect.TypeOf(SiteAllocationIndexForEdge{}), fieldNameMap, validators) } -func SiteClusterRealizedStateBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["cluster_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cluster_id"] = "ClusterId" - fields["cluster_nodes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SiteNodeRealizedStateBindingType), reflect.TypeOf([]SiteNodeRealizedState{}))) - fieldNameMap["cluster_nodes"] = "ClusterNodes" - fields["config_version"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["config_version"] = "ConfigVersion" - fields["vip"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["vip"] = "Vip" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.site_cluster_realized_state", fields, reflect.TypeOf(SiteClusterRealizedState{}), fieldNameMap, validators) -} - -func SiteDeploymentStateBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["cluster_nodes"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SiteNodeInfoBindingType), reflect.TypeOf([]SiteNodeInfo{}))) - fieldNameMap["cluster_nodes"] = "ClusterNodes" - fields["name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["name"] = "Name" - fields["site_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["site_id"] = "SiteId" - fields["version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["version"] = "Version" - fields["vip"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["vip"] = "Vip" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.site_deployment_state", fields, reflect.TypeOf(SiteDeploymentState{}), fieldNameMap, validators) -} - -func SiteDeploymentStateListResultBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["cursor"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["cursor"] = "Cursor" - fields["result_count"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["result_count"] = "ResultCount" - fields["sort_ascending"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["sort_ascending"] = "SortAscending" - fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SiteDeploymentStateBindingType), reflect.TypeOf([]SiteDeploymentState{})) - fieldNameMap["results"] = "Results" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.site_deployment_state_list_result", fields, reflect.TypeOf(SiteDeploymentStateListResult{}), fieldNameMap, validators) -} - func SiteFederationConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -75964,9 +75141,9 @@ func SiteFederationConfigBindingType() bindings.BindingType { func SiteInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["edge_cluster_paths"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["edge_cluster_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["edge_cluster_paths"] = "EdgeClusterPaths" - fields["site_path"] = bindings.NewStringType() + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["site_path"] = "SitePath" fields["transport_zone_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["transport_zone_paths"] = "TransportZonePaths" @@ -75991,7 +75168,7 @@ func SiteListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SiteBindingType), reflect.TypeOf([]Site{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SiteBindingType), reflect.TypeOf([]Site{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.site_list_result", fields, reflect.TypeOf(SiteListResult{}), fieldNameMap, validators) @@ -76000,7 +75177,7 @@ func SiteListResultBindingType() bindings.BindingType { func SiteNodeConnectionInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["fqdn"] = bindings.NewStringType() + fields["fqdn"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["fqdn"] = "Fqdn" fields["password"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["password"] = "Password" @@ -76012,26 +75189,59 @@ func SiteNodeConnectionInfoBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.site_node_connection_info", fields, reflect.TypeOf(SiteNodeConnectionInfo{}), fieldNameMap, validators) } -func SiteNodeInfoBindingType() bindings.BindingType { +func SiteOffBoardingStateBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["hostname"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["hostname"] = "Hostname" - fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["ip_address"] = "IpAddress" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.site_node_info", fields, reflect.TypeOf(SiteNodeInfo{}), fieldNameMap, validators) -} - -func SiteNodeRealizedStateBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["hostname"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["hostname"] = "Hostname" - fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["ip_address"] = "IpAddress" + fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) + fieldNameMap["_links"] = "Links" + fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_schema"] = "Schema" + fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) + fieldNameMap["_self"] = "Self" + fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_revision"] = "Revision" + fields["_create_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_create_time"] = "CreateTime" + fields["_create_user"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_create_user"] = "CreateUser" + fields["_last_modified_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["_last_modified_time"] = "LastModifiedTime" + fields["_last_modified_user"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_last_modified_user"] = "LastModifiedUser" + fields["_protection"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["_protection"] = "Protection" + fields["_system_owned"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["_system_owned"] = "SystemOwned" + fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["description"] = "Description" + fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["display_name"] = "DisplayName" + fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["id"] = "Id" + fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["resource_type"] = "ResourceType" + fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) + fieldNameMap["tags"] = "Tags" + fields["parent_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["parent_path"] = "ParentPath" + fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["path"] = "Path" + fields["relative_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["relative_path"] = "RelativePath" + fields["unique_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["unique_id"] = "UniqueId" + fields["children"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ChildPolicyConfigResourceBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) + fieldNameMap["children"] = "Children" + fields["marked_for_delete"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["marked_for_delete"] = "MarkedForDelete" + fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["overridden"] = "Overridden" + fields["message"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["message"] = "Message" + fields["status"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["status"] = "Status" var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.site_node_realized_state", fields, reflect.TypeOf(SiteNodeRealizedState{}), fieldNameMap, validators) + return bindings.NewStructType("com.vmware.nsx_policy.model.site_off_boarding_state", fields, reflect.TypeOf(SiteOffBoardingState{}), fieldNameMap, validators) } func SourceBindingType() bindings.BindingType { @@ -76046,11 +75256,11 @@ func SourceBindingType() bindings.BindingType { func SourceFieldEvaluationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["expected"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["expected"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["expected"] = "Expected" - fields["field_pointer"] = bindings.NewStringType() + fields["field_pointer"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["field_pointer"] = "FieldPointer" - fields["operator"] = bindings.NewStringType() + fields["operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operator"] = "Operator" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -76105,8 +75315,8 @@ func SpanBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["site_ids"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) - fieldNameMap["site_ids"] = "SiteIds" + fields["sites"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SpanSiteInfoBindingType), reflect.TypeOf([]SpanSiteInfo{}))) + fieldNameMap["sites"] = "Sites" fields["span_leader"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["span_leader"] = "SpanLeader" fields["span_resource"] = bindings.NewOptionalType(bindings.NewStringType()) @@ -76117,6 +75327,17 @@ func SpanBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.span", fields, reflect.TypeOf(Span{}), fieldNameMap, validators) } +func SpanSiteInfoBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["site_id"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_id"] = "SiteId" + fields["site_path"] = bindings.NewOptionalType(bindings.NewStringType()) + fieldNameMap["site_path"] = "SitePath" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.span_site_info", fields, reflect.TypeOf(SpanSiteInfo{}), fieldNameMap, validators) +} + func SpoofGuardProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -76164,7 +75385,7 @@ func SpoofGuardProfileBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["address_binding_whitelist"] = bindings.NewBooleanType() + fields["address_binding_whitelist"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["address_binding_whitelist"] = "AddressBindingWhitelist" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.spoof_guard_profile", fields, reflect.TypeOf(SpoofGuardProfile{}), fieldNameMap, validators) @@ -76187,7 +75408,7 @@ func SpoofGuardProfileListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(SpoofGuardProfileBindingType), reflect.TypeOf([]SpoofGuardProfile{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SpoofGuardProfileBindingType), reflect.TypeOf([]SpoofGuardProfile{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.spoof_guard_profile_list_result", fields, reflect.TypeOf(SpoofGuardProfileListResult{}), fieldNameMap, validators) @@ -76244,7 +75465,7 @@ func SslTrustObjectDataBindingType() bindings.BindingType { fieldNameMap["key_algo"] = "KeyAlgo" fields["passphrase"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["passphrase"] = "Passphrase" - fields["pem_encoded"] = bindings.NewStringType() + fields["pem_encoded"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["pem_encoded"] = "PemEncoded" fields["private_key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["private_key"] = "PrivateKey" @@ -76299,7 +75520,7 @@ func StandaloneHostIdfwConfigurationBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["idfw_enabled"] = bindings.NewBooleanType() + fields["idfw_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["idfw_enabled"] = "IdfwEnabled" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.standalone_host_idfw_configuration", fields, reflect.TypeOf(StandaloneHostIdfwConfiguration{}), fieldNameMap, validators) @@ -76314,7 +75535,7 @@ func StatItemBindingType() bindings.BindingType { fieldNameMap["tooltip"] = "Tooltip" fields["total"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["total"] = "Total" - fields["value"] = bindings.NewStringType() + fields["value"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["value"] = "Value" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.stat_item", fields, reflect.TypeOf(StatItem{}), fieldNameMap, validators) @@ -76367,9 +75588,9 @@ func StaticARPConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" - fields["mac_address"] = bindings.NewStringType() + fields["mac_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["mac_address"] = "MacAddress" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.static_ARP_config", fields, reflect.TypeOf(StaticARPConfig{}), fieldNameMap, validators) @@ -76437,8 +75658,10 @@ func StaticRouteBfdPeerBindingType() bindings.BindingType { fieldNameMap["bfd_profile_path"] = "BfdProfilePath" fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["peer_address"] = bindings.NewStringType() + fields["peer_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["peer_address"] = "PeerAddress" + fields["scope"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) + fieldNameMap["scope"] = "Scope" fields["source_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["source_addresses"] = "SourceAddresses" var validators = []bindings.Validator{} @@ -76462,7 +75685,7 @@ func StaticRouteBfdPeerListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(StaticRouteBfdPeerBindingType), reflect.TypeOf([]StaticRouteBfdPeer{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(StaticRouteBfdPeerBindingType), reflect.TypeOf([]StaticRouteBfdPeer{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.static_route_bfd_peer_list_result", fields, reflect.TypeOf(StaticRouteBfdPeerListResult{}), fieldNameMap, validators) @@ -76515,9 +75738,11 @@ func StaticRoutesBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["network"] = bindings.NewStringType() + fields["enabled_on_secondary"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["enabled_on_secondary"] = "EnabledOnSecondary" + fields["network"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["network"] = "Network" - fields["next_hops"] = bindings.NewListType(bindings.NewReferenceType(RouterNexthopBindingType), reflect.TypeOf([]RouterNexthop{})) + fields["next_hops"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RouterNexthopBindingType), reflect.TypeOf([]RouterNexthop{}))) fieldNameMap["next_hops"] = "NextHops" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.static_routes", fields, reflect.TypeOf(StaticRoutes{}), fieldNameMap, validators) @@ -76540,7 +75765,7 @@ func StaticRoutesListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(StaticRoutesBindingType), reflect.TypeOf([]StaticRoutes{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(StaticRoutesBindingType), reflect.TypeOf([]StaticRoutes{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.static_routes_list_result", fields, reflect.TypeOf(StaticRoutesListResult{}), fieldNameMap, validators) @@ -76609,6 +75834,8 @@ func StatsConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -76677,7 +75904,7 @@ func TagBulkOperationBindingType() bindings.BindingType { fieldNameMap["apply_to"] = "ApplyTo" fields["remove_from"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceInfoBindingType), reflect.TypeOf([]ResourceInfo{}))) fieldNameMap["remove_from"] = "RemoveFrom" - fields["tag"] = bindings.NewReferenceType(TagBindingType) + fields["tag"] = bindings.NewOptionalType(bindings.NewReferenceType(TagBindingType)) fieldNameMap["tag"] = "Tag" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tag_bulk_operation", fields, reflect.TypeOf(TagBulkOperation{}), fieldNameMap, validators) @@ -76688,13 +75915,13 @@ func TagBulkOperationStatusBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["apply_to"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceTypeTagStatusBindingType), reflect.TypeOf([]ResourceTypeTagStatus{}))) fieldNameMap["apply_to"] = "ApplyTo" - fields["path"] = bindings.NewStringType() + fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["path"] = "Path" fields["remove_from"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceTypeTagStatusBindingType), reflect.TypeOf([]ResourceTypeTagStatus{}))) fieldNameMap["remove_from"] = "RemoveFrom" - fields["status"] = bindings.NewStringType() + fields["status"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["status"] = "Status" - fields["tag"] = bindings.NewReferenceType(TagBindingType) + fields["tag"] = bindings.NewOptionalType(bindings.NewReferenceType(TagBindingType)) fieldNameMap["tag"] = "Tag" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tag_bulk_operation_status", fields, reflect.TypeOf(TagBulkOperationStatus{}), fieldNameMap, validators) @@ -76730,7 +75957,7 @@ func TagInfoListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(TagInfoBindingType), reflect.TypeOf([]TagInfo{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagInfoBindingType), reflect.TypeOf([]TagInfo{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tag_info_list_result", fields, reflect.TypeOf(TagInfoListResult{}), fieldNameMap, validators) @@ -76753,7 +75980,7 @@ func TaskListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(TaskPropertiesBindingType), reflect.TypeOf([]TaskProperties{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TaskPropertiesBindingType), reflect.TypeOf([]TaskProperties{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.task_list_result", fields, reflect.TypeOf(TaskListResult{}), fieldNameMap, validators) @@ -76930,13 +76157,13 @@ func TcpPolicyLbVirtualServerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["access_log_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["access_log_enabled"] = "AccessLogEnabled" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lb_persistence_profile"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lb_persistence_profile"] = "LbPersistenceProfile" - fields["ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ports"] = "Ports" - fields["router_path"] = bindings.NewStringType() + fields["router_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["router_path"] = "RouterPath" fields["traffic_source"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["traffic_source"] = "TrafficSource" @@ -77068,7 +76295,7 @@ func Tier0DeploymentMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["enforcement_point"] = bindings.NewStringType() + fields["enforcement_point"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point"] = "EnforcementPoint" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_deployment_map", fields, reflect.TypeOf(Tier0DeploymentMap{}), fieldNameMap, validators) @@ -77091,7 +76318,7 @@ func Tier0DeploymentMapListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Tier0DeploymentMapBindingType), reflect.TypeOf([]Tier0DeploymentMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Tier0DeploymentMapBindingType), reflect.TypeOf([]Tier0DeploymentMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_deployment_map_list_result", fields, reflect.TypeOf(Tier0DeploymentMapListResult{}), fieldNameMap, validators) @@ -77117,9 +76344,9 @@ func Tier0HaVipConfigBindingType() bindings.BindingType { fieldNameMap := make(map[string]string) fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["enabled"] = "Enabled" - fields["external_interface_paths"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["external_interface_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["external_interface_paths"] = "ExternalInterfacePaths" - fields["vip_subnets"] = bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{})) + fields["vip_subnets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{}))) fieldNameMap["vip_subnets"] = "VipSubnets" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_ha_vip_config", fields, reflect.TypeOf(Tier0HaVipConfig{}), fieldNameMap, validators) @@ -77172,7 +76399,7 @@ func Tier0InterfaceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["subnets"] = bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{})) + fields["subnets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{}))) fieldNameMap["subnets"] = "Subnets" fields["access_vlan_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["access_vlan_id"] = "AccessVlanId" @@ -77215,7 +76442,7 @@ func Tier0InterfaceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Tier0InterfaceBindingType), reflect.TypeOf([]Tier0Interface{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Tier0InterfaceBindingType), reflect.TypeOf([]Tier0Interface{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_interface_list_result", fields, reflect.TypeOf(Tier0InterfaceListResult{}), fieldNameMap, validators) @@ -77247,7 +76474,7 @@ func Tier0ListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Tier0BindingType), reflect.TypeOf([]Tier0{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Tier0BindingType), reflect.TypeOf([]Tier0{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_list_result", fields, reflect.TypeOf(Tier0ListResult{}), fieldNameMap, validators) @@ -77300,7 +76527,7 @@ func Tier0RouteMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["entries"] = bindings.NewListType(bindings.NewReferenceType(RouteMapEntryBindingType), reflect.TypeOf([]RouteMapEntry{})) + fields["entries"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(RouteMapEntryBindingType), reflect.TypeOf([]RouteMapEntry{}))) fieldNameMap["entries"] = "Entries" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_route_map", fields, reflect.TypeOf(Tier0RouteMap{}), fieldNameMap, validators) @@ -77323,7 +76550,7 @@ func Tier0RouteMapListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Tier0RouteMapBindingType), reflect.TypeOf([]Tier0RouteMap{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Tier0RouteMapBindingType), reflect.TypeOf([]Tier0RouteMap{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_route_map_list_result", fields, reflect.TypeOf(Tier0RouteMapListResult{}), fieldNameMap, validators) @@ -77332,8 +76559,8 @@ func Tier0RouteMapListResultBindingType() bindings.BindingType { func Tier0RouteRedistributionConfigBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["enabled"] = "Enabled" + fields["bgp_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["bgp_enabled"] = "BgpEnabled" fields["redistribution_rules"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Tier0RouteRedistributionRuleBindingType), reflect.TypeOf([]Tier0RouteRedistributionRule{}))) fieldNameMap["redistribution_rules"] = "RedistributionRules" var validators = []bindings.Validator{} @@ -77347,7 +76574,7 @@ func Tier0RouteRedistributionRuleBindingType() bindings.BindingType { fieldNameMap["name"] = "Name" fields["route_map_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["route_map_path"] = "RouteMapPath" - fields["route_redistribution_types"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["route_redistribution_types"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["route_redistribution_types"] = "RouteRedistributionTypes" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_route_redistribution_rule", fields, reflect.TypeOf(Tier0RouteRedistributionRule{}), fieldNameMap, validators) @@ -77406,7 +76633,7 @@ func Tier0VrfConfigBindingType() bindings.BindingType { fieldNameMap["route_distinguisher"] = "RouteDistinguisher" fields["route_targets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(VrfRouteTargetsBindingType), reflect.TypeOf([]VrfRouteTargets{}))) fieldNameMap["route_targets"] = "RouteTargets" - fields["tier0_path"] = bindings.NewStringType() + fields["tier0_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["tier0_path"] = "Tier0Path" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier0_vrf_config", fields, reflect.TypeOf(Tier0VrfConfig{}), fieldNameMap, validators) @@ -77540,7 +76767,7 @@ func Tier1DeploymentMapBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["enforcement_point"] = bindings.NewStringType() + fields["enforcement_point"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["enforcement_point"] = "EnforcementPoint" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier1_deployment_map", fields, reflect.TypeOf(Tier1DeploymentMap{}), fieldNameMap, validators) @@ -77608,13 +76835,13 @@ func Tier1InterfaceBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["subnets"] = bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{})) + fields["subnets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(InterfaceSubnetBindingType), reflect.TypeOf([]InterfaceSubnet{}))) fieldNameMap["subnets"] = "Subnets" fields["ipv6_profile_paths"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ipv6_profile_paths"] = "Ipv6ProfilePaths" fields["mtu"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["mtu"] = "Mtu" - fields["segment_path"] = bindings.NewStringType() + fields["segment_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["segment_path"] = "SegmentPath" fields["urpf_mode"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["urpf_mode"] = "UrpfMode" @@ -77639,7 +76866,7 @@ func Tier1InterfaceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Tier1InterfaceBindingType), reflect.TypeOf([]Tier1Interface{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Tier1InterfaceBindingType), reflect.TypeOf([]Tier1Interface{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier1_interface_list_result", fields, reflect.TypeOf(Tier1InterfaceListResult{}), fieldNameMap, validators) @@ -77662,7 +76889,7 @@ func Tier1ListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(Tier1BindingType), reflect.TypeOf([]Tier1{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(Tier1BindingType), reflect.TypeOf([]Tier1{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tier1_list_result", fields, reflect.TypeOf(Tier1ListResult{}), fieldNameMap, validators) @@ -77717,7 +76944,7 @@ func TlsCertificateBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["details"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(X509CertificateBindingType), reflect.TypeOf([]X509Certificate{}))) fieldNameMap["details"] = "Details" - fields["pem_encoded"] = bindings.NewStringType() + fields["pem_encoded"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["pem_encoded"] = "PemEncoded" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tls_certificate", fields, reflect.TypeOf(TlsCertificate{}), fieldNameMap, validators) @@ -77795,7 +77022,7 @@ func TlsCrlBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["details"] = bindings.NewOptionalType(bindings.NewReferenceType(X509CrlBindingType)) fieldNameMap["details"] = "Details" - fields["pem_encoded"] = bindings.NewStringType() + fields["pem_encoded"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["pem_encoded"] = "PemEncoded" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tls_crl", fields, reflect.TypeOf(TlsCrl{}), fieldNameMap, validators) @@ -77818,7 +77045,7 @@ func TlsCrlListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(TlsCrlBindingType), reflect.TypeOf([]TlsCrl{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TlsCrlBindingType), reflect.TypeOf([]TlsCrl{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tls_crl_list_result", fields, reflect.TypeOf(TlsCrlListResult{}), fieldNameMap, validators) @@ -77888,7 +77115,7 @@ func TlsTrustDataBindingType() bindings.BindingType { fieldNameMap["key_algo"] = "KeyAlgo" fields["passphrase"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["passphrase"] = "Passphrase" - fields["pem_encoded"] = bindings.NewStringType() + fields["pem_encoded"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["pem_encoded"] = "PemEncoded" fields["private_key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["private_key"] = "PrivateKey" @@ -77903,7 +77130,7 @@ func TooltipBindingType() bindings.BindingType { fieldNameMap["condition"] = "Condition" fields["heading"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["heading"] = "Heading" - fields["text"] = bindings.NewStringType() + fields["text"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["text"] = "Text" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tooltip", fields, reflect.TypeOf(Tooltip{}), fieldNameMap, validators) @@ -78009,9 +77236,11 @@ func TraceflowConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["packet"] = bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PacketDataBindingType),}, bindings.REST) + fields["is_transient"] = bindings.NewOptionalType(bindings.NewBooleanType()) + fieldNameMap["is_transient"] = "IsTransient" + fields["packet"] = bindings.NewOptionalType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(PacketDataBindingType),}, bindings.REST)) fieldNameMap["packet"] = "Packet" - fields["segment_port_path"] = bindings.NewStringType() + fields["segment_port_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["segment_port_path"] = "SegmentPortPath" fields["timeout"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["timeout"] = "Timeout" @@ -78036,7 +77265,7 @@ func TraceflowConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(TraceflowConfigBindingType), reflect.TypeOf([]TraceflowConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TraceflowConfigBindingType), reflect.TypeOf([]TraceflowConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.traceflow_config_list_result", fields, reflect.TypeOf(TraceflowConfigListResult{}), fieldNameMap, validators) @@ -78495,6 +77724,17 @@ func TrafficRateLimitsBindingType() bindings.BindingType { return bindings.NewStructType("com.vmware.nsx_policy.model.traffic_rate_limits", fields, reflect.TypeOf(TrafficRateLimits{}), fieldNameMap, validators) } +func TransportNodeSpanEnforcedStatusBindingType() bindings.BindingType { + fields := make(map[string]bindings.BindingType) + fieldNameMap := make(map[string]string) + fields["enforced_status_per_transport_node"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(EnforcedStatusPerTransportNodeBindingType), reflect.TypeOf([]EnforcedStatusPerTransportNode{}))) + fieldNameMap["enforced_status_per_transport_node"] = "EnforcedStatusPerTransportNode" + fields["resource_type"] = bindings.NewStringType() + fieldNameMap["resource_type"] = "ResourceType" + var validators = []bindings.Validator{} + return bindings.NewStructType("com.vmware.nsx_policy.model.transport_node_span_enforced_status", fields, reflect.TypeOf(TransportNodeSpanEnforcedStatus{}), fieldNameMap, validators) +} + func TransportProtocolHeaderBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -78519,9 +77759,9 @@ func TransportProtocolHeaderBindingType() bindings.BindingType { func TunnelInterfaceIPSubnetBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ip_addresses"] = "IpAddresses" - fields["prefix_length"] = bindings.NewIntegerType() + fields["prefix_length"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["prefix_length"] = "PrefixLength" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tunnel_interface_IP_subnet", fields, reflect.TypeOf(TunnelInterfaceIPSubnet{}), fieldNameMap, validators) @@ -78530,9 +77770,9 @@ func TunnelInterfaceIPSubnetBindingType() bindings.BindingType { func TunnelSubnetBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ip_addresses"] = "IpAddresses" - fields["prefix_length"] = bindings.NewIntegerType() + fields["prefix_length"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["prefix_length"] = "PrefixLength" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.tunnel_subnet", fields, reflect.TypeOf(TunnelSubnet{}), fieldNameMap, validators) @@ -78552,9 +77792,9 @@ func UdpHeaderBindingType() bindings.BindingType { func UdpPolicyLbMonitorProfileBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["receive"] = bindings.NewStringType() + fields["receive"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["receive"] = "Receive" - fields["send"] = bindings.NewStringType() + fields["send"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["send"] = "Send" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -78663,13 +77903,13 @@ func UdpPolicyLbVirtualServerBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["access_log_enabled"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["access_log_enabled"] = "AccessLogEnabled" - fields["ip_address"] = bindings.NewStringType() + fields["ip_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["ip_address"] = "IpAddress" fields["lb_persistence_profile"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lb_persistence_profile"] = "LbPersistenceProfile" - fields["ports"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["ports"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["ports"] = "Ports" - fields["router_path"] = bindings.NewStringType() + fields["router_path"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["router_path"] = "RouterPath" fields["traffic_source"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["traffic_source"] = "TrafficSource" @@ -78680,9 +77920,9 @@ func UdpPolicyLbVirtualServerBindingType() bindings.BindingType { func UnaryOperationBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["operand"] = bindings.NewReferenceType(ResourceFieldPointerBindingType) + fields["operand"] = bindings.NewOptionalType(bindings.NewReferenceType(ResourceFieldPointerBindingType)) fieldNameMap["operand"] = "Operand" - fields["operator"] = bindings.NewStringType() + fields["operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operator"] = "Operator" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.unary_operation", fields, reflect.TypeOf(UnaryOperation{}), fieldNameMap, validators) @@ -78691,7 +77931,7 @@ func UnaryOperationBindingType() bindings.BindingType { func UnaryOperationBasedInjectionValueBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["initial_value"] = bindings.NewReferenceType(ResourceFieldPointerBindingType) + fields["initial_value"] = bindings.NewOptionalType(bindings.NewReferenceType(ResourceFieldPointerBindingType)) fieldNameMap["initial_value"] = "InitialValue" fields["operation"] = bindings.NewOptionalType(bindings.NewReferenceType(UnaryOperationBindingType)) fieldNameMap["operation"] = "Operation" @@ -78708,67 +77948,12 @@ func UrlAliasBindingType() bindings.BindingType { fieldNameMap["alias"] = "Alias" fields["query"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["query"] = "Query" - fields["url"] = bindings.NewStringType() + fields["url"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["url"] = "Url" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.url_alias", fields, reflect.TypeOf(UrlAlias{}), fieldNameMap, validators) } -func UrlCategorizationCloudServiceInfoBindingType() bindings.BindingType { - fields := make(map[string]bindings.BindingType) - fieldNameMap := make(map[string]string) - fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) - fieldNameMap["_links"] = "Links" - fields["_schema"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_schema"] = "Schema" - fields["_self"] = bindings.NewOptionalType(bindings.NewReferenceType(SelfResourceLinkBindingType)) - fieldNameMap["_self"] = "Self" - fields["_revision"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_revision"] = "Revision" - fields["_create_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_create_time"] = "CreateTime" - fields["_create_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_create_user"] = "CreateUser" - fields["_last_modified_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) - fieldNameMap["_last_modified_time"] = "LastModifiedTime" - fields["_last_modified_user"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_last_modified_user"] = "LastModifiedUser" - fields["_protection"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["_protection"] = "Protection" - fields["_system_owned"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["_system_owned"] = "SystemOwned" - fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["description"] = "Description" - fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["display_name"] = "DisplayName" - fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["id"] = "Id" - fields["resource_type"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["resource_type"] = "ResourceType" - fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) - fieldNameMap["tags"] = "Tags" - fields["parent_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["parent_path"] = "ParentPath" - fields["path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["path"] = "Path" - fields["relative_path"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["relative_path"] = "RelativePath" - fields["unique_id"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["unique_id"] = "UniqueId" - fields["children"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewDynamicStructType([]bindings.ReferenceType{bindings.NewReferenceType(ChildPolicyConfigResourceBindingType),}, bindings.REST), reflect.TypeOf([]*data.StructValue{}))) - fieldNameMap["children"] = "Children" - fields["marked_for_delete"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["marked_for_delete"] = "MarkedForDelete" - fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) - fieldNameMap["overridden"] = "Overridden" - fields["url_categorization_svc_state"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["url_categorization_svc_state"] = "UrlCategorizationSvcState" - fields["url_data_version"] = bindings.NewOptionalType(bindings.NewStringType()) - fieldNameMap["url_data_version"] = "UrlDataVersion" - var validators = []bindings.Validator{} - return bindings.NewStructType("com.vmware.nsx_policy.model.url_categorization_cloud_service_info", fields, reflect.TypeOf(UrlCategorizationCloudServiceInfo{}), fieldNameMap, validators) -} - func UserInfoBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) @@ -78783,15 +77968,15 @@ func UserInfoBindingType() bindings.BindingType { func UserSessionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["domain_name"] = bindings.NewStringType() + fields["domain_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["domain_name"] = "DomainName" - fields["login_time"] = bindings.NewIntegerType() + fields["login_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["login_time"] = "LoginTime" fields["logout_time"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["logout_time"] = "LogoutTime" - fields["user_name"] = bindings.NewStringType() + fields["user_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["user_name"] = "UserName" - fields["user_session_id"] = bindings.NewIntegerType() + fields["user_session_id"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["user_session_id"] = "UserSessionId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.user_session", fields, reflect.TypeOf(UserSession{}), fieldNameMap, validators) @@ -78800,9 +77985,9 @@ func UserSessionBindingType() bindings.BindingType { func ValueConstraintExpressionBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["operator"] = bindings.NewStringType() + fields["operator"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["operator"] = "Operator" - fields["values"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["values"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["values"] = "Values" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -78871,7 +78056,7 @@ func VersionListBindingType() bindings.BindingType { fieldNameMap["resource_type"] = "ResourceType" fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["acceptable_versions"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["acceptable_versions"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["acceptable_versions"] = "AcceptableVersions" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.version_list", fields, reflect.TypeOf(VersionList{}), fieldNameMap, validators) @@ -78926,13 +78111,13 @@ func VhcBindingType() bindings.BindingType { fieldNameMap["overridden"] = "Overridden" fields["capabilities"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["capabilities"] = "Capabilities" - fields["private_ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["private_ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["private_ip_addresses"] = "PrivateIpAddresses" - fields["public_ip_addresses"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["public_ip_addresses"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["public_ip_addresses"] = "PublicIpAddresses" - fields["site_infos"] = bindings.NewListType(bindings.NewReferenceType(SiteInfoBindingType), reflect.TypeOf([]SiteInfo{})) + fields["site_infos"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(SiteInfoBindingType), reflect.TypeOf([]SiteInfo{}))) fieldNameMap["site_infos"] = "SiteInfos" - fields["tier_0s"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["tier_0s"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["tier_0s"] = "Tier0s" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.vhc", fields, reflect.TypeOf(Vhc{}), fieldNameMap, validators) @@ -78985,7 +78170,7 @@ func VhcDnsConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["dns_upstream_servers"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["dns_upstream_servers"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["dns_upstream_servers"] = "DnsUpstreamServers" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.vhc_dns_config", fields, reflect.TypeOf(VhcDnsConfig{}), fieldNameMap, validators) @@ -79021,7 +78206,7 @@ func VidmInfoListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(VidmInfoBindingType), reflect.TypeOf([]VidmInfo{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(VidmInfoBindingType), reflect.TypeOf([]VidmInfo{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.vidm_info_list_result", fields, reflect.TypeOf(VidmInfoListResult{}), fieldNameMap, validators) @@ -79052,7 +78237,7 @@ func ViewBindingType() bindings.BindingType { fieldNameMap["_system_owned"] = "SystemOwned" fields["description"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["description"] = "Description" - fields["display_name"] = bindings.NewStringType() + fields["display_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["display_name"] = "DisplayName" fields["id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["id"] = "Id" @@ -79068,7 +78253,7 @@ func ViewBindingType() bindings.BindingType { fieldNameMap["shared"] = "Shared" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" - fields["widgets"] = bindings.NewListType(bindings.NewReferenceType(WidgetItemBindingType), reflect.TypeOf([]WidgetItem{})) + fields["widgets"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(WidgetItemBindingType), reflect.TypeOf([]WidgetItem{}))) fieldNameMap["widgets"] = "Widgets" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.view", fields, reflect.TypeOf(View{}), fieldNameMap, validators) @@ -79086,7 +78271,7 @@ func ViewListBindingType() bindings.BindingType { func VirtualEndpointBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["service_names"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["service_names"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["service_names"] = "ServiceNames" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -79132,7 +78317,7 @@ func VirtualEndpointBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["target_ips"] = bindings.NewListType(bindings.NewReferenceType(IPInfoBindingType), reflect.TypeOf([]IPInfo{})) + fields["target_ips"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IPInfoBindingType), reflect.TypeOf([]IPInfo{}))) fieldNameMap["target_ips"] = "TargetIps" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.virtual_endpoint", fields, reflect.TypeOf(VirtualEndpoint{}), fieldNameMap, validators) @@ -79155,7 +78340,7 @@ func VirtualEndpointListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(VirtualEndpointBindingType), reflect.TypeOf([]VirtualEndpoint{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(VirtualEndpointBindingType), reflect.TypeOf([]VirtualEndpoint{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.virtual_endpoint_list_result", fields, reflect.TypeOf(VirtualEndpointListResult{}), fieldNameMap, validators) @@ -79164,17 +78349,17 @@ func VirtualEndpointListResultBindingType() bindings.BindingType { func VirtualMachineBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["compute_ids"] = bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{})) + fields["compute_ids"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewStringType(), reflect.TypeOf([]string{}))) fieldNameMap["compute_ids"] = "ComputeIds" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" fields["guest_info"] = bindings.NewOptionalType(bindings.NewReferenceType(GuestInfoBindingType)) fieldNameMap["guest_info"] = "GuestInfo" fields["host_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["host_id"] = "HostId" - fields["local_id_on_host"] = bindings.NewStringType() + fields["local_id_on_host"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["local_id_on_host"] = "LocalIdOnHost" - fields["power_state"] = bindings.NewStringType() + fields["power_state"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["power_state"] = "PowerState" fields["source"] = bindings.NewOptionalType(bindings.NewReferenceType(ResourceReferenceBindingType)) fieldNameMap["source"] = "Source" @@ -79234,7 +78419,7 @@ func VirtualMachineListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(VirtualMachineBindingType), reflect.TypeOf([]VirtualMachine{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(VirtualMachineBindingType), reflect.TypeOf([]VirtualMachine{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.virtual_machine_list_result", fields, reflect.TypeOf(VirtualMachineListResult{}), fieldNameMap, validators) @@ -79243,9 +78428,9 @@ func VirtualMachineListResultBindingType() bindings.BindingType { func VirtualMachineTagsUpdateBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["tags"] = bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{})) + fields["tags"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(TagBindingType), reflect.TypeOf([]Tag{}))) fieldNameMap["tags"] = "Tags" - fields["virtual_machine_id"] = bindings.NewStringType() + fields["virtual_machine_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["virtual_machine_id"] = "VirtualMachineId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.virtual_machine_tags_update", fields, reflect.TypeOf(VirtualMachineTagsUpdate{}), fieldNameMap, validators) @@ -79254,25 +78439,25 @@ func VirtualMachineTagsUpdateBindingType() bindings.BindingType { func VirtualNetworkInterfaceBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["device_key"] = bindings.NewStringType() + fields["device_key"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["device_key"] = "DeviceKey" fields["device_name"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["device_name"] = "DeviceName" - fields["external_id"] = bindings.NewStringType() + fields["external_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["external_id"] = "ExternalId" - fields["host_id"] = bindings.NewStringType() + fields["host_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["host_id"] = "HostId" fields["ip_address_info"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(IpAddressInfoBindingType), reflect.TypeOf([]IpAddressInfo{}))) fieldNameMap["ip_address_info"] = "IpAddressInfo" fields["lport_attachment_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["lport_attachment_id"] = "LportAttachmentId" - fields["mac_address"] = bindings.NewStringType() + fields["mac_address"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["mac_address"] = "MacAddress" - fields["owner_vm_id"] = bindings.NewStringType() + fields["owner_vm_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["owner_vm_id"] = "OwnerVmId" fields["owner_vm_type"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["owner_vm_type"] = "OwnerVmType" - fields["vm_local_id_on_host"] = bindings.NewStringType() + fields["vm_local_id_on_host"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["vm_local_id_on_host"] = "VmLocalIdOnHost" fields["_links"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(ResourceLinkBindingType), reflect.TypeOf([]ResourceLink{}))) fieldNameMap["_links"] = "Links" @@ -79311,7 +78496,7 @@ func VirtualNetworkInterfaceListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(VirtualNetworkInterfaceBindingType), reflect.TypeOf([]VirtualNetworkInterface{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(VirtualNetworkInterfaceBindingType), reflect.TypeOf([]VirtualNetworkInterface{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.virtual_network_interface_list_result", fields, reflect.TypeOf(VirtualNetworkInterfaceListResult{}), fieldNameMap, validators) @@ -79461,9 +78646,9 @@ func VniPoolConfigBindingType() bindings.BindingType { fieldNameMap["marked_for_delete"] = "MarkedForDelete" fields["overridden"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["overridden"] = "Overridden" - fields["end"] = bindings.NewIntegerType() + fields["end"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["end"] = "End" - fields["start"] = bindings.NewIntegerType() + fields["start"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["start"] = "Start" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.vni_pool_config", fields, reflect.TypeOf(VniPoolConfig{}), fieldNameMap, validators) @@ -79486,7 +78671,7 @@ func VniPoolConfigListResultBindingType() bindings.BindingType { fieldNameMap["sort_ascending"] = "SortAscending" fields["sort_by"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["sort_by"] = "SortBy" - fields["results"] = bindings.NewListType(bindings.NewReferenceType(VniPoolConfigBindingType), reflect.TypeOf([]VniPoolConfig{})) + fields["results"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewReferenceType(VniPoolConfigBindingType), reflect.TypeOf([]VniPoolConfig{}))) fieldNameMap["results"] = "Results" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.vni_pool_config_list_result", fields, reflect.TypeOf(VniPoolConfigListResult{}), fieldNameMap, validators) @@ -79552,11 +78737,11 @@ func VrfRouteTargetsBindingType() bindings.BindingType { func WeeklyBackupScheduleBindingType() bindings.BindingType { fields := make(map[string]bindings.BindingType) fieldNameMap := make(map[string]string) - fields["days_of_week"] = bindings.NewListType(bindings.NewIntegerType(), reflect.TypeOf([]int64{})) + fields["days_of_week"] = bindings.NewOptionalType(bindings.NewListType(bindings.NewIntegerType(), reflect.TypeOf([]int64{}))) fieldNameMap["days_of_week"] = "DaysOfWeek" - fields["hour_of_day"] = bindings.NewIntegerType() + fields["hour_of_day"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["hour_of_day"] = "HourOfDay" - fields["minute_of_day"] = bindings.NewIntegerType() + fields["minute_of_day"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["minute_of_day"] = "MinuteOfDay" fields["resource_type"] = bindings.NewStringType() fieldNameMap["resource_type"] = "ResourceType" @@ -79617,6 +78802,8 @@ func WidgetConfigurationBindingType() bindings.BindingType { fieldNameMap["legend"] = "Legend" fields["shared"] = bindings.NewOptionalType(bindings.NewBooleanType()) fieldNameMap["shared"] = "Shared" + fields["span"] = bindings.NewOptionalType(bindings.NewIntegerType()) + fieldNameMap["span"] = "Span" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" var validators = []bindings.Validator{} @@ -79643,7 +78830,7 @@ func WidgetItemBindingType() bindings.BindingType { fieldNameMap["separator"] = "Separator" fields["weight"] = bindings.NewOptionalType(bindings.NewIntegerType()) fieldNameMap["weight"] = "Weight" - fields["widget_id"] = bindings.NewStringType() + fields["widget_id"] = bindings.NewOptionalType(bindings.NewStringType()) fieldNameMap["widget_id"] = "WidgetId" var validators = []bindings.Validator{} return bindings.NewStructType("com.vmware.nsx_policy.model.widget_item", fields, reflect.TypeOf(WidgetItem{}), fieldNameMap, validators) diff --git a/vendor/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.go index bdaba1d46..27cc893cc 100644 --- a/vendor/golang.org/x/net/http2/http2.go +++ b/vendor/golang.org/x/net/http2/http2.go @@ -19,7 +19,6 @@ package http2 // import "golang.org/x/net/http2" import ( "bufio" "crypto/tls" - "errors" "fmt" "io" "net/http" @@ -173,11 +172,6 @@ func (s SettingID) String() string { return fmt.Sprintf("UNKNOWN_SETTING_%d", uint16(s)) } -var ( - errInvalidHeaderFieldName = errors.New("http2: invalid header field name") - errInvalidHeaderFieldValue = errors.New("http2: invalid header field value") -) - // validWireHeaderFieldName reports whether v is a valid header field // name (key). See httpguts.ValidHeaderName for the base rules. // diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go index de31d72b2..bc9e41a1b 100644 --- a/vendor/golang.org/x/net/http2/server.go +++ b/vendor/golang.org/x/net/http2/server.go @@ -581,13 +581,10 @@ type stream struct { cancelCtx func() // owned by serverConn's serve loop: - bodyBytes int64 // body bytes seen so far - declBodyBytes int64 // or -1 if undeclared - flow flow // limits writing from Handler to client - inflow flow // what the client is allowed to POST/etc to us - parent *stream // or nil - numTrailerValues int64 - weight uint8 + bodyBytes int64 // body bytes seen so far + declBodyBytes int64 // or -1 if undeclared + flow flow // limits writing from Handler to client + inflow flow // what the client is allowed to POST/etc to us state streamState resetQueued bool // RST_STREAM queued for write; set by sc.resetStream gotTrailerHeader bool // HEADER frame for trailers was seen diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go index d948e96ee..e4fb02530 100644 --- a/vendor/golang.org/x/net/http2/transport.go +++ b/vendor/golang.org/x/net/http2/transport.go @@ -1892,7 +1892,9 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra return nil, errors.New("malformed response from server: malformed non-numeric status pseudo header") } - header := make(http.Header) + regularFields := f.RegularFields() + strs := make([]string, len(regularFields)) + header := make(http.Header, len(regularFields)) res := &http.Response{ Proto: "HTTP/2.0", ProtoMajor: 2, @@ -1900,7 +1902,7 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra StatusCode: statusCode, Status: status + " " + http.StatusText(statusCode), } - for _, hf := range f.RegularFields() { + for _, hf := range regularFields { key := http.CanonicalHeaderKey(hf.Name) if key == "Trailer" { t := res.Trailer @@ -1912,7 +1914,18 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra t[http.CanonicalHeaderKey(v)] = nil }) } else { - header[key] = append(header[key], hf.Value) + vv := header[key] + if vv == nil && len(strs) > 0 { + // More than likely this will be a single-element key. + // Most headers aren't multi-valued. + // Set the capacity on strs[0] to 1, so any future append + // won't extend the slice into the other strings. + vv, strs = strs[:1:1], strs[1:] + vv[0] = hf.Value + header[key] = vv + } else { + header[key] = append(vv, hf.Value) + } } } @@ -2198,8 +2211,6 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error { return nil } -var errInvalidTrailers = errors.New("http2: invalid trailers") - func (rl *clientConnReadLoop) endStream(cs *clientStream) { // TODO: check that any declared content-length matches, like // server.go's (*stream).endStream method. @@ -2430,7 +2441,6 @@ func (cc *ClientConn) writeStreamReset(streamID uint32, code ErrCode, err error) var ( errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit") errRequestHeaderListSize = errors.New("http2: request header list larger than peer's advertised limit") - errPseudoTrailers = errors.New("http2: invalid pseudo header in trailers") ) func (cc *ClientConn) logf(format string, args ...interface{}) { diff --git a/vendor/golang.org/x/sys/unix/README.md b/vendor/golang.org/x/sys/unix/README.md index eb2f78ae2..ab433ccfb 100644 --- a/vendor/golang.org/x/sys/unix/README.md +++ b/vendor/golang.org/x/sys/unix/README.md @@ -149,6 +149,17 @@ To add a constant, add the header that includes it to the appropriate variable. Then, edit the regex (if necessary) to match the desired constant. Avoid making the regex too broad to avoid matching unintended constants. +### mkmerge.go + +This program is used to extract duplicate const, func, and type declarations +from the generated architecture-specific files listed below, and merge these +into a common file for each OS. + +The merge is performed in the following steps: +1. Construct the set of common code that is idential in all architecture-specific files. +2. Write this common code to the merged file. +3. Remove the common code from all architecture-specific files. + ## Generated files diff --git a/vendor/golang.org/x/sys/unix/affinity_linux.go b/vendor/golang.org/x/sys/unix/affinity_linux.go index 72afe3338..6e5c81acd 100644 --- a/vendor/golang.org/x/sys/unix/affinity_linux.go +++ b/vendor/golang.org/x/sys/unix/affinity_linux.go @@ -7,6 +7,7 @@ package unix import ( + "math/bits" "unsafe" ) @@ -79,46 +80,7 @@ func (s *CPUSet) IsSet(cpu int) bool { func (s *CPUSet) Count() int { c := 0 for _, b := range s { - c += onesCount64(uint64(b)) + c += bits.OnesCount64(uint64(b)) } return c } - -// onesCount64 is a copy of Go 1.9's math/bits.OnesCount64. -// Once this package can require Go 1.9, we can delete this -// and update the caller to use bits.OnesCount64. -func onesCount64(x uint64) int { - const m0 = 0x5555555555555555 // 01010101 ... - const m1 = 0x3333333333333333 // 00110011 ... - const m2 = 0x0f0f0f0f0f0f0f0f // 00001111 ... - const m3 = 0x00ff00ff00ff00ff // etc. - const m4 = 0x0000ffff0000ffff - - // Implementation: Parallel summing of adjacent bits. - // See "Hacker's Delight", Chap. 5: Counting Bits. - // The following pattern shows the general approach: - // - // x = x>>1&(m0&m) + x&(m0&m) - // x = x>>2&(m1&m) + x&(m1&m) - // x = x>>4&(m2&m) + x&(m2&m) - // x = x>>8&(m3&m) + x&(m3&m) - // x = x>>16&(m4&m) + x&(m4&m) - // x = x>>32&(m5&m) + x&(m5&m) - // return int(x) - // - // Masking (& operations) can be left away when there's no - // danger that a field's sum will carry over into the next - // field: Since the result cannot be > 64, 8 bits is enough - // and we can ignore the masks for the shifts by 8 and up. - // Per "Hacker's Delight", the first line can be simplified - // more, but it saves at best one instruction, so we leave - // it alone for clarity. - const m = 1<<64 - 1 - x = x>>1&(m0&m) + x&(m0&m) - x = x>>2&(m1&m) + x&(m1&m) - x = (x>>4 + x) & (m2 & m) - x += x >> 8 - x += x >> 16 - x += x >> 32 - return int(x) & (1<<7 - 1) -} diff --git a/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s b/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s index 6db717de5..3cfefed2e 100644 --- a/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s +++ b/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s @@ -23,10 +23,6 @@ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 MOV a1+8(FP), A0 MOV a2+16(FP), A1 MOV a3+24(FP), A2 - MOV $0, A3 - MOV $0, A4 - MOV $0, A5 - MOV $0, A6 MOV trap+0(FP), A7 // syscall entry ECALL MOV A0, r1+32(FP) // r1 @@ -44,9 +40,6 @@ TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 MOV a1+8(FP), A0 MOV a2+16(FP), A1 MOV a3+24(FP), A2 - MOV ZERO, A3 - MOV ZERO, A4 - MOV ZERO, A5 MOV trap+0(FP), A7 // syscall entry ECALL MOV A0, r1+32(FP) diff --git a/vendor/golang.org/x/sys/unix/bluetooth_linux.go b/vendor/golang.org/x/sys/unix/bluetooth_linux.go index 6e3229697..a178a6149 100644 --- a/vendor/golang.org/x/sys/unix/bluetooth_linux.go +++ b/vendor/golang.org/x/sys/unix/bluetooth_linux.go @@ -23,6 +23,7 @@ const ( HCI_CHANNEL_USER = 1 HCI_CHANNEL_MONITOR = 2 HCI_CHANNEL_CONTROL = 3 + HCI_CHANNEL_LOGGING = 4 ) // Socketoption Level diff --git a/vendor/golang.org/x/sys/unix/dirent.go b/vendor/golang.org/x/sys/unix/dirent.go index 4407c505a..304016b68 100644 --- a/vendor/golang.org/x/sys/unix/dirent.go +++ b/vendor/golang.org/x/sys/unix/dirent.go @@ -2,16 +2,101 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package unix -import "syscall" +import "unsafe" + +// readInt returns the size-bytes unsigned integer in native byte order at offset off. +func readInt(b []byte, off, size uintptr) (u uint64, ok bool) { + if len(b) < int(off+size) { + return 0, false + } + if isBigEndian { + return readIntBE(b[off:], size), true + } + return readIntLE(b[off:], size), true +} + +func readIntBE(b []byte, size uintptr) uint64 { + switch size { + case 1: + return uint64(b[0]) + case 2: + _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[1]) | uint64(b[0])<<8 + case 4: + _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24 + case 8: + _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 | + uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56 + default: + panic("syscall: readInt with unsupported size") + } +} + +func readIntLE(b []byte, size uintptr) uint64 { + switch size { + case 1: + return uint64(b[0]) + case 2: + _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[0]) | uint64(b[1])<<8 + case 4: + _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 + case 8: + _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | + uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + default: + panic("syscall: readInt with unsupported size") + } +} // ParseDirent parses up to max directory entries in buf, // appending the names to names. It returns the number of // bytes consumed from buf, the number of entries added // to names, and the new names slice. func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { - return syscall.ParseDirent(buf, max, names) + origlen := len(buf) + count = 0 + for max != 0 && len(buf) > 0 { + reclen, ok := direntReclen(buf) + if !ok || reclen > uint64(len(buf)) { + return origlen, count, names + } + rec := buf[:reclen] + buf = buf[reclen:] + ino, ok := direntIno(rec) + if !ok { + break + } + if ino == 0 { // File absent in directory. + continue + } + const namoff = uint64(unsafe.Offsetof(Dirent{}.Name)) + namlen, ok := direntNamlen(rec) + if !ok || namoff+namlen > uint64(len(rec)) { + break + } + name := rec[namoff : namoff+namlen] + for i, c := range name { + if c == 0 { + name = name[:i] + break + } + } + // Check for useless names before allocating a string. + if string(name) == "." || string(name) == ".." { + continue + } + max-- + count++ + names = append(names, string(name)) + } + return origlen - len(buf), count, names } diff --git a/vendor/golang.org/x/sys/unix/endian_little.go b/vendor/golang.org/x/sys/unix/endian_little.go index 085df2d8d..bcdb5d30e 100644 --- a/vendor/golang.org/x/sys/unix/endian_little.go +++ b/vendor/golang.org/x/sys/unix/endian_little.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le +// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le riscv64 package unix diff --git a/vendor/golang.org/x/sys/unix/errors_freebsd_386.go b/vendor/golang.org/x/sys/unix/errors_freebsd_386.go index c56bc8b05..761db66ef 100644 --- a/vendor/golang.org/x/sys/unix/errors_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/errors_freebsd_386.go @@ -8,6 +8,7 @@ package unix const ( + DLT_HHDLC = 0x79 IFF_SMART = 0x20 IFT_1822 = 0x2 IFT_A12MPPSWITCH = 0x82 @@ -210,13 +211,18 @@ const ( IFT_XETHER = 0x1a IPPROTO_MAXID = 0x34 IPV6_FAITH = 0x1d + IPV6_MIN_MEMBERSHIPS = 0x1f IP_FAITH = 0x16 + IP_MAX_SOURCE_FILTER = 0x400 + IP_MIN_MEMBERSHIPS = 0x1f MAP_NORESERVE = 0x40 MAP_RENAME = 0x20 NET_RT_MAXID = 0x6 RTF_PRCLONING = 0x10000 RTM_OLDADD = 0x9 RTM_OLDDEL = 0xa + RT_CACHING_CONTEXT = 0x1 + RT_NORTREF = 0x2 SIOCADDRT = 0x8030720a SIOCALIFADDR = 0x8118691b SIOCDELRT = 0x8030720b diff --git a/vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go index 3e9771175..070f44b65 100644 --- a/vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go @@ -8,6 +8,7 @@ package unix const ( + DLT_HHDLC = 0x79 IFF_SMART = 0x20 IFT_1822 = 0x2 IFT_A12MPPSWITCH = 0x82 @@ -210,13 +211,18 @@ const ( IFT_XETHER = 0x1a IPPROTO_MAXID = 0x34 IPV6_FAITH = 0x1d + IPV6_MIN_MEMBERSHIPS = 0x1f IP_FAITH = 0x16 + IP_MAX_SOURCE_FILTER = 0x400 + IP_MIN_MEMBERSHIPS = 0x1f MAP_NORESERVE = 0x40 MAP_RENAME = 0x20 NET_RT_MAXID = 0x6 RTF_PRCLONING = 0x10000 RTM_OLDADD = 0x9 RTM_OLDDEL = 0xa + RT_CACHING_CONTEXT = 0x1 + RT_NORTREF = 0x2 SIOCADDRT = 0x8040720a SIOCALIFADDR = 0x8118691b SIOCDELRT = 0x8040720b diff --git a/vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go new file mode 100644 index 000000000..946dcf3fc --- /dev/null +++ b/vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go @@ -0,0 +1,17 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Constants that were deprecated or moved to enums in the FreeBSD headers. Keep +// them here for backwards compatibility. + +package unix + +const ( + DLT_HHDLC = 0x79 + IPV6_MIN_MEMBERSHIPS = 0x1f + IP_MAX_SOURCE_FILTER = 0x400 + IP_MIN_MEMBERSHIPS = 0x1f + RT_CACHING_CONTEXT = 0x1 + RT_NORTREF = 0x2 +) diff --git a/vendor/golang.org/x/sys/unix/fcntl.go b/vendor/golang.org/x/sys/unix/fcntl.go index 39c03f1ef..4dc534864 100644 --- a/vendor/golang.org/x/sys/unix/fcntl.go +++ b/vendor/golang.org/x/sys/unix/fcntl.go @@ -9,12 +9,11 @@ package unix import "unsafe" // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux -// systems by flock_linux_32bit.go to be SYS_FCNTL64. +// systems by fcntl_linux_32bit.go to be SYS_FCNTL64. var fcntl64Syscall uintptr = SYS_FCNTL -// FcntlInt performs a fcntl syscall on fd with the provided command and argument. -func FcntlInt(fd uintptr, cmd, arg int) (int, error) { - valptr, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(arg)) +func fcntl(fd int, cmd, arg int) (int, error) { + valptr, _, errno := Syscall(fcntl64Syscall, uintptr(fd), uintptr(cmd), uintptr(arg)) var err error if errno != 0 { err = errno @@ -22,6 +21,11 @@ func FcntlInt(fd uintptr, cmd, arg int) (int, error) { return int(valptr), err } +// FcntlInt performs a fcntl syscall on fd with the provided command and argument. +func FcntlInt(fd uintptr, cmd, arg int) (int, error) { + return fcntl(int(fd), cmd, arg) +} + // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) diff --git a/vendor/golang.org/x/sys/unix/fdset.go b/vendor/golang.org/x/sys/unix/fdset.go new file mode 100644 index 000000000..b27be0a01 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/fdset.go @@ -0,0 +1,29 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris + +package unix + +// Set adds fd to the set fds. +func (fds *FdSet) Set(fd int) { + fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) +} + +// Clear removes fd from the set fds. +func (fds *FdSet) Clear(fd int) { + fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) +} + +// IsSet returns whether fd is in the set fds. +func (fds *FdSet) IsSet(fd int) bool { + return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 +} + +// Zero clears the set fds. +func (fds *FdSet) Zero() { + for i := range fds.Bits { + fds.Bits[i] = 0 + } +} diff --git a/vendor/golang.org/x/sys/unix/ioctl.go b/vendor/golang.org/x/sys/unix/ioctl.go index f121a8d64..3559e5dcb 100644 --- a/vendor/golang.org/x/sys/unix/ioctl.go +++ b/vendor/golang.org/x/sys/unix/ioctl.go @@ -6,7 +6,19 @@ package unix -import "runtime" +import ( + "runtime" + "unsafe" +) + +// ioctl itself should not be exposed directly, but additional get/set +// functions for specific types are permissible. + +// IoctlSetInt performs an ioctl operation which sets an integer value +// on fd, using the specified request number. +func IoctlSetInt(fd int, req uint, value int) error { + return ioctl(fd, req, uintptr(value)) +} // IoctlSetWinsize performs an ioctl on fd with a *Winsize argument. // @@ -14,7 +26,7 @@ import "runtime" func IoctlSetWinsize(fd int, req uint, value *Winsize) error { // TODO: if we get the chance, remove the req parameter and // hardcode TIOCSWINSZ. - err := ioctlSetWinsize(fd, req, value) + err := ioctl(fd, req, uintptr(unsafe.Pointer(value))) runtime.KeepAlive(value) return err } @@ -24,7 +36,30 @@ func IoctlSetWinsize(fd int, req uint, value *Winsize) error { // The req value will usually be TCSETA or TIOCSETA. func IoctlSetTermios(fd int, req uint, value *Termios) error { // TODO: if we get the chance, remove the req parameter. - err := ioctlSetTermios(fd, req, value) + err := ioctl(fd, req, uintptr(unsafe.Pointer(value))) runtime.KeepAlive(value) return err } + +// IoctlGetInt performs an ioctl operation which gets an integer value +// from fd, using the specified request number. +// +// A few ioctl requests use the return value as an output parameter; +// for those, IoctlRetInt should be used instead of this function. +func IoctlGetInt(fd int, req uint) (int, error) { + var value int + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return value, err +} + +func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { + var value Winsize + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return &value, err +} + +func IoctlGetTermios(fd int, req uint) (*Termios, error) { + var value Termios + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return &value, err +} diff --git a/vendor/golang.org/x/sys/unix/mkall.sh b/vendor/golang.org/x/sys/unix/mkall.sh index 5a22eca96..ece31e9dc 100644 --- a/vendor/golang.org/x/sys/unix/mkall.sh +++ b/vendor/golang.org/x/sys/unix/mkall.sh @@ -50,7 +50,7 @@ if [[ "$GOOS" = "linux" ]]; then # Use the Docker-based build system # Files generated through docker (use $cmd so you can Ctl-C the build or run) $cmd docker build --tag generate:$GOOS $GOOS - $cmd docker run --interactive --tty --volume $(dirname "$(readlink -f "$0")"):/build generate:$GOOS + $cmd docker run --interactive --tty --volume $(cd -- "$(dirname -- "$0")" && /bin/pwd):/build generate:$GOOS exit fi @@ -124,7 +124,7 @@ freebsd_arm) freebsd_arm64) mkerrors="$mkerrors -m64" mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" ;; netbsd_386) mkerrors="$mkerrors -m32" @@ -190,6 +190,12 @@ solaris_amd64) mksysnum= mktypes="GOARCH=$GOARCH go tool cgo -godefs" ;; +illumos_amd64) + mksyscall="go run mksyscall_solaris.go" + mkerrors= + mksysnum= + mktypes= + ;; *) echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2 exit 1 @@ -212,9 +218,16 @@ esac echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ; elif [ "$GOOS" == "darwin" ]; then # pre-1.12, direct syscalls - echo "$mksyscall -tags $GOOS,$GOARCH,!go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.1_11.go"; + echo "$mksyscall -tags $GOOS,$GOARCH,!go1.12 $syscall_goos syscall_darwin_${GOARCH}.1_11.go $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.1_11.go"; # 1.12 and later, syscalls via libSystem echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; + # 1.13 and later, syscalls via libSystem (including syscallPtr) + echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go"; + elif [ "$GOOS" == "illumos" ]; then + # illumos code generation requires a --illumos switch + echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go"; + # illumos implies solaris, so solaris code generation is also required + echo "$mksyscall -tags solaris,$GOARCH syscall_solaris.go syscall_solaris_$GOARCH.go |gofmt >zsyscall_solaris_$GOARCH.go"; else echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; fi diff --git a/vendor/golang.org/x/sys/unix/mkasm_darwin.go b/vendor/golang.org/x/sys/unix/mkasm_darwin.go index 4548b993d..6f7bb6edf 100644 --- a/vendor/golang.org/x/sys/unix/mkasm_darwin.go +++ b/vendor/golang.org/x/sys/unix/mkasm_darwin.go @@ -17,22 +17,7 @@ import ( "strings" ) -func main() { - in1, err := ioutil.ReadFile("syscall_darwin.go") - if err != nil { - log.Fatalf("can't open syscall_darwin.go: %s", err) - } - arch := os.Args[1] - in2, err := ioutil.ReadFile(fmt.Sprintf("syscall_darwin_%s.go", arch)) - if err != nil { - log.Fatalf("can't open syscall_darwin_%s.go: %s", arch, err) - } - in3, err := ioutil.ReadFile(fmt.Sprintf("zsyscall_darwin_%s.go", arch)) - if err != nil { - log.Fatalf("can't open zsyscall_darwin_%s.go: %s", arch, err) - } - in := string(in1) + string(in2) + string(in3) - +func writeASMFile(in string, fileName string, buildTags string) { trampolines := map[string]bool{} var out bytes.Buffer @@ -40,7 +25,7 @@ func main() { fmt.Fprintf(&out, "// go run mkasm_darwin.go %s\n", strings.Join(os.Args[1:], " ")) fmt.Fprintf(&out, "// Code generated by the command above; DO NOT EDIT.\n") fmt.Fprintf(&out, "\n") - fmt.Fprintf(&out, "// +build go1.12\n") + fmt.Fprintf(&out, "// +build %s\n", buildTags) fmt.Fprintf(&out, "\n") fmt.Fprintf(&out, "#include \"textflag.h\"\n") for _, line := range strings.Split(in, "\n") { @@ -54,8 +39,40 @@ func main() { fmt.Fprintf(&out, "\tJMP\t%s(SB)\n", fn) } } - err = ioutil.WriteFile(fmt.Sprintf("zsyscall_darwin_%s.s", arch), out.Bytes(), 0644) + err := ioutil.WriteFile(fileName, out.Bytes(), 0644) if err != nil { - log.Fatalf("can't write zsyscall_darwin_%s.s: %s", arch, err) + log.Fatalf("can't write %s: %s", fileName, err) } } + +func main() { + in1, err := ioutil.ReadFile("syscall_darwin.go") + if err != nil { + log.Fatalf("can't open syscall_darwin.go: %s", err) + } + arch := os.Args[1] + in2, err := ioutil.ReadFile(fmt.Sprintf("syscall_darwin_%s.go", arch)) + if err != nil { + log.Fatalf("can't open syscall_darwin_%s.go: %s", arch, err) + } + in3, err := ioutil.ReadFile(fmt.Sprintf("zsyscall_darwin_%s.go", arch)) + if err != nil { + log.Fatalf("can't open zsyscall_darwin_%s.go: %s", arch, err) + } + in := string(in1) + string(in2) + string(in3) + + writeASMFile(in, fmt.Sprintf("zsyscall_darwin_%s.s", arch), "go1.12") + + in1, err = ioutil.ReadFile("syscall_darwin.1_13.go") + if err != nil { + log.Fatalf("can't open syscall_darwin.1_13.go: %s", err) + } + in2, err = ioutil.ReadFile(fmt.Sprintf("zsyscall_darwin_%s.1_13.go", arch)) + if err != nil { + log.Fatalf("can't open zsyscall_darwin_%s.1_13.go: %s", arch, err) + } + + in = string(in1) + string(in2) + + writeASMFile(in, fmt.Sprintf("zsyscall_darwin_%s.1_13.s", arch), "go1.13") +} diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index 3d85f2795..bc076cf62 100644 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -44,6 +44,7 @@ includes_AIX=' #include #include #include +#include #include #include #include @@ -60,6 +61,7 @@ includes_Darwin=' #include #include #include +#include #include #include #include @@ -80,6 +82,7 @@ includes_Darwin=' includes_DragonFly=' #include #include +#include #include #include #include @@ -102,7 +105,9 @@ includes_FreeBSD=' #include #include #include +#include #include +#include #include #include #include @@ -179,52 +184,60 @@ struct ltchars { #include #include #include +#include #include #include +#include #include #include +#include #include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include #include #include #include #include #include #include -#include -#include -#include -#include -#include +#include #include #include +#include #include #include #include #include #include #include +#include #include +#include #include #include +#include #include -#include #include #include -#include -#include -#include #include -#include -#include +#include #include -#include +#include +#include +#include #include -#include -#include -#include -#include + #include #include @@ -263,6 +276,16 @@ struct ltchars { #define FS_KEY_DESC_PREFIX "fscrypt:" #define FS_KEY_DESC_PREFIX_SIZE 8 #define FS_MAX_KEY_SIZE 64 + +// The code generator produces -0x1 for (~0), but an unsigned value is necessary +// for the tipc_subscr timeout __u32 field. +#undef TIPC_WAIT_FOREVER +#define TIPC_WAIT_FOREVER 0xffffffff + +// Copied from linux/l2tp.h +// Including linux/l2tp.h here causes conflicts between linux/in.h +// and netinet/in.h included via net/route.h above. +#define IPPROTO_L2TP 115 ' includes_NetBSD=' @@ -272,6 +295,7 @@ includes_NetBSD=' #include #include #include +#include #include #include #include @@ -298,6 +322,7 @@ includes_OpenBSD=' #include #include #include +#include #include #include #include @@ -334,6 +359,7 @@ includes_OpenBSD=' includes_SunOS=' #include #include +#include #include #include #include @@ -426,6 +452,7 @@ ccflags="$@" $2 == "XCASE" || $2 == "ALTWERASE" || $2 == "NOKERNINFO" || + $2 == "NFDBITS" || $2 ~ /^PAR/ || $2 ~ /^SIG[^_]/ || $2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ || @@ -435,6 +462,8 @@ ccflags="$@" $2 ~ /^TC[IO](ON|OFF)$/ || $2 ~ /^IN_/ || $2 ~ /^LOCK_(SH|EX|NB|UN)$/ || + $2 ~ /^LO_(KEY|NAME)_SIZE$/ || + $2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ || $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ || $2 ~ /^TP_STATUS_/ || $2 ~ /^FALLOC_/ || @@ -448,6 +477,7 @@ ccflags="$@" $2 ~ /^SYSCTL_VERS/ || $2 !~ "MNT_BITS" && $2 ~ /^(MS|MNT|UMOUNT)_/ || + $2 ~ /^NS_GET_/ || $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || $2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ || $2 ~ /^KEXEC_/ || @@ -462,8 +492,9 @@ ccflags="$@" $2 ~ /^TCSET/ || $2 ~ /^TC(FLSH|SBRKP?|XONC)$/ || $2 !~ "RTF_BITS" && - $2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ || + $2 ~ /^(IFF|IFT|NET_RT|RTM(GRP)?|RTF|RTV|RTA|RTAX)_/ || $2 ~ /^BIOC/ || + $2 ~ /^DIOC/ || $2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ || $2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ || $2 ~ /^PRIO_(PROCESS|PGRP|USER)/ || @@ -474,7 +505,9 @@ ccflags="$@" $2 ~ /^CAN_/ || $2 ~ /^CAP_/ || $2 ~ /^ALG_/ || - $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ || + $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE)/ || + $2 ~ /^FS_IOC_.*ENCRYPTION/ || + $2 ~ /^FSCRYPT_/ || $2 ~ /^GRND_/ || $2 ~ /^RND/ || $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ || @@ -501,8 +534,11 @@ ccflags="$@" $2 ~ /^WDIOC_/ || $2 ~ /^NFN/ || $2 ~ /^XDP_/ || + $2 ~ /^RWF_/ || $2 ~ /^(HDIO|WIN|SMART)_/ || $2 ~ /^CRYPTO_/ || + $2 ~ /^TIPC_/ || + $2 ~ /^DEVLINK_/ || $2 !~ "WMESGLEN" && $2 ~ /^W[A-Z0-9]+$/ || $2 ~/^PPPIOC/ || diff --git a/vendor/golang.org/x/sys/unix/mkmerge.go b/vendor/golang.org/x/sys/unix/mkmerge.go new file mode 100644 index 000000000..8bde45016 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/mkmerge.go @@ -0,0 +1,521 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build ignore + +// mkmerge.go parses generated source files and merges common +// consts, funcs, and types into a common source file, per GOOS. +// +// Usage: +// $ go run mkmerge.go -out MERGED FILE [FILE ...] +// +// Example: +// # Remove all common consts, funcs, and types from zerrors_linux_*.go +// # and write the common code into zerrors_linux.go +// $ go run mkmerge.go -out zerrors_linux.go zerrors_linux_*.go +// +// mkmerge.go performs the merge in the following steps: +// 1. Construct the set of common code that is idential in all +// architecture-specific files. +// 2. Write this common code to the merged file. +// 3. Remove the common code from all architecture-specific files. +package main + +import ( + "bufio" + "bytes" + "flag" + "fmt" + "go/ast" + "go/format" + "go/parser" + "go/token" + "io" + "io/ioutil" + "log" + "os" + "path" + "path/filepath" + "regexp" + "strconv" + "strings" +) + +const validGOOS = "aix|darwin|dragonfly|freebsd|linux|netbsd|openbsd|solaris" + +// getValidGOOS returns GOOS, true if filename ends with a valid "_GOOS.go" +func getValidGOOS(filename string) (string, bool) { + matches := regexp.MustCompile(`_(` + validGOOS + `)\.go$`).FindStringSubmatch(filename) + if len(matches) != 2 { + return "", false + } + return matches[1], true +} + +// codeElem represents an ast.Decl in a comparable way. +type codeElem struct { + tok token.Token // e.g. token.CONST, token.TYPE, or token.FUNC + src string // the declaration formatted as source code +} + +// newCodeElem returns a codeElem based on tok and node, or an error is returned. +func newCodeElem(tok token.Token, node ast.Node) (codeElem, error) { + var b strings.Builder + err := format.Node(&b, token.NewFileSet(), node) + if err != nil { + return codeElem{}, err + } + return codeElem{tok, b.String()}, nil +} + +// codeSet is a set of codeElems +type codeSet struct { + set map[codeElem]bool // true for all codeElems in the set +} + +// newCodeSet returns a new codeSet +func newCodeSet() *codeSet { return &codeSet{make(map[codeElem]bool)} } + +// add adds elem to c +func (c *codeSet) add(elem codeElem) { c.set[elem] = true } + +// has returns true if elem is in c +func (c *codeSet) has(elem codeElem) bool { return c.set[elem] } + +// isEmpty returns true if the set is empty +func (c *codeSet) isEmpty() bool { return len(c.set) == 0 } + +// intersection returns a new set which is the intersection of c and a +func (c *codeSet) intersection(a *codeSet) *codeSet { + res := newCodeSet() + + for elem := range c.set { + if a.has(elem) { + res.add(elem) + } + } + return res +} + +// keepCommon is a filterFn for filtering the merged file with common declarations. +func (c *codeSet) keepCommon(elem codeElem) bool { + switch elem.tok { + case token.VAR: + // Remove all vars from the merged file + return false + case token.CONST, token.TYPE, token.FUNC, token.COMMENT: + // Remove arch-specific consts, types, functions, and file-level comments from the merged file + return c.has(elem) + case token.IMPORT: + // Keep imports, they are handled by filterImports + return true + } + + log.Fatalf("keepCommon: invalid elem %v", elem) + return true +} + +// keepArchSpecific is a filterFn for filtering the GOARC-specific files. +func (c *codeSet) keepArchSpecific(elem codeElem) bool { + switch elem.tok { + case token.CONST, token.TYPE, token.FUNC: + // Remove common consts, types, or functions from the arch-specific file + return !c.has(elem) + } + return true +} + +// srcFile represents a source file +type srcFile struct { + name string + src []byte +} + +// filterFn is a helper for filter +type filterFn func(codeElem) bool + +// filter parses and filters Go source code from src, removing top +// level declarations using keep as predicate. +// For src parameter, please see docs for parser.ParseFile. +func filter(src interface{}, keep filterFn) ([]byte, error) { + // Parse the src into an ast + fset := token.NewFileSet() + f, err := parser.ParseFile(fset, "", src, parser.ParseComments) + if err != nil { + return nil, err + } + cmap := ast.NewCommentMap(fset, f, f.Comments) + + // Group const/type specs on adjacent lines + var groups specGroups = make(map[string]int) + var groupID int + + decls := f.Decls + f.Decls = f.Decls[:0] + for _, decl := range decls { + switch decl := decl.(type) { + case *ast.GenDecl: + // Filter imports, consts, types, vars + specs := decl.Specs + decl.Specs = decl.Specs[:0] + for i, spec := range specs { + elem, err := newCodeElem(decl.Tok, spec) + if err != nil { + return nil, err + } + + // Create new group if there are empty lines between this and the previous spec + if i > 0 && fset.Position(specs[i-1].End()).Line < fset.Position(spec.Pos()).Line-1 { + groupID++ + } + + // Check if we should keep this spec + if keep(elem) { + decl.Specs = append(decl.Specs, spec) + groups.add(elem.src, groupID) + } + } + // Check if we should keep this decl + if len(decl.Specs) > 0 { + f.Decls = append(f.Decls, decl) + } + case *ast.FuncDecl: + // Filter funcs + elem, err := newCodeElem(token.FUNC, decl) + if err != nil { + return nil, err + } + if keep(elem) { + f.Decls = append(f.Decls, decl) + } + } + } + + // Filter file level comments + if cmap[f] != nil { + commentGroups := cmap[f] + cmap[f] = cmap[f][:0] + for _, cGrp := range commentGroups { + if keep(codeElem{token.COMMENT, cGrp.Text()}) { + cmap[f] = append(cmap[f], cGrp) + } + } + } + f.Comments = cmap.Filter(f).Comments() + + // Generate code for the filtered ast + var buf bytes.Buffer + if err = format.Node(&buf, fset, f); err != nil { + return nil, err + } + + groupedSrc, err := groups.filterEmptyLines(&buf) + if err != nil { + return nil, err + } + + return filterImports(groupedSrc) +} + +// getCommonSet returns the set of consts, types, and funcs that are present in every file. +func getCommonSet(files []srcFile) (*codeSet, error) { + if len(files) == 0 { + return nil, fmt.Errorf("no files provided") + } + // Use the first architecture file as the baseline + baseSet, err := getCodeSet(files[0].src) + if err != nil { + return nil, err + } + + // Compare baseline set with other architecture files: discard any element, + // that doesn't exist in other architecture files. + for _, f := range files[1:] { + set, err := getCodeSet(f.src) + if err != nil { + return nil, err + } + + baseSet = baseSet.intersection(set) + } + return baseSet, nil +} + +// getCodeSet returns the set of all top-level consts, types, and funcs from src. +// src must be string, []byte, or io.Reader (see go/parser.ParseFile docs) +func getCodeSet(src interface{}) (*codeSet, error) { + set := newCodeSet() + + fset := token.NewFileSet() + f, err := parser.ParseFile(fset, "", src, parser.ParseComments) + if err != nil { + return nil, err + } + + for _, decl := range f.Decls { + switch decl := decl.(type) { + case *ast.GenDecl: + // Add const, and type declarations + if !(decl.Tok == token.CONST || decl.Tok == token.TYPE) { + break + } + + for _, spec := range decl.Specs { + elem, err := newCodeElem(decl.Tok, spec) + if err != nil { + return nil, err + } + + set.add(elem) + } + case *ast.FuncDecl: + // Add func declarations + elem, err := newCodeElem(token.FUNC, decl) + if err != nil { + return nil, err + } + + set.add(elem) + } + } + + // Add file level comments + cmap := ast.NewCommentMap(fset, f, f.Comments) + for _, cGrp := range cmap[f] { + set.add(codeElem{token.COMMENT, cGrp.Text()}) + } + + return set, nil +} + +// importName returns the identifier (PackageName) for an imported package +func importName(iSpec *ast.ImportSpec) (string, error) { + if iSpec.Name == nil { + name, err := strconv.Unquote(iSpec.Path.Value) + if err != nil { + return "", err + } + return path.Base(name), nil + } + return iSpec.Name.Name, nil +} + +// specGroups tracks grouped const/type specs with a map of line: groupID pairs +type specGroups map[string]int + +// add spec source to group +func (s specGroups) add(src string, groupID int) error { + srcBytes, err := format.Source(bytes.TrimSpace([]byte(src))) + if err != nil { + return err + } + s[string(srcBytes)] = groupID + return nil +} + +// filterEmptyLines removes empty lines within groups of const/type specs. +// Returns the filtered source. +func (s specGroups) filterEmptyLines(src io.Reader) ([]byte, error) { + scanner := bufio.NewScanner(src) + var out bytes.Buffer + + var emptyLines bytes.Buffer + prevGroupID := -1 // Initialize to invalid group + for scanner.Scan() { + line := bytes.TrimSpace(scanner.Bytes()) + + if len(line) == 0 { + fmt.Fprintf(&emptyLines, "%s\n", scanner.Bytes()) + continue + } + + // Discard emptyLines if previous non-empty line belonged to the same + // group as this line + if src, err := format.Source(line); err == nil { + groupID, ok := s[string(src)] + if ok && groupID == prevGroupID { + emptyLines.Reset() + } + prevGroupID = groupID + } + + emptyLines.WriteTo(&out) + fmt.Fprintf(&out, "%s\n", scanner.Bytes()) + } + if err := scanner.Err(); err != nil { + return nil, err + } + return out.Bytes(), nil +} + +// filterImports removes unused imports from fileSrc, and returns a formatted src. +func filterImports(fileSrc []byte) ([]byte, error) { + fset := token.NewFileSet() + file, err := parser.ParseFile(fset, "", fileSrc, parser.ParseComments) + if err != nil { + return nil, err + } + cmap := ast.NewCommentMap(fset, file, file.Comments) + + // create set of references to imported identifiers + keepImport := make(map[string]bool) + for _, u := range file.Unresolved { + keepImport[u.Name] = true + } + + // filter import declarations + decls := file.Decls + file.Decls = file.Decls[:0] + for _, decl := range decls { + importDecl, ok := decl.(*ast.GenDecl) + + // Keep non-import declarations + if !ok || importDecl.Tok != token.IMPORT { + file.Decls = append(file.Decls, decl) + continue + } + + // Filter the import specs + specs := importDecl.Specs + importDecl.Specs = importDecl.Specs[:0] + for _, spec := range specs { + iSpec := spec.(*ast.ImportSpec) + name, err := importName(iSpec) + if err != nil { + return nil, err + } + + if keepImport[name] { + importDecl.Specs = append(importDecl.Specs, iSpec) + } + } + if len(importDecl.Specs) > 0 { + file.Decls = append(file.Decls, importDecl) + } + } + + // filter file.Imports + imports := file.Imports + file.Imports = file.Imports[:0] + for _, spec := range imports { + name, err := importName(spec) + if err != nil { + return nil, err + } + + if keepImport[name] { + file.Imports = append(file.Imports, spec) + } + } + file.Comments = cmap.Filter(file).Comments() + + var buf bytes.Buffer + err = format.Node(&buf, fset, file) + if err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +// merge extracts duplicate code from archFiles and merges it to mergeFile. +// 1. Construct commonSet: the set of code that is idential in all archFiles. +// 2. Write the code in commonSet to mergedFile. +// 3. Remove the commonSet code from all archFiles. +func merge(mergedFile string, archFiles ...string) error { + // extract and validate the GOOS part of the merged filename + goos, ok := getValidGOOS(mergedFile) + if !ok { + return fmt.Errorf("invalid GOOS in merged file name %s", mergedFile) + } + + // Read architecture files + var inSrc []srcFile + for _, file := range archFiles { + src, err := ioutil.ReadFile(file) + if err != nil { + return fmt.Errorf("cannot read archfile %s: %w", file, err) + } + + inSrc = append(inSrc, srcFile{file, src}) + } + + // 1. Construct the set of top-level declarations common for all files + commonSet, err := getCommonSet(inSrc) + if err != nil { + return err + } + if commonSet.isEmpty() { + // No common code => do not modify any files + return nil + } + + // 2. Write the merged file + mergedSrc, err := filter(inSrc[0].src, commonSet.keepCommon) + if err != nil { + return err + } + + f, err := os.Create(mergedFile) + if err != nil { + return err + } + + buf := bufio.NewWriter(f) + fmt.Fprintln(buf, "// Code generated by mkmerge.go; DO NOT EDIT.") + fmt.Fprintln(buf) + fmt.Fprintf(buf, "// +build %s\n", goos) + fmt.Fprintln(buf) + buf.Write(mergedSrc) + + err = buf.Flush() + if err != nil { + return err + } + err = f.Close() + if err != nil { + return err + } + + // 3. Remove duplicate declarations from the architecture files + for _, inFile := range inSrc { + src, err := filter(inFile.src, commonSet.keepArchSpecific) + if err != nil { + return err + } + err = ioutil.WriteFile(inFile.name, src, 0644) + if err != nil { + return err + } + } + return nil +} + +func main() { + var mergedFile string + flag.StringVar(&mergedFile, "out", "", "Write merged code to `FILE`") + flag.Parse() + + // Expand wildcards + var filenames []string + for _, arg := range flag.Args() { + matches, err := filepath.Glob(arg) + if err != nil { + fmt.Fprintf(os.Stderr, "Invalid command line argument %q: %v\n", arg, err) + os.Exit(1) + } + filenames = append(filenames, matches...) + } + + if len(filenames) < 2 { + // No need to merge + return + } + + err := merge(mergedFile, filenames...) + if err != nil { + fmt.Fprintf(os.Stderr, "Merge failed with error: %v\n", err) + os.Exit(1) + } +} diff --git a/vendor/golang.org/x/sys/unix/mkpost.go b/vendor/golang.org/x/sys/unix/mkpost.go index eb4332059..5ee1a16b9 100644 --- a/vendor/golang.org/x/sys/unix/mkpost.go +++ b/vendor/golang.org/x/sys/unix/mkpost.go @@ -76,6 +76,11 @@ func main() { convertUtsnameRegex := regexp.MustCompile(`((Sys|Node|Domain)name|Release|Version|Machine)(\s+)\[(\d+)\]u?int8`) b = convertUtsnameRegex.ReplaceAll(b, []byte("$1$3[$4]byte")) + // Convert [n]int8 to [n]byte in Statvfs_t members to simplify + // conversion to string. + convertStatvfsRegex := regexp.MustCompile(`((Fstype|Mnton|Mntfrom)name)(\s+)\[(\d+)\]int8`) + b = convertStatvfsRegex.ReplaceAll(b, []byte("$1$3[$4]byte")) + // Convert [1024]int8 to [1024]byte in Ptmget members convertPtmget := regexp.MustCompile(`([SC]n)(\s+)\[(\d+)\]u?int8`) b = convertPtmget.ReplaceAll(b, []byte("$1[$3]byte")) diff --git a/vendor/golang.org/x/sys/unix/mksyscall.go b/vendor/golang.org/x/sys/unix/mksyscall.go index e4af9424e..9e540cc89 100644 --- a/vendor/golang.org/x/sys/unix/mksyscall.go +++ b/vendor/golang.org/x/sys/unix/mksyscall.go @@ -121,7 +121,7 @@ func main() { } libc := false - if goos == "darwin" && strings.Contains(buildTags(), ",go1.12") { + if goos == "darwin" && (strings.Contains(buildTags(), ",go1.12") || strings.Contains(buildTags(), ",go1.13")) { libc = true } trampolines := map[string]bool{} @@ -292,11 +292,6 @@ func main() { asm = "syscall_" + strings.ToLower(asm[:1]) + asm[1:] // internal syscall call sysname = strings.TrimPrefix(sysname, "SYS_") // remove SYS_ sysname = strings.ToLower(sysname) // lowercase - if sysname == "getdirentries64" { - // Special case - libSystem name and - // raw syscall name don't match. - sysname = "__getdirentries64" - } libcFn = sysname sysname = "funcPC(libc_" + sysname + "_trampoline)" } diff --git a/vendor/golang.org/x/sys/unix/mksyscall_solaris.go b/vendor/golang.org/x/sys/unix/mksyscall_solaris.go index 3d864738b..675597e44 100644 --- a/vendor/golang.org/x/sys/unix/mksyscall_solaris.go +++ b/vendor/golang.org/x/sys/unix/mksyscall_solaris.go @@ -32,9 +32,10 @@ import ( ) var ( - b32 = flag.Bool("b32", false, "32bit big-endian") - l32 = flag.Bool("l32", false, "32bit little-endian") - tags = flag.String("tags", "", "build tags") + b32 = flag.Bool("b32", false, "32bit big-endian") + l32 = flag.Bool("l32", false, "32bit little-endian") + tags = flag.String("tags", "", "build tags") + illumos = flag.Bool("illumos", false, "illumos specific code generation") ) // cmdLine returns this programs's commandline arguments @@ -306,11 +307,16 @@ func main() { imp := "" if pack != "unix" { imp = "import \"golang.org/x/sys/unix\"\n" + } + syscallimp := "" + if !*illumos { + syscallimp = "\"syscall\"" } + vardecls := "\t" + strings.Join(vars, ",\n\t") vardecls += " syscallFunc" - fmt.Printf(srcTemplate, cmdLine(), buildTags(), pack, imp, dynimports, linknames, vardecls, text) + fmt.Printf(srcTemplate, cmdLine(), buildTags(), pack, syscallimp, imp, dynimports, linknames, vardecls, text) } const srcTemplate = `// %s @@ -321,8 +327,8 @@ const srcTemplate = `// %s package %s import ( - "syscall" - "unsafe" + "unsafe" + %s ) %s %s diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go b/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go new file mode 100644 index 000000000..5144deecc --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go @@ -0,0 +1,16 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unix + +// Round the length of a raw sockaddr up to align it properly. +func cmsgAlignOf(salen int) int { + salign := SizeofPtr + if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { + // 64-bit Dragonfly before the September 2019 ABI changes still requires + // 32-bit aligned access to network subsystem. + salign = 4 + } + return (salen + salign - 1) & ^(salign - 1) +} diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_linux.go b/vendor/golang.org/x/sys/unix/sockcmsg_linux.go index 6079eb4ac..8bf457059 100644 --- a/vendor/golang.org/x/sys/unix/sockcmsg_linux.go +++ b/vendor/golang.org/x/sys/unix/sockcmsg_linux.go @@ -17,7 +17,7 @@ func UnixCredentials(ucred *Ucred) []byte { h.Level = SOL_SOCKET h.Type = SCM_CREDENTIALS h.SetLen(CmsgLen(SizeofUcred)) - *((*Ucred)(cmsgData(h))) = *ucred + *(*Ucred)(h.data(0)) = *ucred return b } diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go index 062bcabab..003916ed7 100644 --- a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go +++ b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go @@ -9,35 +9,9 @@ package unix import ( - "runtime" "unsafe" ) -// Round the length of a raw sockaddr up to align it properly. -func cmsgAlignOf(salen int) int { - salign := SizeofPtr - - switch runtime.GOOS { - case "aix": - // There is no alignment on AIX. - salign = 1 - case "darwin", "dragonfly", "solaris", "illumos": - // NOTE: It seems like 64-bit Darwin, DragonFly BSD, - // illumos, and Solaris kernels still require 32-bit - // aligned access to network subsystem. - if SizeofPtr == 8 { - salign = 4 - } - case "netbsd", "openbsd": - // NetBSD and OpenBSD armv7 require 64-bit alignment. - if runtime.GOARCH == "arm" { - salign = 8 - } - } - - return (salen + salign - 1) & ^(salign - 1) -} - // CmsgLen returns the value to store in the Len field of the Cmsghdr // structure, taking into account any necessary alignment. func CmsgLen(datalen int) int { @@ -50,8 +24,8 @@ func CmsgSpace(datalen int) int { return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen) } -func cmsgData(h *Cmsghdr) unsafe.Pointer { - return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr))) +func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer { + return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)) + offset) } // SocketControlMessage represents a socket control message. @@ -94,10 +68,8 @@ func UnixRights(fds ...int) []byte { h.Level = SOL_SOCKET h.Type = SCM_RIGHTS h.SetLen(CmsgLen(datalen)) - data := cmsgData(h) - for _, fd := range fds { - *(*int32)(data) = int32(fd) - data = unsafe.Pointer(uintptr(data) + 4) + for i, fd := range fds { + *(*int32)(h.data(4 * uintptr(i))) = int32(fd) } return b } diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go new file mode 100644 index 000000000..7d08dae5b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go @@ -0,0 +1,38 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build aix darwin freebsd linux netbsd openbsd solaris + +package unix + +import ( + "runtime" +) + +// Round the length of a raw sockaddr up to align it properly. +func cmsgAlignOf(salen int) int { + salign := SizeofPtr + + // dragonfly needs to check ABI version at runtime, see cmsgAlignOf in + // sockcmsg_dragonfly.go + switch runtime.GOOS { + case "aix": + // There is no alignment on AIX. + salign = 1 + case "darwin", "illumos", "solaris": + // NOTE: It seems like 64-bit Darwin, Illumos and Solaris + // kernels still require 32-bit aligned access to network + // subsystem. + if SizeofPtr == 8 { + salign = 4 + } + case "netbsd", "openbsd": + // NetBSD and OpenBSD armv7 require 64-bit alignment. + if runtime.GOARCH == "arm" { + salign = 8 + } + } + + return (salen + salign - 1) & ^(salign - 1) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go index a079243dc..9ad8a0d4a 100644 --- a/vendor/golang.org/x/sys/unix/syscall_aix.go +++ b/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -280,6 +280,22 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e return -1, ENOSYS } +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + reclen, ok := direntReclen(buf) + if !ok { + return 0, false + } + return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true +} + //sys getdirent(fd int, buf []byte) (n int, err error) func Getdents(fd int, buf []byte) (n int, err error) { return getdirent(fd, buf) @@ -334,49 +350,12 @@ func (w WaitStatus) Signal() Signal { func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 } -func (w WaitStatus) CoreDump() bool { return w&0x200 != 0 } +func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 } func (w WaitStatus) TrapCause() int { return -1 } //sys ioctl(fd int, req uint, arg uintptr) (err error) -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - // fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX // There is no way to create a custom fcntl and to keep //sys fcntl easily, // Therefore, the programmer must call dup2 instead of fcntl in this case. diff --git a/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go b/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go index bf05603f1..b3c8e3301 100644 --- a/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go +++ b/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go @@ -29,6 +29,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go index 13d4321f4..9a6e02417 100644 --- a/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go +++ b/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go @@ -29,6 +29,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go index 97a8eef6f..68605db62 100644 --- a/vendor/golang.org/x/sys/unix/syscall_bsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_bsd.go @@ -237,7 +237,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { break } } - bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] sa.Name = string(bytes) return sa, nil @@ -413,8 +413,6 @@ func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err e return kevent(kq, change, len(changes), event, len(events), timeout) } -//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL - // sysctlmib translates name to mib number and appends any additional args. func sysctlmib(name string, args ...int) ([]_C_int, error) { // Translate name to mib number. @@ -512,6 +510,23 @@ func SysctlRaw(name string, args ...int) ([]byte, error) { return buf[:n], nil } +func SysctlClockinfo(name string) (*Clockinfo, error) { + mib, err := sysctlmib(name) + if err != nil { + return nil, err + } + + n := uintptr(SizeofClockinfo) + var ci Clockinfo + if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil { + return nil, err + } + if n != SizeofClockinfo { + return nil, EIO + } + return &ci, nil +} + //sys utimes(path string, timeval *[2]Timeval) (err error) func Utimes(path string, tv []Timeval) error { @@ -579,8 +594,6 @@ func Futimes(fd int, tv []Timeval) error { return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) } -//sys fcntl(fd int, cmd int, arg int) (val int, err error) - //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) func Poll(fds []PollFd, timeout int) (n int, err error) { diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go b/vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go new file mode 100644 index 000000000..6a15cba61 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go @@ -0,0 +1,29 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin,go1.12,!go1.13 + +package unix + +import ( + "unsafe" +) + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + // To implement this using libSystem we'd need syscall_syscallPtr for + // fdopendir. However, syscallPtr was only added in Go 1.13, so we fall + // back to raw syscalls for this func on Go 1.12. + var p unsafe.Pointer + if len(buf) > 0 { + p = unsafe.Pointer(&buf[0]) + } else { + p = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + return n, errnoErr(e1) + } + return n, nil +} diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go b/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go new file mode 100644 index 000000000..f911617be --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go @@ -0,0 +1,101 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin,go1.13 + +package unix + +import "unsafe" + +//sys closedir(dir uintptr) (err error) +//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) + +func fdopendir(fd int) (dir uintptr, err error) { + r0, _, e1 := syscall_syscallPtr(funcPC(libc_fdopendir_trampoline), uintptr(fd), 0, 0) + dir = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_fdopendir_trampoline() + +//go:linkname libc_fdopendir libc_fdopendir +//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib" + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + // Simulate Getdirentries using fdopendir/readdir_r/closedir. + // We store the number of entries to skip in the seek + // offset of fd. See issue #31368. + // It's not the full required semantics, but should handle the case + // of calling Getdirentries or ReadDirent repeatedly. + // It won't handle assigning the results of lseek to *basep, or handle + // the directory being edited underfoot. + skip, err := Seek(fd, 0, 1 /* SEEK_CUR */) + if err != nil { + return 0, err + } + + // We need to duplicate the incoming file descriptor + // because the caller expects to retain control of it, but + // fdopendir expects to take control of its argument. + // Just Dup'ing the file descriptor is not enough, as the + // result shares underlying state. Use Openat to make a really + // new file descriptor referring to the same directory. + fd2, err := Openat(fd, ".", O_RDONLY, 0) + if err != nil { + return 0, err + } + d, err := fdopendir(fd2) + if err != nil { + Close(fd2) + return 0, err + } + defer closedir(d) + + var cnt int64 + for { + var entry Dirent + var entryp *Dirent + e := readdir_r(d, &entry, &entryp) + if e != 0 { + return n, errnoErr(e) + } + if entryp == nil { + break + } + if skip > 0 { + skip-- + cnt++ + continue + } + reclen := int(entry.Reclen) + if reclen > len(buf) { + // Not enough room. Return for now. + // The counter will let us know where we should start up again. + // Note: this strategy for suspending in the middle and + // restarting is O(n^2) in the length of the directory. Oh well. + break + } + // Copy entry into return buffer. + s := struct { + ptr unsafe.Pointer + siz int + cap int + }{ptr: unsafe.Pointer(&entry), siz: reclen, cap: reclen} + copy(buf, *(*[]byte)(unsafe.Pointer(&s))) + buf = buf[reclen:] + n += reclen + cnt++ + } + // Set the seek offset of the input fd to record + // how many files we've already returned. + _, err = Seek(fd, cnt, 0 /* SEEK_SET */) + if err != nil { + return n, err + } + + return n, nil +} diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go index 212009189..9a5a6ee54 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -77,7 +77,18 @@ func nametomib(name string) (mib []_C_int, err error) { return buf[0 : n/siz], nil } -//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) } func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) } @@ -144,23 +155,6 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) ( //sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) -func SysctlClockinfo(name string) (*Clockinfo, error) { - mib, err := sysctlmib(name) - if err != nil { - return nil, err - } - - n := uintptr(SizeofClockinfo) - var ci Clockinfo - if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil { - return nil, err - } - if n != SizeofClockinfo { - return nil, EIO - } - return &ci, nil -} - //sysnb pipe() (r int, w int, err error) func Pipe(p []int) (err error) { @@ -322,48 +316,15 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error { * Wrapped */ +//sys fcntl(fd int, cmd int, arg int) (val int, err error) + //sys kill(pid int, signum int, posix int) (err error) func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) } //sys ioctl(fd int, req uint, arg uintptr) (err error) -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL func Uname(uname *Utsname) error { mib := []_C_int{CTL_KERN, KERN_OSTYPE} @@ -486,7 +447,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Revoke(path string) (err error) //sys Rmdir(path string) (err error) //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sys Setegid(egid int) (err error) //sysnb Seteuid(euid int) (err error) //sysnb Setgid(gid int) (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_386.1_11.go b/vendor/golang.org/x/sys/unix/syscall_darwin_386.1_11.go new file mode 100644 index 000000000..6b223f91a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_386.1_11.go @@ -0,0 +1,9 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin,386,!go1.12 + +package unix + +//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go index 489726fa9..707ba4f59 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go @@ -10,6 +10,8 @@ import ( "syscall" ) +//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) + func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: int32(sec), Nsec: int32(nsec)} } @@ -43,6 +45,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -56,7 +62,6 @@ const SYS___SYSCTL = SYS_SYSCTL //sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 //sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 //sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64 -//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 //sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64 //sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 //sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go new file mode 100644 index 000000000..68ebd6fab --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go @@ -0,0 +1,9 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin,amd64,!go1.12 + +package unix + +//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go index 914b89bde..fdbfb5911 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go @@ -10,6 +10,8 @@ import ( "syscall" ) +//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) + func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: sec, Nsec: nsec} } @@ -43,6 +45,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -56,7 +62,6 @@ const SYS___SYSCTL = SYS_SYSCTL //sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 //sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 //sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64 -//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 //sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64 //sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 //sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go new file mode 100644 index 000000000..0e3f25aca --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin,arm,!go1.12 + +package unix + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + return 0, ENOSYS +} diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go index 4a284cf50..f8bc4cfb1 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go @@ -8,6 +8,10 @@ import ( "syscall" ) +func ptrace(request int, pid int, addr uintptr, data uintptr) error { + return ENOTSUP +} + func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: int32(sec), Nsec: int32(nsec)} } @@ -41,6 +45,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -58,7 +66,3 @@ const SYS___SYSCTL = SYS_SYSCTL //sys Lstat(path string, stat *Stat_t) (err error) //sys Stat(path string, stat *Stat_t) (err error) //sys Statfs(path string, stat *Statfs_t) (err error) - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - return 0, ENOSYS -} diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go new file mode 100644 index 000000000..01d450406 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin,arm64,!go1.12 + +package unix + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + return 0, ENOSYS +} diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go index 52dcd88f6..5ede3ac31 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go @@ -10,6 +10,10 @@ import ( "syscall" ) +func ptrace(request int, pid int, addr uintptr, data uintptr) error { + return ENOTSUP +} + func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: sec, Nsec: nsec} } @@ -43,6 +47,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -60,7 +68,3 @@ const SYS___SYSCTL = SYS_SYSCTL //sys Lstat(path string, stat *Stat_t) (err error) //sys Stat(path string, stat *Stat_t) (err error) //sys Statfs(path string, stat *Statfs_t) (err error) - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - return 0, ENOSYS -} diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go b/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go index 4b4ae460f..f34c86c89 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go @@ -15,6 +15,7 @@ func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscallPtr(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) //go:linkname syscall_syscall syscall.syscall //go:linkname syscall_syscall6 syscall.syscall6 @@ -22,6 +23,7 @@ func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, er //go:linkname syscall_syscall9 syscall.syscall9 //go:linkname syscall_rawSyscall syscall.rawSyscall //go:linkname syscall_rawSyscall6 syscall.rawSyscall6 +//go:linkname syscall_syscallPtr syscall.syscallPtr // Find the entry point for f. See comments in runtime/proc.go for the // function of the same name. diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go index bf537011f..8a195ae58 100644 --- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go @@ -12,7 +12,25 @@ package unix -import "unsafe" +import ( + "sync" + "unsafe" +) + +// See version list in https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/param.h +var ( + osreldateOnce sync.Once + osreldate uint32 +) + +// First __DragonFly_version after September 2019 ABI changes +// http://lists.dragonflybsd.org/pipermail/users/2019-September/358280.html +const _dragonflyABIChangeVersion = 500705 + +func supportsABI(ver uint32) bool { + osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") }) + return osreldate >= ver +} // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. type SockaddrDatalink struct { @@ -57,6 +75,22 @@ func nametomib(name string) (mib []_C_int, err error) { return buf[0 : n/siz], nil } +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} + +func direntReclen(buf []byte) (uint64, bool) { + namlen, ok := direntNamlen(buf) + if !ok { + return 0, false + } + return (16 + namlen + 1 + 7) &^ 7, true +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + //sysnb pipe() (r int, w int, err error) func Pipe(p []int) (err error) { @@ -134,42 +168,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error { //sys ioctl(fd int, req uint, arg uintptr) (err error) -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error { err := sysctl(mib, old, oldlen, nil, 0) @@ -309,7 +308,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Revoke(path string) (err error) //sys Rmdir(path string) (err error) //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sysnb Setegid(egid int) (err error) //sysnb Seteuid(euid int) (err error) //sysnb Setgid(gid int) (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go index 9babb31ea..a6b4830ac 100644 --- a/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go @@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go index c9c802df0..6932e7c2c 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go @@ -82,6 +82,18 @@ func nametomib(name string) (mib []_C_int, err error) { return buf[0 : n/siz], nil } +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + func Pipe(p []int) (err error) { return Pipe2(p, 0) } @@ -189,42 +201,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error { //sys ioctl(fd int, req uint, arg uintptr) (err error) -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL func Uname(uname *Utsname) error { mib := []_C_int{CTL_KERN, KERN_OSTYPE} @@ -485,8 +462,12 @@ func convertFromDirents11(buf []byte, old []byte) int { dstPos := 0 srcPos := 0 for dstPos+fixedSize < len(buf) && srcPos+oldFixedSize < len(old) { - dstDirent := (*Dirent)(unsafe.Pointer(&buf[dstPos])) - srcDirent := (*dirent_freebsd11)(unsafe.Pointer(&old[srcPos])) + var dstDirent Dirent + var srcDirent dirent_freebsd11 + + // If multiple direntries are written, sometimes when we reach the final one, + // we may have cap of old less than size of dirent_freebsd11. + copy((*[unsafe.Sizeof(srcDirent)]byte)(unsafe.Pointer(&srcDirent))[:], old[srcPos:]) reclen := roundup(fixedSize+int(srcDirent.Namlen)+1, 8) if dstPos+reclen > len(buf) { @@ -502,6 +483,7 @@ func convertFromDirents11(buf []byte, old []byte) int { dstDirent.Pad1 = 0 copy(dstDirent.Name[:], srcDirent.Name[:srcDirent.Namlen]) + copy(buf[dstPos:], (*[unsafe.Sizeof(dstDirent)]byte)(unsafe.Pointer(&dstDirent))[:]) padding := buf[dstPos+fixedSize+int(dstDirent.Namlen) : dstPos+reclen] for i := range padding { padding[i] = 0 @@ -539,20 +521,10 @@ func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) { return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0) } -func PtraceGetFsBase(pid int, fsbase *int64) (err error) { - return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0) -} - func PtraceGetRegs(pid int, regsout *Reg) (err error) { return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0) } -func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { - ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint(countin)} - err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) - return int(ioDesc.Len), err -} - func PtraceLwpEvents(pid int, enable int) (err error) { return ptrace(PTRACE_LWPEVENTS, pid, 0, enable) } @@ -676,7 +648,7 @@ func PtraceSingleStep(pid int) (err error) { //sys Revoke(path string) (err error) //sys Rmdir(path string) (err error) //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sysnb Setegid(egid int) (err error) //sysnb Seteuid(euid int) (err error) //sysnb Setgid(gid int) (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go index 21e03958c..72a506ddc 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go @@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -50,3 +54,13 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e } func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceGetFsBase(pid int, fsbase *int64) (err error) { + return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0) +} + +func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)} + err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go index 9c945a657..d5e376aca 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go @@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -50,3 +54,13 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e } func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceGetFsBase(pid int, fsbase *int64) (err error) { + return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0) +} + +func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)} + err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go index 5cd6243f2..4ea45bce5 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go @@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -50,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e } func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)} + err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go index a31805487..aa5326db1 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go @@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } @@ -50,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e } func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)} + err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_illumos.go b/vendor/golang.org/x/sys/unix/syscall_illumos.go new file mode 100644 index 000000000..99e62dcd8 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_illumos.go @@ -0,0 +1,57 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// illumos system calls not present on Solaris. + +// +build amd64,illumos + +package unix + +import "unsafe" + +func bytes2iovec(bs [][]byte) []Iovec { + iovecs := make([]Iovec, len(bs)) + for i, b := range bs { + iovecs[i].SetLen(len(b)) + if len(b) > 0 { + // somehow Iovec.Base on illumos is (*int8), not (*byte) + iovecs[i].Base = (*int8)(unsafe.Pointer(&b[0])) + } else { + iovecs[i].Base = (*int8)(unsafe.Pointer(&_zero)) + } + } + return iovecs +} + +//sys readv(fd int, iovs []Iovec) (n int, err error) + +func Readv(fd int, iovs [][]byte) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = readv(fd, iovecs) + return n, err +} + +//sys preadv(fd int, iovs []Iovec, off int64) (n int, err error) + +func Preadv(fd int, iovs [][]byte, off int64) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = preadv(fd, iovecs, off) + return n, err +} + +//sys writev(fd int, iovs []Iovec) (n int, err error) + +func Writev(fd int, iovs [][]byte) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = writev(fd, iovecs) + return n, err +} + +//sys pwritev(fd int, iovs []Iovec, off int64) (n int, err error) + +func Pwritev(fd int, iovs [][]byte, off int64) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = pwritev(fd, iovecs, off) + return n, err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go index 11d07ace2..bbe1abbce 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -71,6 +71,17 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { // ioctl itself should not be exposed directly, but additional get/set // functions for specific types are permissible. +// IoctlRetInt performs an ioctl operation specified by req on a device +// associated with opened file descriptor fd, and returns a non-negative +// integer that is returned by the ioctl syscall. +func IoctlRetInt(fd int, req uint) (int, error) { + ret, _, err := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), 0) + if err != 0 { + return 0, err + } + return int(ret), nil +} + // IoctlSetPointerInt performs an ioctl operation which sets an // integer value on fd, using the specified request number. The ioctl // argument is called with a pointer to the integer value, rather than @@ -80,52 +91,18 @@ func IoctlSetPointerInt(fd int, req uint, value int) error { return ioctl(fd, req, uintptr(unsafe.Pointer(&v))) } -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - func IoctlSetRTCTime(fd int, value *RTCTime) error { err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value))) runtime.KeepAlive(value) return err } -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - func IoctlGetUint32(fd int, req uint) (uint32, error) { var value uint32 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) return value, err } -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - func IoctlGetRTCTime(fd int) (*RTCTime, error) { var value RTCTime err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value))) @@ -798,6 +775,104 @@ func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) { return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil } +// SockaddrTIPC implements the Sockaddr interface for AF_TIPC type sockets. +// For more information on TIPC, see: http://tipc.sourceforge.net/. +type SockaddrTIPC struct { + // Scope is the publication scopes when binding service/service range. + // Should be set to TIPC_CLUSTER_SCOPE or TIPC_NODE_SCOPE. + Scope int + + // Addr is the type of address used to manipulate a socket. Addr must be + // one of: + // - *TIPCSocketAddr: "id" variant in the C addr union + // - *TIPCServiceRange: "nameseq" variant in the C addr union + // - *TIPCServiceName: "name" variant in the C addr union + // + // If nil, EINVAL will be returned when the structure is used. + Addr TIPCAddr + + raw RawSockaddrTIPC +} + +// TIPCAddr is implemented by types that can be used as an address for +// SockaddrTIPC. It is only implemented by *TIPCSocketAddr, *TIPCServiceRange, +// and *TIPCServiceName. +type TIPCAddr interface { + tipcAddrtype() uint8 + tipcAddr() [12]byte +} + +func (sa *TIPCSocketAddr) tipcAddr() [12]byte { + var out [12]byte + copy(out[:], (*(*[unsafe.Sizeof(TIPCSocketAddr{})]byte)(unsafe.Pointer(sa)))[:]) + return out +} + +func (sa *TIPCSocketAddr) tipcAddrtype() uint8 { return TIPC_SOCKET_ADDR } + +func (sa *TIPCServiceRange) tipcAddr() [12]byte { + var out [12]byte + copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceRange{})]byte)(unsafe.Pointer(sa)))[:]) + return out +} + +func (sa *TIPCServiceRange) tipcAddrtype() uint8 { return TIPC_SERVICE_RANGE } + +func (sa *TIPCServiceName) tipcAddr() [12]byte { + var out [12]byte + copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceName{})]byte)(unsafe.Pointer(sa)))[:]) + return out +} + +func (sa *TIPCServiceName) tipcAddrtype() uint8 { return TIPC_SERVICE_ADDR } + +func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Addr == nil { + return nil, 0, EINVAL + } + + sa.raw.Family = AF_TIPC + sa.raw.Scope = int8(sa.Scope) + sa.raw.Addrtype = sa.Addr.tipcAddrtype() + sa.raw.Addr = sa.Addr.tipcAddr() + + return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil +} + +// SockaddrL2TPIP implements the Sockaddr interface for IPPROTO_L2TP/AF_INET sockets. +type SockaddrL2TPIP struct { + Addr [4]byte + ConnId uint32 + raw RawSockaddrL2TPIP +} + +func (sa *SockaddrL2TPIP) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_INET + sa.raw.Conn_id = sa.ConnId + for i := 0; i < len(sa.Addr); i++ { + sa.raw.Addr[i] = sa.Addr[i] + } + return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP, nil +} + +// SockaddrL2TPIP6 implements the Sockaddr interface for IPPROTO_L2TP/AF_INET6 sockets. +type SockaddrL2TPIP6 struct { + Addr [16]byte + ZoneId uint32 + ConnId uint32 + raw RawSockaddrL2TPIP6 +} + +func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_INET6 + sa.raw.Conn_id = sa.ConnId + sa.raw.Scope_id = sa.ZoneId + for i := 0; i < len(sa.Addr); i++ { + sa.raw.Addr[i] = sa.Addr[i] + } + return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, nil +} + func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { switch rsa.Addr.Family { case AF_NETLINK: @@ -843,30 +918,63 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { for n < len(pp.Path) && pp.Path[n] != 0 { n++ } - bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] sa.Name = string(bytes) return sa, nil case AF_INET: - pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet4) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] + proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) + if err != nil { + return nil, err + } + + switch proto { + case IPPROTO_L2TP: + pp := (*RawSockaddrL2TPIP)(unsafe.Pointer(rsa)) + sa := new(SockaddrL2TPIP) + sa.ConnId = pp.Conn_id + for i := 0; i < len(sa.Addr); i++ { + sa.Addr[i] = pp.Addr[i] + } + return sa, nil + default: + pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet4) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + for i := 0; i < len(sa.Addr); i++ { + sa.Addr[i] = pp.Addr[i] + } + return sa, nil } - return sa, nil case AF_INET6: - pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet6) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - sa.ZoneId = pp.Scope_id - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] + proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) + if err != nil { + return nil, err + } + + switch proto { + case IPPROTO_L2TP: + pp := (*RawSockaddrL2TPIP6)(unsafe.Pointer(rsa)) + sa := new(SockaddrL2TPIP6) + sa.ConnId = pp.Conn_id + sa.ZoneId = pp.Scope_id + for i := 0; i < len(sa.Addr); i++ { + sa.Addr[i] = pp.Addr[i] + } + return sa, nil + default: + pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet6) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.ZoneId = pp.Scope_id + for i := 0; i < len(sa.Addr); i++ { + sa.Addr[i] = pp.Addr[i] + } + return sa, nil } - return sa, nil case AF_VSOCK: pp := (*RawSockaddrVM)(unsafe.Pointer(rsa)) @@ -923,6 +1031,27 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { break } } + return sa, nil + case AF_TIPC: + pp := (*RawSockaddrTIPC)(unsafe.Pointer(rsa)) + + sa := &SockaddrTIPC{ + Scope: int(pp.Scope), + } + + // Determine which union variant is present in pp.Addr by checking + // pp.Addrtype. + switch pp.Addrtype { + case TIPC_SERVICE_RANGE: + sa.Addr = (*TIPCServiceRange)(unsafe.Pointer(&pp.Addr)) + case TIPC_SERVICE_ADDR: + sa.Addr = (*TIPCServiceName)(unsafe.Pointer(&pp.Addr)) + case TIPC_SOCKET_ADDR: + sa.Addr = (*TIPCSocketAddr)(unsafe.Pointer(&pp.Addr)) + default: + return nil, EINVAL + } + return sa, nil } return nil, EAFNOSUPPORT @@ -1160,6 +1289,34 @@ func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer) } +// KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This +// command limits the set of keys that can be linked to the keyring, regardless +// of keyring permissions. The command requires the "setattr" permission. +// +// When called with an empty keyType the command locks the keyring, preventing +// any further keys from being linked to the keyring. +// +// The "asymmetric" keyType defines restrictions requiring key payloads to be +// DER encoded X.509 certificates signed by keys in another keyring. Restrictions +// for "asymmetric" include "builtin_trusted", "builtin_and_secondary_trusted", +// "key_or_keyring:", and "key_or_keyring::chain". +// +// As of Linux 4.12, only the "asymmetric" keyType defines type-specific +// restrictions. +// +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_restrict_keyring.3.html +// http://man7.org/linux/man-pages/man2/keyctl.2.html +func KeyctlRestrictKeyring(ringid int, keyType string, restriction string) error { + if keyType == "" { + return keyctlRestrictKeyring(KEYCTL_RESTRICT_KEYRING, ringid) + } + return keyctlRestrictKeyringByType(KEYCTL_RESTRICT_KEYRING, ringid, keyType, restriction) +} + +//sys keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) = SYS_KEYCTL +//sys keyctlRestrictKeyring(cmd int, arg2 int) (err error) = SYS_KEYCTL + func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { var msg Msghdr var rsa RawSockaddrAny @@ -1403,8 +1560,12 @@ func PtraceSyscall(pid int, signal int) (err error) { func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) } +func PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, pid, 0, 0) } + func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) } +func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) } + func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) } //sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) @@ -1413,6 +1574,22 @@ func Reboot(cmd int) (err error) { return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "") } +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + reclen, ok := direntReclen(buf) + if !ok { + return 0, false + } + return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true +} + //sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) { @@ -1445,8 +1622,8 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Acct(path string) (err error) //sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) //sys Adjtimex(buf *Timex) (state int, err error) -//sys Capget(hdr *CapUserHeader, data *CapUserData) (err error) -//sys Capset(hdr *CapUserHeader, data *CapUserData) (err error) +//sysnb Capget(hdr *CapUserHeader, data *CapUserData) (err error) +//sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error) //sys Chdir(path string) (err error) //sys Chroot(path string) (err error) //sys ClockGetres(clockid int32, res *Timespec) (err error) @@ -1465,7 +1642,6 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Fchdir(fd int) (err error) //sys Fchmod(fd int, mode uint32) (err error) //sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) -//sys fcntl(fd int, cmd int, arg int) (val int, err error) //sys Fdatasync(fd int) (err error) //sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) //sys FinitModule(fd int, params string, flags int) (err error) @@ -1521,6 +1697,17 @@ func Getpgrp() (pid int) { //sysnb Settimeofday(tv *Timeval) (err error) //sys Setns(fd int, nstype int) (err error) +// PrctlRetInt performs a prctl operation specified by option and further +// optional arguments arg2 through arg5 depending on option. It returns a +// non-negative integer that is returned by the prctl syscall. +func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (int, error) { + ret, _, err := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) + if err != 0 { + return 0, err + } + return int(ret), nil +} + // issue 1435. // On linux Setuid and Setgid only affects the current thread, not the process. // This does not match what most callers expect so we must return an error @@ -1534,6 +1721,30 @@ func Setgid(uid int) (err error) { return EOPNOTSUPP } +// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set. +// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability. +// If the call fails due to other reasons, current fsgid will be returned. +func SetfsgidRetGid(gid int) (int, error) { + return setfsgid(gid) +} + +// SetfsuidRetUid sets fsuid for current thread and returns previous fsuid set. +// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability +// If the call fails due to other reasons, current fsuid will be returned. +func SetfsuidRetUid(uid int) (int, error) { + return setfsuid(uid) +} + +func Setfsgid(gid int) error { + _, err := setfsgid(gid) + return err +} + +func Setfsuid(uid int) error { + _, err := setfsuid(uid) + return err +} + func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) { return signalfd(fd, sigmask, _C__NSIG/8, flags) } @@ -1556,6 +1767,123 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) { //sys exitThread(code int) (err error) = SYS_EXIT //sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ //sys writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE +//sys readv(fd int, iovs []Iovec) (n int, err error) = SYS_READV +//sys writev(fd int, iovs []Iovec) (n int, err error) = SYS_WRITEV +//sys preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PREADV +//sys pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PWRITEV +//sys preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2 +//sys pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2 + +func bytes2iovec(bs [][]byte) []Iovec { + iovecs := make([]Iovec, len(bs)) + for i, b := range bs { + iovecs[i].SetLen(len(b)) + if len(b) > 0 { + iovecs[i].Base = &b[0] + } else { + iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero)) + } + } + return iovecs +} + +// offs2lohi splits offs into its lower and upper unsigned long. On 64-bit +// systems, hi will always be 0. On 32-bit systems, offs will be split in half. +// preadv/pwritev chose this calling convention so they don't need to add a +// padding-register for alignment on ARM. +func offs2lohi(offs int64) (lo, hi uintptr) { + return uintptr(offs), uintptr(uint64(offs) >> SizeofLong) +} + +func Readv(fd int, iovs [][]byte) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = readv(fd, iovecs) + readvRacedetect(iovecs, n, err) + return n, err +} + +func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) { + iovecs := bytes2iovec(iovs) + lo, hi := offs2lohi(offset) + n, err = preadv(fd, iovecs, lo, hi) + readvRacedetect(iovecs, n, err) + return n, err +} + +func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { + iovecs := bytes2iovec(iovs) + lo, hi := offs2lohi(offset) + n, err = preadv2(fd, iovecs, lo, hi, flags) + readvRacedetect(iovecs, n, err) + return n, err +} + +func readvRacedetect(iovecs []Iovec, n int, err error) { + if !raceenabled { + return + } + for i := 0; n > 0 && i < len(iovecs); i++ { + m := int(iovecs[i].Len) + if m > n { + m = n + } + n -= m + if m > 0 { + raceWriteRange(unsafe.Pointer(iovecs[i].Base), m) + } + } + if err == nil { + raceAcquire(unsafe.Pointer(&ioSync)) + } +} + +func Writev(fd int, iovs [][]byte) (n int, err error) { + iovecs := bytes2iovec(iovs) + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + n, err = writev(fd, iovecs) + writevRacedetect(iovecs, n) + return n, err +} + +func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) { + iovecs := bytes2iovec(iovs) + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + lo, hi := offs2lohi(offset) + n, err = pwritev(fd, iovecs, lo, hi) + writevRacedetect(iovecs, n) + return n, err +} + +func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { + iovecs := bytes2iovec(iovs) + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + lo, hi := offs2lohi(offset) + n, err = pwritev2(fd, iovecs, lo, hi, flags) + writevRacedetect(iovecs, n) + return n, err +} + +func writevRacedetect(iovecs []Iovec, n int) { + if !raceenabled { + return + } + for i := 0; n > 0 && i < len(iovecs); i++ { + m := int(iovecs[i].Len) + if m > n { + m = n + } + n -= m + if m > 0 { + raceReadRange(unsafe.Pointer(iovecs[i].Base), m) + } + } +} // mmap varies by architecture; see syscall_linux_*.go. //sys munmap(addr uintptr, length uintptr) (err error) @@ -1745,6 +2073,17 @@ func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err erro return openByHandleAt(mountFD, handle.fileHandle, flags) } +// Klogset wraps the sys_syslog system call; it sets console_loglevel to +// the value specified by arg and passes a dummy pointer to bufp. +func Klogset(typ int, arg int) (err error) { + var p unsafe.Pointer + _, _, errno := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(p), uintptr(arg)) + if errno != 0 { + return errnoErr(errno) + } + return nil +} + /* * Unimplemented */ diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_386.go index e2f8cf6e5..a8374b67c 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_386.go @@ -70,8 +70,8 @@ func Pipe2(p []int, flags int) (err error) { //sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 //sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 -//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32 -//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32 +//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32 +//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32 //sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32 //sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32 //sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32 @@ -372,6 +372,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go index 87a30744d..8ed1d546f 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go @@ -55,8 +55,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err } //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -163,6 +163,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go index f62679443..99ae61373 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go @@ -98,8 +98,8 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { //sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT -//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32 -//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32 +//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32 +//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32 //sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32 //sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32 //sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32 @@ -252,6 +252,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go index cb20b15d5..807a0b20c 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -42,8 +42,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err } //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -180,6 +180,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go index b3b21ec1e..af77e6e25 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go @@ -36,8 +36,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err } //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -208,10 +208,18 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } +func InotifyInit() (fd int, err error) { + return InotifyInit1(0) +} + //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) func Poll(fds []PollFd, timeout int) (n int, err error) { diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go index 5144d4e13..e286c6ba3 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go @@ -31,8 +31,8 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, //sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -220,6 +220,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go index 0a100b66a..ca0345aab 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go @@ -34,8 +34,8 @@ package unix //sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -91,6 +91,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go index 6230f6405..abdabbac3 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go @@ -41,8 +41,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err } //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -179,6 +179,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go index f81dbdc9c..533e9305e 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go @@ -34,8 +34,8 @@ import ( //sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -120,6 +120,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go index b69565616..d890a227b 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go @@ -30,8 +30,8 @@ package unix //sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) //sysnb Setregid(rgid int, egid int) (err error) //sysnb Setresgid(rgid int, egid int, sgid int) (err error) //sysnb Setresuid(ruid int, euid int, suid int) (err error) @@ -107,6 +107,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go index 45377107a..45b50a610 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go @@ -94,21 +94,16 @@ func nametomib(name string) (mib []_C_int, err error) { return mib, nil } -func SysctlClockinfo(name string) (*Clockinfo, error) { - mib, err := sysctlmib(name) - if err != nil { - return nil, err - } +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} - n := uintptr(SizeofClockinfo) - var ci Clockinfo - if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil { - return nil, err - } - if n != SizeofClockinfo { - return nil, EIO - } - return &ci, nil +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) } //sysnb pipe() (fd1 int, fd2 int, err error) @@ -175,42 +170,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error { //sys ioctl(fd int, req uint, arg uintptr) (err error) -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) { var value Ptmget @@ -272,6 +232,14 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e return sendfile(outfd, infd, offset, count) } +func Fstatvfs(fd int, buf *Statvfs_t) (err error) { + return Fstatvfs1(fd, buf, ST_WAIT) +} + +func Statvfs(path string, buf *Statvfs_t) (err error) { + return Statvfs1(path, buf, ST_WAIT) +} + /* * Exposed directly */ @@ -285,6 +253,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Close(fd int) (err error) //sys Dup(fd int) (nfd int, err error) //sys Dup2(from int, to int) (err error) +//sys Dup3(from int, to int, flags int) (err error) //sys Exit(code int) //sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) //sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) @@ -310,6 +279,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Fpathconf(fd int, name int) (val int, err error) //sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) = SYS_FSTATVFS1 //sys Fsync(fd int) (err error) //sys Ftruncate(fd int, length int64) (err error) //sysnb Getegid() (egid int) @@ -353,7 +323,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Revoke(path string) (err error) //sys Rmdir(path string) (err error) //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sysnb Setegid(egid int) (err error) //sysnb Seteuid(euid int) (err error) //sysnb Setgid(gid int) (err error) @@ -366,6 +336,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sysnb Settimeofday(tp *Timeval) (err error) //sysnb Setuid(uid int) (err error) //sys Stat(path string, stat *Stat_t) (err error) +//sys Statvfs1(path string, buf *Statvfs_t, flags int) (err error) = SYS_STATVFS1 //sys Symlink(path string, link string) (err error) //sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) //sys Sync() (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go index 24f74e58c..24da8b524 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go index 6878bf7ff..25a0ac825 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go index dbbfcf71d..21591ecd4 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go index f3434465a..804749635 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go index 4f34d6d03..a266e92a9 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go @@ -43,21 +43,16 @@ func nametomib(name string) (mib []_C_int, err error) { return nil, EINVAL } -func SysctlClockinfo(name string) (*Clockinfo, error) { - mib, err := sysctlmib(name) - if err != nil { - return nil, err - } +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} - n := uintptr(SizeofClockinfo) - var ci Clockinfo - if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil { - return nil, err - } - if n != SizeofClockinfo { - return nil, EIO - } - return &ci, nil +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) } func SysctlUvmexp(name string) (*Uvmexp, error) { @@ -77,16 +72,20 @@ func SysctlUvmexp(name string) (*Uvmexp, error) { return &u, nil } -//sysnb pipe(p *[2]_C_int) (err error) func Pipe(p []int) (err error) { + return Pipe2(p, 0) +} + +//sysnb pipe2(p *[2]_C_int, flags int) (err error) +func Pipe2(p []int, flags int) error { if len(p) != 2 { return EINVAL } var pp [2]_C_int - err = pipe(&pp) + err := pipe2(&pp, flags) p[0] = int(pp[0]) p[1] = int(pp[1]) - return + return err } //sys Getdents(fd int, buf []byte) (n int, err error) @@ -166,42 +165,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error { //sys ioctl(fd int, req uint, arg uintptr) (err error) -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL //sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) @@ -271,6 +235,7 @@ func Uname(uname *Utsname) error { //sys Close(fd int) (err error) //sys Dup(fd int) (nfd int, err error) //sys Dup2(from int, to int) (err error) +//sys Dup3(from int, to int, flags int) (err error) //sys Exit(code int) //sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) //sys Fchdir(fd int) (err error) @@ -328,7 +293,7 @@ func Uname(uname *Utsname) error { //sys Revoke(path string) (err error) //sys Rmdir(path string) (err error) //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sysnb Setegid(egid int) (err error) //sysnb Seteuid(euid int) (err error) //sysnb Setgid(gid int) (err error) @@ -375,7 +340,6 @@ func Uname(uname *Utsname) error { // clock_settime // closefrom // execve -// fcntl // fhopen // fhstat // fhstatfs diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go index d62da60d1..42b5a0e51 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go index 9a35334cb..6ea4b4883 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go index 5d812aaea..1c3d26fa2 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go index 0fb39cf5e..a8c458cb0 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go @@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) { msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go index 9147ba152..0e2a696ad 100644 --- a/vendor/golang.org/x/sys/unix/syscall_solaris.go +++ b/vendor/golang.org/x/sys/unix/syscall_solaris.go @@ -35,6 +35,22 @@ type SockaddrDatalink struct { raw RawSockaddrDatalink } +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + reclen, ok := direntReclen(buf) + if !ok { + return 0, false + } + return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true +} + //sysnb pipe(p *[2]_C_int) (n int, err error) func Pipe(p []int) (err error) { @@ -375,7 +391,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { for n < len(pp.Path) && pp.Path[n] != 0 { n++ } - bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] sa.Name = string(bytes) return sa, nil @@ -537,40 +553,10 @@ func Minor(dev uint64) uint32 { //sys ioctl(fd int, req uint, arg uintptr) (err error) -func IoctlSetInt(fd int, req uint, value int) (err error) { - return ioctl(fd, req, uintptr(value)) -} - -func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func ioctlSetTermios(fd int, req uint, value *Termios) (err error) { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - func IoctlSetTermio(fd int, req uint, value *Termio) (err error) { return ioctl(fd, req, uintptr(unsafe.Pointer(value))) } -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - func IoctlGetTermio(fd int, req uint) (*Termio, error) { var value Termio err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) @@ -663,7 +649,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) //sys Rmdir(path string) (err error) //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = lseek -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //sysnb Setegid(egid int) (err error) //sysnb Seteuid(euid int) (err error) //sysnb Setgid(gid int) (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go index 91c32ddf0..b22a34d7a 100644 --- a/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go @@ -18,6 +18,10 @@ func (iov *Iovec) SetLen(length int) { iov.Len = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) } diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go index 3de37566c..8f710d014 100644 --- a/vendor/golang.org/x/sys/unix/syscall_unix.go +++ b/vendor/golang.org/x/sys/unix/syscall_unix.go @@ -76,7 +76,7 @@ func SignalName(s syscall.Signal) string { // The signal name should start with "SIG". func SignalNum(s string) syscall.Signal { signalNameMapOnce.Do(func() { - signalNameMap = make(map[string]syscall.Signal) + signalNameMap = make(map[string]syscall.Signal, len(signalList)) for _, signal := range signalList { signalNameMap[signal.name] = signal.num } diff --git a/vendor/golang.org/x/sys/unix/types_dragonfly.go b/vendor/golang.org/x/sys/unix/types_dragonfly.go index 3365dd79d..6574f6b6a 100644 --- a/vendor/golang.org/x/sys/unix/types_dragonfly.go +++ b/vendor/golang.org/x/sys/unix/types_dragonfly.go @@ -261,3 +261,9 @@ const ( // Uname type Utsname C.struct_utsname + +// Clockinfo + +const SizeofClockinfo = C.sizeof_struct_clockinfo + +type Clockinfo C.struct_clockinfo diff --git a/vendor/golang.org/x/sys/unix/types_freebsd.go b/vendor/golang.org/x/sys/unix/types_freebsd.go index a121dc336..c6fde4249 100644 --- a/vendor/golang.org/x/sys/unix/types_freebsd.go +++ b/vendor/golang.org/x/sys/unix/types_freebsd.go @@ -398,3 +398,9 @@ type CapRights C.struct_cap_rights // Uname type Utsname C.struct_utsname + +// Clockinfo + +const SizeofClockinfo = C.sizeof_struct_clockinfo + +type Clockinfo C.struct_clockinfo diff --git a/vendor/golang.org/x/sys/unix/types_netbsd.go b/vendor/golang.org/x/sys/unix/types_netbsd.go index 4a96d72c3..0a81aadb8 100644 --- a/vendor/golang.org/x/sys/unix/types_netbsd.go +++ b/vendor/golang.org/x/sys/unix/types_netbsd.go @@ -33,6 +33,7 @@ package unix #include #include #include +#include #include #include #include @@ -106,6 +107,8 @@ type Stat_t C.struct_stat type Statfs_t C.struct_statfs +type Statvfs_t C.struct_statvfs + type Flock_t C.struct_flock type Dirent C.struct_dirent @@ -118,6 +121,13 @@ const ( PathMax = C.PATH_MAX ) +// Fstatvfs/Statvfs flags + +const ( + ST_WAIT = C.ST_WAIT + ST_NOWAIT = C.ST_NOWAIT +) + // Advice to Fadvise const ( diff --git a/vendor/golang.org/x/sys/unix/types_solaris.go b/vendor/golang.org/x/sys/unix/types_solaris.go index 2b716f934..d713f09e0 100644 --- a/vendor/golang.org/x/sys/unix/types_solaris.go +++ b/vendor/golang.org/x/sys/unix/types_solaris.go @@ -158,6 +158,8 @@ type Msghdr C.struct_msghdr type Cmsghdr C.struct_cmsghdr +type Inet4Pktinfo C.struct_in_pktinfo + type Inet6Pktinfo C.struct_in6_pktinfo type IPv6MTUInfo C.struct_ip6_mtuinfo @@ -175,6 +177,7 @@ const ( SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq SizeofMsghdr = C.sizeof_struct_msghdr SizeofCmsghdr = C.sizeof_struct_cmsghdr + SizeofInet4Pktinfo = C.sizeof_struct_in_pktinfo SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter diff --git a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go index 1def8a581..104994bc6 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go +++ b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go @@ -459,6 +459,15 @@ const ( MAP_SHARED = 0x1 MAP_TYPE = 0xf0 MAP_VARIABLE = 0x0 + MCAST_BLOCK_SOURCE = 0x40 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x3e + MCAST_JOIN_SOURCE_GROUP = 0x42 + MCAST_LEAVE_GROUP = 0x3f + MCAST_LEAVE_SOURCE_GROUP = 0x43 + MCAST_SOURCE_FILTER = 0x49 + MCAST_UNBLOCK_SOURCE = 0x41 MCL_CURRENT = 0x100 MCL_FUTURE = 0x200 MSG_ANY = 0x4 @@ -483,6 +492,7 @@ const ( MS_INVALIDATE = 0x40 MS_PER_SEC = 0x3e8 MS_SYNC = 0x20 + NFDBITS = 0x20 NL0 = 0x0 NL1 = 0x4000 NL2 = 0x8000 @@ -688,7 +698,7 @@ const ( SIOCGHIWAT = 0x40047301 SIOCGIFADDR = -0x3fd796df SIOCGIFADDRS = 0x2000698c - SIOCGIFBAUDRATE = -0x3fd79693 + SIOCGIFBAUDRATE = -0x3fdf9669 SIOCGIFBRDADDR = -0x3fd796dd SIOCGIFCONF = -0x3ff796bb SIOCGIFCONFGLOB = -0x3ff79670 diff --git a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go index 03187dea9..4fc8d3064 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go @@ -459,6 +459,15 @@ const ( MAP_SHARED = 0x1 MAP_TYPE = 0xf0 MAP_VARIABLE = 0x0 + MCAST_BLOCK_SOURCE = 0x40 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x3e + MCAST_JOIN_SOURCE_GROUP = 0x42 + MCAST_LEAVE_GROUP = 0x3f + MCAST_LEAVE_SOURCE_GROUP = 0x43 + MCAST_SOURCE_FILTER = 0x49 + MCAST_UNBLOCK_SOURCE = 0x41 MCL_CURRENT = 0x100 MCL_FUTURE = 0x200 MSG_ANY = 0x4 @@ -483,6 +492,7 @@ const ( MS_INVALIDATE = 0x40 MS_PER_SEC = 0x3e8 MS_SYNC = 0x20 + NFDBITS = 0x40 NL0 = 0x0 NL1 = 0x4000 NL2 = 0x8000 @@ -688,7 +698,7 @@ const ( SIOCGHIWAT = 0x40047301 SIOCGIFADDR = -0x3fd796df SIOCGIFADDRS = 0x2000698c - SIOCGIFBAUDRATE = -0x3fd79693 + SIOCGIFBAUDRATE = -0x3fdf9669 SIOCGIFBRDADDR = -0x3fd796dd SIOCGIFCONF = -0x3fef96bb SIOCGIFCONFGLOB = -0x3fef9670 diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go index 3b39d7408..6217cdba5 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go @@ -3,7 +3,7 @@ // +build 386,darwin -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go package unix @@ -980,6 +980,7 @@ const ( NET_RT_MAXID = 0xa NET_RT_STAT = 0x4 NET_RT_TRASH = 0x5 + NFDBITS = 0x20 NL0 = 0x0 NL1 = 0x100 NL2 = 0x200 diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go index 8fe554777..e3ff2ee3d 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go @@ -3,7 +3,7 @@ // +build amd64,darwin -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -980,6 +980,7 @@ const ( NET_RT_MAXID = 0xa NET_RT_STAT = 0x4 NET_RT_TRASH = 0x5 + NFDBITS = 0x20 NL0 = 0x0 NL1 = 0x100 NL2 = 0x200 diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go index 7a977770d..3e417571a 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go @@ -3,7 +3,7 @@ // +build arm,darwin -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- _const.go package unix @@ -980,6 +980,7 @@ const ( NET_RT_MAXID = 0xa NET_RT_STAT = 0x4 NET_RT_TRASH = 0x5 + NFDBITS = 0x20 NL0 = 0x0 NL1 = 0x100 NL2 = 0x200 diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go index 6d56d8a05..cbd8ed18b 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go @@ -3,7 +3,7 @@ // +build arm64,darwin -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -980,6 +980,7 @@ const ( NET_RT_MAXID = 0xa NET_RT_STAT = 0x4 NET_RT_TRASH = 0x5 + NFDBITS = 0x20 NL0 = 0x0 NL1 = 0x100 NL2 = 0x200 diff --git a/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go index bbe6089bb..613047174 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go @@ -938,6 +938,7 @@ const ( NET_RT_FLAGS = 0x2 NET_RT_IFLIST = 0x3 NET_RT_MAXID = 0x4 + NFDBITS = 0x40 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 NOTE_ATTRIB = 0x8 diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go index d2bbaabc8..848245873 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go @@ -3,7 +3,7 @@ // +build 386,freebsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go package unix @@ -355,6 +355,22 @@ const ( CTL_KERN = 0x1 CTL_MAXNAME = 0x18 CTL_NET = 0x4 + DIOCGATTR = 0xc144648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x804c6490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc06c648f DLT_A429 = 0xb8 DLT_A653_ICM = 0xb9 DLT_AIRONET_HEADER = 0x78 @@ -379,11 +395,14 @@ const ( DLT_CHAOS = 0x5 DLT_CHDLC = 0x68 DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 DLT_C_HDLC = 0x68 DLT_C_HDLC_WITH_DIR = 0xcd DLT_DBUS = 0xe7 DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 DLT_DVB_CI = 0xeb DLT_ECONET = 0x73 DLT_EN10MB = 0x1 @@ -393,6 +412,7 @@ const ( DLT_ERF = 0xc5 DLT_ERF_ETH = 0xaf DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 DLT_FC_2 = 0xe0 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 DLT_FDDI = 0xa @@ -406,7 +426,6 @@ const ( DLT_GPRS_LLC = 0xa9 DLT_GSMTAP_ABIS = 0xda DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 DLT_IBM_SN = 0x92 DLT_IBM_SP = 0x91 DLT_IEEE802 = 0x6 @@ -429,6 +448,7 @@ const ( DLT_IPV4 = 0xe4 DLT_IPV6 = 0xe5 DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 DLT_JUNIPER_ATM1 = 0x89 DLT_JUNIPER_ATM2 = 0x87 DLT_JUNIPER_ATM_CEMIC = 0xee @@ -461,8 +481,9 @@ const ( DLT_LINUX_PPP_WITHDIRECTION = 0xa6 DLT_LINUX_SLL = 0x71 DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0x104 + DLT_MATCHING_MAX = 0x113 DLT_MATCHING_MIN = 0x68 DLT_MFR = 0xb6 DLT_MOST = 0xd3 @@ -478,14 +499,16 @@ const ( DLT_NFC_LLCP = 0xf5 DLT_NFLOG = 0xef DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b DLT_PCI_EXP = 0x7d DLT_PFLOG = 0x75 DLT_PFSYNC = 0x79 DLT_PKTAP = 0x102 DLT_PPI = 0xc0 DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 + DLT_PPP_BSDOS = 0xe DLT_PPP_ETHER = 0x33 DLT_PPP_PPPD = 0xa6 DLT_PPP_SERIAL = 0x32 @@ -496,19 +519,25 @@ const ( DLT_PRONET = 0x4 DLT_RAIF1 = 0xc6 DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 DLT_RIO = 0x7c DLT_RTAC_SERIAL = 0xfa DLT_SCCP = 0x8e DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c DLT_SITA = 0xc4 DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf + DLT_SLIP_BSDOS = 0xd DLT_STANAG_5066_D_PDU = 0xed DLT_SUNATM = 0x7b DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d DLT_TZSP = 0x80 DLT_USB = 0xba DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba DLT_USB_LINUX = 0xbd DLT_USB_LINUX_MMAPPED = 0xdc DLT_USER0 = 0x93 @@ -527,10 +556,14 @@ const ( DLT_USER7 = 0x9a DLT_USER8 = 0x9b DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 DLT_WIHART = 0xdf DLT_WIRESHARK_UPPER_PDU = 0xfc DLT_X2E_SERIAL = 0xd5 DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -548,6 +581,7 @@ const ( ECHONL = 0x10 ECHOPRT = 0x20 EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd EVFILT_FS = -0x9 EVFILT_LIO = -0xa EVFILT_PROC = -0x5 @@ -555,11 +589,12 @@ const ( EVFILT_READ = -0x1 EVFILT_SENDFILE = -0xc EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xc + EVFILT_SYSCOUNT = 0xd EVFILT_TIMER = -0x7 EVFILT_USER = -0xb EVFILT_VNODE = -0x4 EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 EV_ADD = 0x1 EV_CLEAR = 0x20 EV_DELETE = 0x2 @@ -576,6 +611,7 @@ const ( EV_RECEIPT = 0x40 EV_SYSFLAGS = 0xf000 EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff EXTATTR_NAMESPACE_EMPTY = 0x0 EXTATTR_NAMESPACE_SYSTEM = 0x2 EXTATTR_NAMESPACE_USER = 0x1 @@ -617,6 +653,7 @@ const ( IEXTEN = 0x400 IFAN_ARRIVAL = 0x0 IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 IFF_ALLMULTI = 0x200 IFF_ALTPHYS = 0x4000 IFF_BROADCAST = 0x2 @@ -633,6 +670,7 @@ const ( IFF_MONITOR = 0x40000 IFF_MULTICAST = 0x8000 IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 IFF_OACTIVE = 0x400 IFF_POINTOPOINT = 0x10 IFF_PPROMISC = 0x20000 @@ -807,6 +845,7 @@ const ( IPV6_DSTOPTS = 0x32 IPV6_FLOWID = 0x43 IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 IPV6_FLOWLABEL_MASK = 0xffff0f00 IPV6_FLOWTYPE = 0x44 IPV6_FRAGTTL = 0x78 @@ -827,13 +866,13 @@ const ( IPV6_MAX_GROUP_SRC_FILTER = 0x200 IPV6_MAX_MEMBERSHIPS = 0xfff IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f IPV6_MMTU = 0x500 IPV6_MSFILTER = 0x4a IPV6_MULTICAST_HOPS = 0xa IPV6_MULTICAST_IF = 0x9 IPV6_MULTICAST_LOOP = 0xb IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 IPV6_PATHMTU = 0x2c IPV6_PKTINFO = 0x2e IPV6_PORTRANGE = 0xe @@ -845,6 +884,7 @@ const ( IPV6_RECVFLOWID = 0x46 IPV6_RECVHOPLIMIT = 0x25 IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 IPV6_RECVPATHMTU = 0x2b IPV6_RECVPKTINFO = 0x24 IPV6_RECVRSSBUCKETID = 0x47 @@ -905,10 +945,8 @@ const ( IP_MAX_MEMBERSHIPS = 0xfff IP_MAX_SOCK_MUTE_FILTER = 0x80 IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MAX_SOURCE_FILTER = 0x400 IP_MF = 0x2000 IP_MINTTL = 0x42 - IP_MIN_MEMBERSHIPS = 0x1f IP_MSFILTER = 0x4a IP_MSS = 0x240 IP_MULTICAST_IF = 0x9 @@ -918,6 +956,7 @@ const ( IP_OFFMASK = 0x1fff IP_ONESBCAST = 0x17 IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b IP_PORTRANGE = 0x13 IP_PORTRANGE_DEFAULT = 0x0 IP_PORTRANGE_HIGH = 0x1 @@ -926,6 +965,7 @@ const ( IP_RECVFLOWID = 0x5d IP_RECVIF = 0x14 IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b IP_RECVRETOPTS = 0x6 IP_RECVRSSBUCKETID = 0x5e IP_RECVTOS = 0x44 @@ -975,6 +1015,7 @@ const ( MAP_EXCL = 0x4000 MAP_FILE = 0x0 MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 MAP_HASSEMAPHORE = 0x200 MAP_NOCORE = 0x20000 MAP_NOSYNC = 0x800 @@ -986,6 +1027,15 @@ const ( MAP_RESERVED0100 = 0x100 MAP_SHARED = 0x1 MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 MCL_CURRENT = 0x1 MCL_FUTURE = 0x2 MNT_ACLS = 0x8000000 @@ -1026,10 +1076,12 @@ const ( MNT_SUSPEND = 0x4 MNT_SYNCHRONOUS = 0x2 MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 MNT_UPDATE = 0x10000 - MNT_UPDATEMASK = 0x2d8d0807e + MNT_UPDATEMASK = 0xad8d0807e MNT_USER = 0x8000 - MNT_VISFLAGMASK = 0x3fef0ffff + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff MNT_WAIT = 0x1 MSG_CMSG_CLOEXEC = 0x40000 MSG_COMPAT = 0x8000 @@ -1055,8 +1107,10 @@ const ( NET_RT_IFLIST = 0x3 NET_RT_IFLISTL = 0x5 NET_RT_IFMALIST = 0x4 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 NOTE_CLOSE = 0x100 @@ -1211,7 +1265,6 @@ const ( RTV_WEIGHT = 0x100 RT_ALL_FIBS = -0x1 RT_BLACKHOLE = 0x40 - RT_CACHING_CONTEXT = 0x1 RT_DEFAULT_FIB = 0x0 RT_HAS_GW = 0x80 RT_HAS_HEADER = 0x10 @@ -1221,15 +1274,17 @@ const ( RT_LLE_CACHE = 0x100 RT_MAY_LOOP = 0x8 RT_MAY_LOOP_BIT = 0x3 - RT_NORTREF = 0x2 RT_REJECT = 0x20 RUSAGE_CHILDREN = -0x1 RUSAGE_SELF = 0x0 RUSAGE_THREAD = 0x1 SCM_BINTIME = 0x4 SCM_CREDS = 0x3 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 SHUT_RD = 0x0 SHUT_RDWR = 0x2 SHUT_WR = 0x1 @@ -1245,6 +1300,7 @@ const ( SIOCGETSGCNT = 0xc0147210 SIOCGETVIFCNT = 0xc014720f SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e SIOCGI2C = 0xc020693d SIOCGIFADDR = 0xc0206921 SIOCGIFBRDADDR = 0xc0206923 @@ -1266,8 +1322,11 @@ const ( SIOCGIFPDSTADDR = 0xc0206948 SIOCGIFPHYS = 0xc0206935 SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 SIOCGIFSTATUS = 0xc331693b SIOCGIFXMEDIA = 0xc028698b + SIOCGLANPCP = 0xc0206998 SIOCGLOWAT = 0x40047303 SIOCGPGRP = 0x40047309 SIOCGPRIVATE_0 = 0xc0206950 @@ -1298,6 +1357,7 @@ const ( SIOCSIFPHYS = 0x80206936 SIOCSIFRVNET = 0xc020695b SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 SIOCSLOWAT = 0x80047302 SIOCSPGRP = 0x80047308 SIOCSTUNFIB = 0x8020695f @@ -1316,6 +1376,7 @@ const ( SO_BINTIME = 0x2000 SO_BROADCAST = 0x20 SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 SO_DONTROUTE = 0x10 SO_ERROR = 0x1007 SO_KEEPALIVE = 0x8 @@ -1324,6 +1385,7 @@ const ( SO_LISTENINCQLEN = 0x1013 SO_LISTENQLEN = 0x1012 SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 SO_NOSIGPIPE = 0x800 SO_NO_DDP = 0x8000 SO_NO_OFFLOAD = 0x4000 @@ -1336,11 +1398,19 @@ const ( SO_RCVTIMEO = 0x1006 SO_REUSEADDR = 0x4 SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 SO_SETFIB = 0x1014 SO_SNDBUF = 0x1001 SO_SNDLOWAT = 0x1003 SO_SNDTIMEO = 0x1005 SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 SO_TYPE = 0x1008 SO_USELOOPBACK = 0x40 SO_USER_COOKIE = 0x1015 @@ -1384,10 +1454,45 @@ const ( TCOFLUSH = 0x2 TCOOFF = 0x1 TCOON = 0x2 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 TCP_CA_NAME_MAX = 0x10 TCP_CCALGOOPT = 0x41 TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DELACK = 0x48 TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 TCP_FUNCTION_BLK = 0x2000 TCP_FUNCTION_NAME_LEN_MAX = 0x20 TCP_INFO = 0x20 @@ -1395,6 +1500,12 @@ const ( TCP_KEEPIDLE = 0x100 TCP_KEEPINIT = 0x80 TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOG_ID_LEN = 0x40 TCP_MAXBURST = 0x4 TCP_MAXHLEN = 0x3c TCP_MAXOLEN = 0x28 @@ -1410,8 +1521,30 @@ const ( TCP_NOPUSH = 0x4 TCP_PCAP_IN = 0x1000 TCP_PCAP_OUT = 0x800 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_SESS_CWV = 0x42a + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 TCP_VENDOR = 0x80000000 TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 TIOCCBRK = 0x2000747a TIOCCDTR = 0x20007478 TIOCCONS = 0x80047462 @@ -1475,6 +1608,8 @@ const ( TIOCTIMESTAMP = 0x40087459 TIOCUCNTL = 0x80047466 TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 VDISCARD = 0xf VDSUSP = 0xb VEOF = 0x0 @@ -1486,6 +1621,8 @@ const ( VKILL = 0x5 VLNEXT = 0xe VMIN = 0x10 + VM_BCACHE_SIZE_MAX = 0x70e0000 + VM_SWZONE_SIZE_MAX = 0x2280000 VQUIT = 0x9 VREPRINT = 0x6 VSTART = 0xc diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go index 4f8db783d..4acd101c3 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go @@ -3,7 +3,7 @@ // +build amd64,freebsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -355,6 +355,22 @@ const ( CTL_KERN = 0x1 CTL_MAXNAME = 0x18 CTL_NET = 0x4 + DIOCGATTR = 0xc148648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x80506490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc080648f DLT_A429 = 0xb8 DLT_A653_ICM = 0xb9 DLT_AIRONET_HEADER = 0x78 @@ -379,11 +395,14 @@ const ( DLT_CHAOS = 0x5 DLT_CHDLC = 0x68 DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 DLT_C_HDLC = 0x68 DLT_C_HDLC_WITH_DIR = 0xcd DLT_DBUS = 0xe7 DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 DLT_DVB_CI = 0xeb DLT_ECONET = 0x73 DLT_EN10MB = 0x1 @@ -393,6 +412,7 @@ const ( DLT_ERF = 0xc5 DLT_ERF_ETH = 0xaf DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 DLT_FC_2 = 0xe0 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 DLT_FDDI = 0xa @@ -406,7 +426,6 @@ const ( DLT_GPRS_LLC = 0xa9 DLT_GSMTAP_ABIS = 0xda DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 DLT_IBM_SN = 0x92 DLT_IBM_SP = 0x91 DLT_IEEE802 = 0x6 @@ -429,6 +448,7 @@ const ( DLT_IPV4 = 0xe4 DLT_IPV6 = 0xe5 DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 DLT_JUNIPER_ATM1 = 0x89 DLT_JUNIPER_ATM2 = 0x87 DLT_JUNIPER_ATM_CEMIC = 0xee @@ -461,8 +481,9 @@ const ( DLT_LINUX_PPP_WITHDIRECTION = 0xa6 DLT_LINUX_SLL = 0x71 DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0x104 + DLT_MATCHING_MAX = 0x113 DLT_MATCHING_MIN = 0x68 DLT_MFR = 0xb6 DLT_MOST = 0xd3 @@ -478,14 +499,16 @@ const ( DLT_NFC_LLCP = 0xf5 DLT_NFLOG = 0xef DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b DLT_PCI_EXP = 0x7d DLT_PFLOG = 0x75 DLT_PFSYNC = 0x79 DLT_PKTAP = 0x102 DLT_PPI = 0xc0 DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 + DLT_PPP_BSDOS = 0xe DLT_PPP_ETHER = 0x33 DLT_PPP_PPPD = 0xa6 DLT_PPP_SERIAL = 0x32 @@ -496,19 +519,25 @@ const ( DLT_PRONET = 0x4 DLT_RAIF1 = 0xc6 DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 DLT_RIO = 0x7c DLT_RTAC_SERIAL = 0xfa DLT_SCCP = 0x8e DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c DLT_SITA = 0xc4 DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf + DLT_SLIP_BSDOS = 0xd DLT_STANAG_5066_D_PDU = 0xed DLT_SUNATM = 0x7b DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d DLT_TZSP = 0x80 DLT_USB = 0xba DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba DLT_USB_LINUX = 0xbd DLT_USB_LINUX_MMAPPED = 0xdc DLT_USER0 = 0x93 @@ -527,10 +556,14 @@ const ( DLT_USER7 = 0x9a DLT_USER8 = 0x9b DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 DLT_WIHART = 0xdf DLT_WIRESHARK_UPPER_PDU = 0xfc DLT_X2E_SERIAL = 0xd5 DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -548,6 +581,7 @@ const ( ECHONL = 0x10 ECHOPRT = 0x20 EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd EVFILT_FS = -0x9 EVFILT_LIO = -0xa EVFILT_PROC = -0x5 @@ -555,11 +589,12 @@ const ( EVFILT_READ = -0x1 EVFILT_SENDFILE = -0xc EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xc + EVFILT_SYSCOUNT = 0xd EVFILT_TIMER = -0x7 EVFILT_USER = -0xb EVFILT_VNODE = -0x4 EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 EV_ADD = 0x1 EV_CLEAR = 0x20 EV_DELETE = 0x2 @@ -576,6 +611,7 @@ const ( EV_RECEIPT = 0x40 EV_SYSFLAGS = 0xf000 EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff EXTATTR_NAMESPACE_EMPTY = 0x0 EXTATTR_NAMESPACE_SYSTEM = 0x2 EXTATTR_NAMESPACE_USER = 0x1 @@ -617,6 +653,7 @@ const ( IEXTEN = 0x400 IFAN_ARRIVAL = 0x0 IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 IFF_ALLMULTI = 0x200 IFF_ALTPHYS = 0x4000 IFF_BROADCAST = 0x2 @@ -633,6 +670,7 @@ const ( IFF_MONITOR = 0x40000 IFF_MULTICAST = 0x8000 IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 IFF_OACTIVE = 0x400 IFF_POINTOPOINT = 0x10 IFF_PPROMISC = 0x20000 @@ -807,6 +845,7 @@ const ( IPV6_DSTOPTS = 0x32 IPV6_FLOWID = 0x43 IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 IPV6_FLOWLABEL_MASK = 0xffff0f00 IPV6_FLOWTYPE = 0x44 IPV6_FRAGTTL = 0x78 @@ -827,13 +866,13 @@ const ( IPV6_MAX_GROUP_SRC_FILTER = 0x200 IPV6_MAX_MEMBERSHIPS = 0xfff IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f IPV6_MMTU = 0x500 IPV6_MSFILTER = 0x4a IPV6_MULTICAST_HOPS = 0xa IPV6_MULTICAST_IF = 0x9 IPV6_MULTICAST_LOOP = 0xb IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 IPV6_PATHMTU = 0x2c IPV6_PKTINFO = 0x2e IPV6_PORTRANGE = 0xe @@ -845,6 +884,7 @@ const ( IPV6_RECVFLOWID = 0x46 IPV6_RECVHOPLIMIT = 0x25 IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 IPV6_RECVPATHMTU = 0x2b IPV6_RECVPKTINFO = 0x24 IPV6_RECVRSSBUCKETID = 0x47 @@ -905,10 +945,8 @@ const ( IP_MAX_MEMBERSHIPS = 0xfff IP_MAX_SOCK_MUTE_FILTER = 0x80 IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MAX_SOURCE_FILTER = 0x400 IP_MF = 0x2000 IP_MINTTL = 0x42 - IP_MIN_MEMBERSHIPS = 0x1f IP_MSFILTER = 0x4a IP_MSS = 0x240 IP_MULTICAST_IF = 0x9 @@ -918,6 +956,7 @@ const ( IP_OFFMASK = 0x1fff IP_ONESBCAST = 0x17 IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b IP_PORTRANGE = 0x13 IP_PORTRANGE_DEFAULT = 0x0 IP_PORTRANGE_HIGH = 0x1 @@ -926,6 +965,7 @@ const ( IP_RECVFLOWID = 0x5d IP_RECVIF = 0x14 IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b IP_RECVRETOPTS = 0x6 IP_RECVRSSBUCKETID = 0x5e IP_RECVTOS = 0x44 @@ -976,6 +1016,7 @@ const ( MAP_EXCL = 0x4000 MAP_FILE = 0x0 MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 MAP_HASSEMAPHORE = 0x200 MAP_NOCORE = 0x20000 MAP_NOSYNC = 0x800 @@ -987,6 +1028,15 @@ const ( MAP_RESERVED0100 = 0x100 MAP_SHARED = 0x1 MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 MCL_CURRENT = 0x1 MCL_FUTURE = 0x2 MNT_ACLS = 0x8000000 @@ -1027,10 +1077,12 @@ const ( MNT_SUSPEND = 0x4 MNT_SYNCHRONOUS = 0x2 MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 MNT_UPDATE = 0x10000 - MNT_UPDATEMASK = 0x2d8d0807e + MNT_UPDATEMASK = 0xad8d0807e MNT_USER = 0x8000 - MNT_VISFLAGMASK = 0x3fef0ffff + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff MNT_WAIT = 0x1 MSG_CMSG_CLOEXEC = 0x40000 MSG_COMPAT = 0x8000 @@ -1056,8 +1108,10 @@ const ( NET_RT_IFLIST = 0x3 NET_RT_IFLISTL = 0x5 NET_RT_IFMALIST = 0x4 + NFDBITS = 0x40 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 NOTE_CLOSE = 0x100 @@ -1212,7 +1266,6 @@ const ( RTV_WEIGHT = 0x100 RT_ALL_FIBS = -0x1 RT_BLACKHOLE = 0x40 - RT_CACHING_CONTEXT = 0x1 RT_DEFAULT_FIB = 0x0 RT_HAS_GW = 0x80 RT_HAS_HEADER = 0x10 @@ -1222,15 +1275,17 @@ const ( RT_LLE_CACHE = 0x100 RT_MAY_LOOP = 0x8 RT_MAY_LOOP_BIT = 0x3 - RT_NORTREF = 0x2 RT_REJECT = 0x20 RUSAGE_CHILDREN = -0x1 RUSAGE_SELF = 0x0 RUSAGE_THREAD = 0x1 SCM_BINTIME = 0x4 SCM_CREDS = 0x3 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 SHUT_RD = 0x0 SHUT_RDWR = 0x2 SHUT_WR = 0x1 @@ -1246,6 +1301,7 @@ const ( SIOCGETSGCNT = 0xc0207210 SIOCGETVIFCNT = 0xc028720f SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e SIOCGI2C = 0xc020693d SIOCGIFADDR = 0xc0206921 SIOCGIFBRDADDR = 0xc0206923 @@ -1267,8 +1323,11 @@ const ( SIOCGIFPDSTADDR = 0xc0206948 SIOCGIFPHYS = 0xc0206935 SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 SIOCGIFSTATUS = 0xc331693b SIOCGIFXMEDIA = 0xc030698b + SIOCGLANPCP = 0xc0206998 SIOCGLOWAT = 0x40047303 SIOCGPGRP = 0x40047309 SIOCGPRIVATE_0 = 0xc0206950 @@ -1299,6 +1358,7 @@ const ( SIOCSIFPHYS = 0x80206936 SIOCSIFRVNET = 0xc020695b SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 SIOCSLOWAT = 0x80047302 SIOCSPGRP = 0x80047308 SIOCSTUNFIB = 0x8020695f @@ -1317,6 +1377,7 @@ const ( SO_BINTIME = 0x2000 SO_BROADCAST = 0x20 SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 SO_DONTROUTE = 0x10 SO_ERROR = 0x1007 SO_KEEPALIVE = 0x8 @@ -1325,6 +1386,7 @@ const ( SO_LISTENINCQLEN = 0x1013 SO_LISTENQLEN = 0x1012 SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 SO_NOSIGPIPE = 0x800 SO_NO_DDP = 0x8000 SO_NO_OFFLOAD = 0x4000 @@ -1337,11 +1399,19 @@ const ( SO_RCVTIMEO = 0x1006 SO_REUSEADDR = 0x4 SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 SO_SETFIB = 0x1014 SO_SNDBUF = 0x1001 SO_SNDLOWAT = 0x1003 SO_SNDTIMEO = 0x1005 SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 SO_TYPE = 0x1008 SO_USELOOPBACK = 0x40 SO_USER_COOKIE = 0x1015 @@ -1385,10 +1455,45 @@ const ( TCOFLUSH = 0x2 TCOOFF = 0x1 TCOON = 0x2 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 TCP_CA_NAME_MAX = 0x10 TCP_CCALGOOPT = 0x41 TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DELACK = 0x48 TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 TCP_FUNCTION_BLK = 0x2000 TCP_FUNCTION_NAME_LEN_MAX = 0x20 TCP_INFO = 0x20 @@ -1396,6 +1501,12 @@ const ( TCP_KEEPIDLE = 0x100 TCP_KEEPINIT = 0x80 TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOG_ID_LEN = 0x40 TCP_MAXBURST = 0x4 TCP_MAXHLEN = 0x3c TCP_MAXOLEN = 0x28 @@ -1411,8 +1522,30 @@ const ( TCP_NOPUSH = 0x4 TCP_PCAP_IN = 0x1000 TCP_PCAP_OUT = 0x800 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_SESS_CWV = 0x42a + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 TCP_VENDOR = 0x80000000 TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 TIOCCBRK = 0x2000747a TIOCCDTR = 0x20007478 TIOCCONS = 0x80047462 @@ -1476,6 +1609,8 @@ const ( TIOCTIMESTAMP = 0x40107459 TIOCUCNTL = 0x80047466 TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 VDISCARD = 0xf VDSUSP = 0xb VEOF = 0x0 diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go index 53e5de605..e4719873b 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go @@ -3,7 +3,7 @@ // +build arm,freebsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- _const.go package unix @@ -355,6 +355,22 @@ const ( CTL_KERN = 0x1 CTL_MAXNAME = 0x18 CTL_NET = 0x4 + DIOCGATTR = 0xc144648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x804c6490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc06c648f DLT_A429 = 0xb8 DLT_A653_ICM = 0xb9 DLT_AIRONET_HEADER = 0x78 @@ -1063,6 +1079,7 @@ const ( NET_RT_IFLIST = 0x3 NET_RT_IFLISTL = 0x5 NET_RT_IFMALIST = 0x4 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 NOTE_ATTRIB = 0x8 diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go index d4a192fef..5e49769d9 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go @@ -3,7 +3,7 @@ // +build arm64,freebsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -355,6 +355,22 @@ const ( CTL_KERN = 0x1 CTL_MAXNAME = 0x18 CTL_NET = 0x4 + DIOCGATTR = 0xc148648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x80506490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc080648f DLT_A429 = 0xb8 DLT_A653_ICM = 0xb9 DLT_AIRONET_HEADER = 0x78 @@ -379,11 +395,14 @@ const ( DLT_CHAOS = 0x5 DLT_CHDLC = 0x68 DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 DLT_C_HDLC = 0x68 DLT_C_HDLC_WITH_DIR = 0xcd DLT_DBUS = 0xe7 DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 DLT_DVB_CI = 0xeb DLT_ECONET = 0x73 DLT_EN10MB = 0x1 @@ -393,6 +412,7 @@ const ( DLT_ERF = 0xc5 DLT_ERF_ETH = 0xaf DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 DLT_FC_2 = 0xe0 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 DLT_FDDI = 0xa @@ -406,7 +426,6 @@ const ( DLT_GPRS_LLC = 0xa9 DLT_GSMTAP_ABIS = 0xda DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 DLT_IBM_SN = 0x92 DLT_IBM_SP = 0x91 DLT_IEEE802 = 0x6 @@ -429,6 +448,7 @@ const ( DLT_IPV4 = 0xe4 DLT_IPV6 = 0xe5 DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 DLT_JUNIPER_ATM1 = 0x89 DLT_JUNIPER_ATM2 = 0x87 DLT_JUNIPER_ATM_CEMIC = 0xee @@ -461,8 +481,9 @@ const ( DLT_LINUX_PPP_WITHDIRECTION = 0xa6 DLT_LINUX_SLL = 0x71 DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0x104 + DLT_MATCHING_MAX = 0x113 DLT_MATCHING_MIN = 0x68 DLT_MFR = 0xb6 DLT_MOST = 0xd3 @@ -478,14 +499,16 @@ const ( DLT_NFC_LLCP = 0xf5 DLT_NFLOG = 0xef DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b DLT_PCI_EXP = 0x7d DLT_PFLOG = 0x75 DLT_PFSYNC = 0x79 DLT_PKTAP = 0x102 DLT_PPI = 0xc0 DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 + DLT_PPP_BSDOS = 0xe DLT_PPP_ETHER = 0x33 DLT_PPP_PPPD = 0xa6 DLT_PPP_SERIAL = 0x32 @@ -496,19 +519,25 @@ const ( DLT_PRONET = 0x4 DLT_RAIF1 = 0xc6 DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 DLT_RIO = 0x7c DLT_RTAC_SERIAL = 0xfa DLT_SCCP = 0x8e DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c DLT_SITA = 0xc4 DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf + DLT_SLIP_BSDOS = 0xd DLT_STANAG_5066_D_PDU = 0xed DLT_SUNATM = 0x7b DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d DLT_TZSP = 0x80 DLT_USB = 0xba DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba DLT_USB_LINUX = 0xbd DLT_USB_LINUX_MMAPPED = 0xdc DLT_USER0 = 0x93 @@ -527,10 +556,14 @@ const ( DLT_USER7 = 0x9a DLT_USER8 = 0x9b DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 DLT_WIHART = 0xdf DLT_WIRESHARK_UPPER_PDU = 0xfc DLT_X2E_SERIAL = 0xd5 DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -548,6 +581,7 @@ const ( ECHONL = 0x10 ECHOPRT = 0x20 EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd EVFILT_FS = -0x9 EVFILT_LIO = -0xa EVFILT_PROC = -0x5 @@ -555,11 +589,12 @@ const ( EVFILT_READ = -0x1 EVFILT_SENDFILE = -0xc EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xc + EVFILT_SYSCOUNT = 0xd EVFILT_TIMER = -0x7 EVFILT_USER = -0xb EVFILT_VNODE = -0x4 EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 EV_ADD = 0x1 EV_CLEAR = 0x20 EV_DELETE = 0x2 @@ -576,6 +611,7 @@ const ( EV_RECEIPT = 0x40 EV_SYSFLAGS = 0xf000 EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff EXTATTR_NAMESPACE_EMPTY = 0x0 EXTATTR_NAMESPACE_SYSTEM = 0x2 EXTATTR_NAMESPACE_USER = 0x1 @@ -617,6 +653,7 @@ const ( IEXTEN = 0x400 IFAN_ARRIVAL = 0x0 IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 IFF_ALLMULTI = 0x200 IFF_ALTPHYS = 0x4000 IFF_BROADCAST = 0x2 @@ -633,6 +670,7 @@ const ( IFF_MONITOR = 0x40000 IFF_MULTICAST = 0x8000 IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 IFF_OACTIVE = 0x400 IFF_POINTOPOINT = 0x10 IFF_PPROMISC = 0x20000 @@ -807,6 +845,7 @@ const ( IPV6_DSTOPTS = 0x32 IPV6_FLOWID = 0x43 IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 IPV6_FLOWLABEL_MASK = 0xffff0f00 IPV6_FLOWTYPE = 0x44 IPV6_FRAGTTL = 0x78 @@ -827,13 +866,13 @@ const ( IPV6_MAX_GROUP_SRC_FILTER = 0x200 IPV6_MAX_MEMBERSHIPS = 0xfff IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f IPV6_MMTU = 0x500 IPV6_MSFILTER = 0x4a IPV6_MULTICAST_HOPS = 0xa IPV6_MULTICAST_IF = 0x9 IPV6_MULTICAST_LOOP = 0xb IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 IPV6_PATHMTU = 0x2c IPV6_PKTINFO = 0x2e IPV6_PORTRANGE = 0xe @@ -845,6 +884,7 @@ const ( IPV6_RECVFLOWID = 0x46 IPV6_RECVHOPLIMIT = 0x25 IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 IPV6_RECVPATHMTU = 0x2b IPV6_RECVPKTINFO = 0x24 IPV6_RECVRSSBUCKETID = 0x47 @@ -905,10 +945,8 @@ const ( IP_MAX_MEMBERSHIPS = 0xfff IP_MAX_SOCK_MUTE_FILTER = 0x80 IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MAX_SOURCE_FILTER = 0x400 IP_MF = 0x2000 IP_MINTTL = 0x42 - IP_MIN_MEMBERSHIPS = 0x1f IP_MSFILTER = 0x4a IP_MSS = 0x240 IP_MULTICAST_IF = 0x9 @@ -918,6 +956,7 @@ const ( IP_OFFMASK = 0x1fff IP_ONESBCAST = 0x17 IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b IP_PORTRANGE = 0x13 IP_PORTRANGE_DEFAULT = 0x0 IP_PORTRANGE_HIGH = 0x1 @@ -926,6 +965,7 @@ const ( IP_RECVFLOWID = 0x5d IP_RECVIF = 0x14 IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b IP_RECVRETOPTS = 0x6 IP_RECVRSSBUCKETID = 0x5e IP_RECVTOS = 0x44 @@ -976,6 +1016,7 @@ const ( MAP_EXCL = 0x4000 MAP_FILE = 0x0 MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 MAP_HASSEMAPHORE = 0x200 MAP_NOCORE = 0x20000 MAP_NOSYNC = 0x800 @@ -987,6 +1028,15 @@ const ( MAP_RESERVED0100 = 0x100 MAP_SHARED = 0x1 MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 MCL_CURRENT = 0x1 MCL_FUTURE = 0x2 MNT_ACLS = 0x8000000 @@ -1027,10 +1077,12 @@ const ( MNT_SUSPEND = 0x4 MNT_SYNCHRONOUS = 0x2 MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 MNT_UPDATE = 0x10000 - MNT_UPDATEMASK = 0x2d8d0807e + MNT_UPDATEMASK = 0xad8d0807e MNT_USER = 0x8000 - MNT_VISFLAGMASK = 0x3fef0ffff + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff MNT_WAIT = 0x1 MSG_CMSG_CLOEXEC = 0x40000 MSG_COMPAT = 0x8000 @@ -1056,8 +1108,10 @@ const ( NET_RT_IFLIST = 0x3 NET_RT_IFLISTL = 0x5 NET_RT_IFMALIST = 0x4 + NFDBITS = 0x40 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 NOTE_CLOSE = 0x100 @@ -1212,7 +1266,6 @@ const ( RTV_WEIGHT = 0x100 RT_ALL_FIBS = -0x1 RT_BLACKHOLE = 0x40 - RT_CACHING_CONTEXT = 0x1 RT_DEFAULT_FIB = 0x0 RT_HAS_GW = 0x80 RT_HAS_HEADER = 0x10 @@ -1222,15 +1275,17 @@ const ( RT_LLE_CACHE = 0x100 RT_MAY_LOOP = 0x8 RT_MAY_LOOP_BIT = 0x3 - RT_NORTREF = 0x2 RT_REJECT = 0x20 RUSAGE_CHILDREN = -0x1 RUSAGE_SELF = 0x0 RUSAGE_THREAD = 0x1 SCM_BINTIME = 0x4 SCM_CREDS = 0x3 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 SHUT_RD = 0x0 SHUT_RDWR = 0x2 SHUT_WR = 0x1 @@ -1246,6 +1301,7 @@ const ( SIOCGETSGCNT = 0xc0207210 SIOCGETVIFCNT = 0xc028720f SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e SIOCGI2C = 0xc020693d SIOCGIFADDR = 0xc0206921 SIOCGIFBRDADDR = 0xc0206923 @@ -1267,8 +1323,11 @@ const ( SIOCGIFPDSTADDR = 0xc0206948 SIOCGIFPHYS = 0xc0206935 SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 SIOCGIFSTATUS = 0xc331693b SIOCGIFXMEDIA = 0xc030698b + SIOCGLANPCP = 0xc0206998 SIOCGLOWAT = 0x40047303 SIOCGPGRP = 0x40047309 SIOCGPRIVATE_0 = 0xc0206950 @@ -1299,6 +1358,7 @@ const ( SIOCSIFPHYS = 0x80206936 SIOCSIFRVNET = 0xc020695b SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 SIOCSLOWAT = 0x80047302 SIOCSPGRP = 0x80047308 SIOCSTUNFIB = 0x8020695f @@ -1317,6 +1377,7 @@ const ( SO_BINTIME = 0x2000 SO_BROADCAST = 0x20 SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 SO_DONTROUTE = 0x10 SO_ERROR = 0x1007 SO_KEEPALIVE = 0x8 @@ -1325,6 +1386,7 @@ const ( SO_LISTENINCQLEN = 0x1013 SO_LISTENQLEN = 0x1012 SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 SO_NOSIGPIPE = 0x800 SO_NO_DDP = 0x8000 SO_NO_OFFLOAD = 0x4000 @@ -1337,11 +1399,19 @@ const ( SO_RCVTIMEO = 0x1006 SO_REUSEADDR = 0x4 SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 SO_SETFIB = 0x1014 SO_SNDBUF = 0x1001 SO_SNDLOWAT = 0x1003 SO_SNDTIMEO = 0x1005 SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 SO_TYPE = 0x1008 SO_USELOOPBACK = 0x40 SO_USER_COOKIE = 0x1015 @@ -1385,10 +1455,45 @@ const ( TCOFLUSH = 0x2 TCOOFF = 0x1 TCOON = 0x2 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 TCP_CA_NAME_MAX = 0x10 TCP_CCALGOOPT = 0x41 TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DELACK = 0x48 TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 TCP_FUNCTION_BLK = 0x2000 TCP_FUNCTION_NAME_LEN_MAX = 0x20 TCP_INFO = 0x20 @@ -1396,6 +1501,12 @@ const ( TCP_KEEPIDLE = 0x100 TCP_KEEPINIT = 0x80 TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOG_ID_LEN = 0x40 TCP_MAXBURST = 0x4 TCP_MAXHLEN = 0x3c TCP_MAXOLEN = 0x28 @@ -1411,8 +1522,30 @@ const ( TCP_NOPUSH = 0x4 TCP_PCAP_IN = 0x1000 TCP_PCAP_OUT = 0x800 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_SESS_CWV = 0x42a + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 TCP_VENDOR = 0x80000000 TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 TIOCCBRK = 0x2000747a TIOCCDTR = 0x20007478 TIOCCONS = 0x80047462 @@ -1476,6 +1609,8 @@ const ( TIOCTIMESTAMP = 0x40107459 TIOCUCNTL = 0x80047466 TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 VDISCARD = 0xf VDSUSP = 0xb VEOF = 0x0 @@ -1487,6 +1622,7 @@ const ( VKILL = 0x5 VLNEXT = 0xe VMIN = 0x10 + VM_BCACHE_SIZE_MAX = 0x19000000 VQUIT = 0x9 VREPRINT = 0x6 VSTART = 0xc diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go new file mode 100644 index 000000000..84c599c52 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -0,0 +1,2454 @@ +// Code generated by mkmerge.go; DO NOT EDIT. + +// +build linux + +package unix + +import "syscall" + +const ( + AAFS_MAGIC = 0x5a3c69f0 + ADFS_SUPER_MAGIC = 0xadf5 + AFFS_SUPER_MAGIC = 0xadff + AFS_FS_MAGIC = 0x6b414653 + AFS_SUPER_MAGIC = 0x5346414f + AF_ALG = 0x26 + AF_APPLETALK = 0x5 + AF_ASH = 0x12 + AF_ATMPVC = 0x8 + AF_ATMSVC = 0x14 + AF_AX25 = 0x3 + AF_BLUETOOTH = 0x1f + AF_BRIDGE = 0x7 + AF_CAIF = 0x25 + AF_CAN = 0x1d + AF_DECnet = 0xc + AF_ECONET = 0x13 + AF_FILE = 0x1 + AF_IB = 0x1b + AF_IEEE802154 = 0x24 + AF_INET = 0x2 + AF_INET6 = 0xa + AF_IPX = 0x4 + AF_IRDA = 0x17 + AF_ISDN = 0x22 + AF_IUCV = 0x20 + AF_KCM = 0x29 + AF_KEY = 0xf + AF_LLC = 0x1a + AF_LOCAL = 0x1 + AF_MAX = 0x2d + AF_MPLS = 0x1c + AF_NETBEUI = 0xd + AF_NETLINK = 0x10 + AF_NETROM = 0x6 + AF_NFC = 0x27 + AF_PACKET = 0x11 + AF_PHONET = 0x23 + AF_PPPOX = 0x18 + AF_QIPCRTR = 0x2a + AF_RDS = 0x15 + AF_ROSE = 0xb + AF_ROUTE = 0x10 + AF_RXRPC = 0x21 + AF_SECURITY = 0xe + AF_SMC = 0x2b + AF_SNA = 0x16 + AF_TIPC = 0x1e + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_VSOCK = 0x28 + AF_WANPIPE = 0x19 + AF_X25 = 0x9 + AF_XDP = 0x2c + ALG_OP_DECRYPT = 0x0 + ALG_OP_ENCRYPT = 0x1 + ALG_SET_AEAD_ASSOCLEN = 0x4 + ALG_SET_AEAD_AUTHSIZE = 0x5 + ALG_SET_IV = 0x2 + ALG_SET_KEY = 0x1 + ALG_SET_OP = 0x3 + ANON_INODE_FS_MAGIC = 0x9041934 + ARPHRD_6LOWPAN = 0x339 + ARPHRD_ADAPT = 0x108 + ARPHRD_APPLETLK = 0x8 + ARPHRD_ARCNET = 0x7 + ARPHRD_ASH = 0x30d + ARPHRD_ATM = 0x13 + ARPHRD_AX25 = 0x3 + ARPHRD_BIF = 0x307 + ARPHRD_CAIF = 0x336 + ARPHRD_CAN = 0x118 + ARPHRD_CHAOS = 0x5 + ARPHRD_CISCO = 0x201 + ARPHRD_CSLIP = 0x101 + ARPHRD_CSLIP6 = 0x103 + ARPHRD_DDCMP = 0x205 + ARPHRD_DLCI = 0xf + ARPHRD_ECONET = 0x30e + ARPHRD_EETHER = 0x2 + ARPHRD_ETHER = 0x1 + ARPHRD_EUI64 = 0x1b + ARPHRD_FCAL = 0x311 + ARPHRD_FCFABRIC = 0x313 + ARPHRD_FCPL = 0x312 + ARPHRD_FCPP = 0x310 + ARPHRD_FDDI = 0x306 + ARPHRD_FRAD = 0x302 + ARPHRD_HDLC = 0x201 + ARPHRD_HIPPI = 0x30c + ARPHRD_HWX25 = 0x110 + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + ARPHRD_IEEE80211 = 0x321 + ARPHRD_IEEE80211_PRISM = 0x322 + ARPHRD_IEEE80211_RADIOTAP = 0x323 + ARPHRD_IEEE802154 = 0x324 + ARPHRD_IEEE802154_MONITOR = 0x325 + ARPHRD_IEEE802_TR = 0x320 + ARPHRD_INFINIBAND = 0x20 + ARPHRD_IP6GRE = 0x337 + ARPHRD_IPDDP = 0x309 + ARPHRD_IPGRE = 0x30a + ARPHRD_IRDA = 0x30f + ARPHRD_LAPB = 0x204 + ARPHRD_LOCALTLK = 0x305 + ARPHRD_LOOPBACK = 0x304 + ARPHRD_METRICOM = 0x17 + ARPHRD_NETLINK = 0x338 + ARPHRD_NETROM = 0x0 + ARPHRD_NONE = 0xfffe + ARPHRD_PHONET = 0x334 + ARPHRD_PHONET_PIPE = 0x335 + ARPHRD_PIMREG = 0x30b + ARPHRD_PPP = 0x200 + ARPHRD_PRONET = 0x4 + ARPHRD_RAWHDLC = 0x206 + ARPHRD_RAWIP = 0x207 + ARPHRD_ROSE = 0x10e + ARPHRD_RSRVD = 0x104 + ARPHRD_SIT = 0x308 + ARPHRD_SKIP = 0x303 + ARPHRD_SLIP = 0x100 + ARPHRD_SLIP6 = 0x102 + ARPHRD_TUNNEL = 0x300 + ARPHRD_TUNNEL6 = 0x301 + ARPHRD_VOID = 0xffff + ARPHRD_VSOCKMON = 0x33a + ARPHRD_X25 = 0x10f + AUTOFS_SUPER_MAGIC = 0x187 + B0 = 0x0 + B110 = 0x3 + B1200 = 0x9 + B134 = 0x4 + B150 = 0x5 + B1800 = 0xa + B19200 = 0xe + B200 = 0x6 + B2400 = 0xb + B300 = 0x7 + B38400 = 0xf + B4800 = 0xc + B50 = 0x1 + B600 = 0x8 + B75 = 0x2 + B9600 = 0xd + BALLOON_KVM_MAGIC = 0x13661366 + BDEVFS_MAGIC = 0x62646576 + BINDERFS_SUPER_MAGIC = 0x6c6f6f70 + BINFMTFS_MAGIC = 0x42494e4d + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff + BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38 + BPF_ALU = 0x4 + BPF_ALU64 = 0x7 + BPF_AND = 0x50 + BPF_ANY = 0x0 + BPF_ARSH = 0xc0 + BPF_B = 0x10 + BPF_BUILD_ID_SIZE = 0x14 + BPF_CALL = 0x80 + BPF_DEVCG_ACC_MKNOD = 0x1 + BPF_DEVCG_ACC_READ = 0x2 + BPF_DEVCG_ACC_WRITE = 0x4 + BPF_DEVCG_DEV_BLOCK = 0x1 + BPF_DEVCG_DEV_CHAR = 0x2 + BPF_DIV = 0x30 + BPF_DW = 0x18 + BPF_END = 0xd0 + BPF_EXIST = 0x2 + BPF_EXIT = 0x90 + BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 0x1 + BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 0x4 + BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 0x2 + BPF_FROM_BE = 0x8 + BPF_FROM_LE = 0x0 + BPF_FS_MAGIC = 0xcafe4a11 + BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2 + BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4 + BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8 + BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10 + BPF_F_ADJ_ROOM_FIXED_GSO = 0x1 + BPF_F_ALLOW_MULTI = 0x2 + BPF_F_ALLOW_OVERRIDE = 0x1 + BPF_F_ANY_ALIGNMENT = 0x2 + BPF_F_CLONE = 0x200 + BPF_F_CTXLEN_MASK = 0xfffff00000000 + BPF_F_CURRENT_CPU = 0xffffffff + BPF_F_CURRENT_NETNS = -0x1 + BPF_F_DONT_FRAGMENT = 0x4 + BPF_F_FAST_STACK_CMP = 0x200 + BPF_F_HDR_FIELD_MASK = 0xf + BPF_F_INDEX_MASK = 0xffffffff + BPF_F_INGRESS = 0x1 + BPF_F_INVALIDATE_HASH = 0x2 + BPF_F_LOCK = 0x4 + BPF_F_MARK_ENFORCE = 0x40 + BPF_F_MARK_MANGLED_0 = 0x20 + BPF_F_MMAPABLE = 0x400 + BPF_F_NO_COMMON_LRU = 0x2 + BPF_F_NO_PREALLOC = 0x1 + BPF_F_NUMA_NODE = 0x4 + BPF_F_PSEUDO_HDR = 0x10 + BPF_F_QUERY_EFFECTIVE = 0x1 + BPF_F_RDONLY = 0x8 + BPF_F_RDONLY_PROG = 0x80 + BPF_F_RECOMPUTE_CSUM = 0x1 + BPF_F_REUSE_STACKID = 0x400 + BPF_F_SEQ_NUMBER = 0x8 + BPF_F_SKIP_FIELD_MASK = 0xff + BPF_F_STACK_BUILD_ID = 0x20 + BPF_F_STRICT_ALIGNMENT = 0x1 + BPF_F_SYSCTL_BASE_NAME = 0x1 + BPF_F_TEST_RND_HI32 = 0x4 + BPF_F_TEST_STATE_FREQ = 0x8 + BPF_F_TUNINFO_IPV6 = 0x1 + BPF_F_USER_BUILD_ID = 0x800 + BPF_F_USER_STACK = 0x100 + BPF_F_WRONLY = 0x10 + BPF_F_WRONLY_PROG = 0x100 + BPF_F_ZERO_CSUM_TX = 0x2 + BPF_F_ZERO_SEED = 0x40 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JLE = 0xb0 + BPF_JLT = 0xa0 + BPF_JMP = 0x5 + BPF_JMP32 = 0x6 + BPF_JNE = 0x50 + BPF_JSET = 0x40 + BPF_JSGE = 0x70 + BPF_JSGT = 0x60 + BPF_JSLE = 0xd0 + BPF_JSLT = 0xc0 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LL_OFF = -0x200000 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXINSNS = 0x1000 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MOV = 0xb0 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_NET_OFF = -0x100000 + BPF_NOEXIST = 0x1 + BPF_OBJ_NAME_LEN = 0x10 + BPF_OR = 0x40 + BPF_PSEUDO_CALL = 0x1 + BPF_PSEUDO_MAP_FD = 0x1 + BPF_PSEUDO_MAP_VALUE = 0x2 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_SK_STORAGE_GET_F_CREATE = 0x1 + BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf + BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 + BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 + BPF_SOCK_OPS_RTT_CB_FLAG = 0x8 + BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAG_SIZE = 0x8 + BPF_TAX = 0x0 + BPF_TO_BE = 0x8 + BPF_TO_LE = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XADD = 0xc0 + BPF_XOR = 0xa0 + BRKINT = 0x2 + BS0 = 0x0 + BTRFS_SUPER_MAGIC = 0x9123683e + BTRFS_TEST_MAGIC = 0x73727279 + CAN_BCM = 0x2 + CAN_EFF_FLAG = 0x80000000 + CAN_EFF_ID_BITS = 0x1d + CAN_EFF_MASK = 0x1fffffff + CAN_ERR_FLAG = 0x20000000 + CAN_ERR_MASK = 0x1fffffff + CAN_INV_FILTER = 0x20000000 + CAN_ISOTP = 0x6 + CAN_J1939 = 0x7 + CAN_MAX_DLC = 0x8 + CAN_MAX_DLEN = 0x8 + CAN_MCNET = 0x5 + CAN_MTU = 0x10 + CAN_NPROTO = 0x8 + CAN_RAW = 0x1 + CAN_RAW_FILTER_MAX = 0x200 + CAN_RTR_FLAG = 0x40000000 + CAN_SFF_ID_BITS = 0xb + CAN_SFF_MASK = 0x7ff + CAN_TP16 = 0x3 + CAN_TP20 = 0x4 + CAP_AUDIT_CONTROL = 0x1e + CAP_AUDIT_READ = 0x25 + CAP_AUDIT_WRITE = 0x1d + CAP_BLOCK_SUSPEND = 0x24 + CAP_CHOWN = 0x0 + CAP_DAC_OVERRIDE = 0x1 + CAP_DAC_READ_SEARCH = 0x2 + CAP_FOWNER = 0x3 + CAP_FSETID = 0x4 + CAP_IPC_LOCK = 0xe + CAP_IPC_OWNER = 0xf + CAP_KILL = 0x5 + CAP_LAST_CAP = 0x25 + CAP_LEASE = 0x1c + CAP_LINUX_IMMUTABLE = 0x9 + CAP_MAC_ADMIN = 0x21 + CAP_MAC_OVERRIDE = 0x20 + CAP_MKNOD = 0x1b + CAP_NET_ADMIN = 0xc + CAP_NET_BIND_SERVICE = 0xa + CAP_NET_BROADCAST = 0xb + CAP_NET_RAW = 0xd + CAP_SETFCAP = 0x1f + CAP_SETGID = 0x6 + CAP_SETPCAP = 0x8 + CAP_SETUID = 0x7 + CAP_SYSLOG = 0x22 + CAP_SYS_ADMIN = 0x15 + CAP_SYS_BOOT = 0x16 + CAP_SYS_CHROOT = 0x12 + CAP_SYS_MODULE = 0x10 + CAP_SYS_NICE = 0x17 + CAP_SYS_PACCT = 0x14 + CAP_SYS_PTRACE = 0x13 + CAP_SYS_RAWIO = 0x11 + CAP_SYS_RESOURCE = 0x18 + CAP_SYS_TIME = 0x19 + CAP_SYS_TTY_CONFIG = 0x1a + CAP_WAKE_ALARM = 0x23 + CFLUSH = 0xf + CGROUP2_SUPER_MAGIC = 0x63677270 + CGROUP_SUPER_MAGIC = 0x27e0eb + CLOCK_BOOTTIME = 0x7 + CLOCK_BOOTTIME_ALARM = 0x9 + CLOCK_DEFAULT = 0x0 + CLOCK_EXT = 0x1 + CLOCK_INT = 0x2 + CLOCK_MONOTONIC = 0x1 + CLOCK_MONOTONIC_COARSE = 0x6 + CLOCK_MONOTONIC_RAW = 0x4 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_ALARM = 0x8 + CLOCK_REALTIME_COARSE = 0x5 + CLOCK_TAI = 0xb + CLOCK_THREAD_CPUTIME_ID = 0x3 + CLOCK_TXFROMRX = 0x4 + CLOCK_TXINT = 0x3 + CLONE_ARGS_SIZE_VER0 = 0x40 + CLONE_ARGS_SIZE_VER1 = 0x50 + CLONE_CHILD_CLEARTID = 0x200000 + CLONE_CHILD_SETTID = 0x1000000 + CLONE_CLEAR_SIGHAND = 0x100000000 + CLONE_DETACHED = 0x400000 + CLONE_FILES = 0x400 + CLONE_FS = 0x200 + CLONE_IO = 0x80000000 + CLONE_NEWCGROUP = 0x2000000 + CLONE_NEWIPC = 0x8000000 + CLONE_NEWNET = 0x40000000 + CLONE_NEWNS = 0x20000 + CLONE_NEWPID = 0x20000000 + CLONE_NEWUSER = 0x10000000 + CLONE_NEWUTS = 0x4000000 + CLONE_PARENT = 0x8000 + CLONE_PARENT_SETTID = 0x100000 + CLONE_PIDFD = 0x1000 + CLONE_PTRACE = 0x2000 + CLONE_SETTLS = 0x80000 + CLONE_SIGHAND = 0x800 + CLONE_SYSVSEM = 0x40000 + CLONE_THREAD = 0x10000 + CLONE_UNTRACED = 0x800000 + CLONE_VFORK = 0x4000 + CLONE_VM = 0x100 + CMSPAR = 0x40000000 + CODA_SUPER_MAGIC = 0x73757245 + CR0 = 0x0 + CRAMFS_MAGIC = 0x28cd3d45 + CRTSCTS = 0x80000000 + CRYPTO_MAX_NAME = 0x40 + CRYPTO_MSG_MAX = 0x15 + CRYPTO_NR_MSGTYPES = 0x6 + CRYPTO_REPORT_MAXSIZE = 0x160 + CS5 = 0x0 + CSIGNAL = 0xff + CSTART = 0x11 + CSTATUS = 0x0 + CSTOP = 0x13 + CSUSP = 0x1a + DAXFS_MAGIC = 0x64646178 + DEBUGFS_MAGIC = 0x64626720 + DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d + DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e + DEVLINK_GENL_MCGRP_CONFIG_NAME = "config" + DEVLINK_GENL_NAME = "devlink" + DEVLINK_GENL_VERSION = 0x1 + DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14 + DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECRYPTFS_SUPER_MAGIC = 0xf15f + EFD_SEMAPHORE = 0x1 + EFIVARFS_MAGIC = 0xde5e81e4 + EFS_SUPER_MAGIC = 0x414a53 + ENCODING_DEFAULT = 0x0 + ENCODING_FM_MARK = 0x3 + ENCODING_FM_SPACE = 0x4 + ENCODING_MANCHESTER = 0x5 + ENCODING_NRZ = 0x1 + ENCODING_NRZI = 0x2 + EPOLLERR = 0x8 + EPOLLET = 0x80000000 + EPOLLEXCLUSIVE = 0x10000000 + EPOLLHUP = 0x10 + EPOLLIN = 0x1 + EPOLLMSG = 0x400 + EPOLLONESHOT = 0x40000000 + EPOLLOUT = 0x4 + EPOLLPRI = 0x2 + EPOLLRDBAND = 0x80 + EPOLLRDHUP = 0x2000 + EPOLLRDNORM = 0x40 + EPOLLWAKEUP = 0x20000000 + EPOLLWRBAND = 0x200 + EPOLLWRNORM = 0x100 + EPOLL_CTL_ADD = 0x1 + EPOLL_CTL_DEL = 0x2 + EPOLL_CTL_MOD = 0x3 + EROFS_SUPER_MAGIC_V1 = 0xe0f5e1e2 + ETH_P_1588 = 0x88f7 + ETH_P_8021AD = 0x88a8 + ETH_P_8021AH = 0x88e7 + ETH_P_8021Q = 0x8100 + ETH_P_80221 = 0x8917 + ETH_P_802_2 = 0x4 + ETH_P_802_3 = 0x1 + ETH_P_802_3_MIN = 0x600 + ETH_P_802_EX1 = 0x88b5 + ETH_P_AARP = 0x80f3 + ETH_P_AF_IUCV = 0xfbfb + ETH_P_ALL = 0x3 + ETH_P_AOE = 0x88a2 + ETH_P_ARCNET = 0x1a + ETH_P_ARP = 0x806 + ETH_P_ATALK = 0x809b + ETH_P_ATMFATE = 0x8884 + ETH_P_ATMMPOA = 0x884c + ETH_P_AX25 = 0x2 + ETH_P_BATMAN = 0x4305 + ETH_P_BPQ = 0x8ff + ETH_P_CAIF = 0xf7 + ETH_P_CAN = 0xc + ETH_P_CANFD = 0xd + ETH_P_CONTROL = 0x16 + ETH_P_CUST = 0x6006 + ETH_P_DDCMP = 0x6 + ETH_P_DEC = 0x6000 + ETH_P_DIAG = 0x6005 + ETH_P_DNA_DL = 0x6001 + ETH_P_DNA_RC = 0x6002 + ETH_P_DNA_RT = 0x6003 + ETH_P_DSA = 0x1b + ETH_P_DSA_8021Q = 0xdadb + ETH_P_ECONET = 0x18 + ETH_P_EDSA = 0xdada + ETH_P_ERSPAN = 0x88be + ETH_P_ERSPAN2 = 0x22eb + ETH_P_FCOE = 0x8906 + ETH_P_FIP = 0x8914 + ETH_P_HDLC = 0x19 + ETH_P_HSR = 0x892f + ETH_P_IBOE = 0x8915 + ETH_P_IEEE802154 = 0xf6 + ETH_P_IEEEPUP = 0xa00 + ETH_P_IEEEPUPAT = 0xa01 + ETH_P_IFE = 0xed3e + ETH_P_IP = 0x800 + ETH_P_IPV6 = 0x86dd + ETH_P_IPX = 0x8137 + ETH_P_IRDA = 0x17 + ETH_P_LAT = 0x6004 + ETH_P_LINK_CTL = 0x886c + ETH_P_LLDP = 0x88cc + ETH_P_LOCALTALK = 0x9 + ETH_P_LOOP = 0x60 + ETH_P_LOOPBACK = 0x9000 + ETH_P_MACSEC = 0x88e5 + ETH_P_MAP = 0xf9 + ETH_P_MOBITEX = 0x15 + ETH_P_MPLS_MC = 0x8848 + ETH_P_MPLS_UC = 0x8847 + ETH_P_MVRP = 0x88f5 + ETH_P_NCSI = 0x88f8 + ETH_P_NSH = 0x894f + ETH_P_PAE = 0x888e + ETH_P_PAUSE = 0x8808 + ETH_P_PHONET = 0xf5 + ETH_P_PPPTALK = 0x10 + ETH_P_PPP_DISC = 0x8863 + ETH_P_PPP_MP = 0x8 + ETH_P_PPP_SES = 0x8864 + ETH_P_PREAUTH = 0x88c7 + ETH_P_PRP = 0x88fb + ETH_P_PUP = 0x200 + ETH_P_PUPAT = 0x201 + ETH_P_QINQ1 = 0x9100 + ETH_P_QINQ2 = 0x9200 + ETH_P_QINQ3 = 0x9300 + ETH_P_RARP = 0x8035 + ETH_P_SCA = 0x6007 + ETH_P_SLOW = 0x8809 + ETH_P_SNAP = 0x5 + ETH_P_TDLS = 0x890d + ETH_P_TEB = 0x6558 + ETH_P_TIPC = 0x88ca + ETH_P_TRAILER = 0x1c + ETH_P_TR_802_2 = 0x11 + ETH_P_TSN = 0x22f0 + ETH_P_WAN_PPP = 0x7 + ETH_P_WCCP = 0x883e + ETH_P_X25 = 0x805 + ETH_P_XDSA = 0xf8 + EXABYTE_ENABLE_NEST = 0xf0 + EXT2_SUPER_MAGIC = 0xef53 + EXT3_SUPER_MAGIC = 0xef53 + EXT4_SUPER_MAGIC = 0xef53 + EXTA = 0xe + EXTB = 0xf + F2FS_SUPER_MAGIC = 0xf2f52010 + FALLOC_FL_COLLAPSE_RANGE = 0x8 + FALLOC_FL_INSERT_RANGE = 0x20 + FALLOC_FL_KEEP_SIZE = 0x1 + FALLOC_FL_NO_HIDE_STALE = 0x4 + FALLOC_FL_PUNCH_HOLE = 0x2 + FALLOC_FL_UNSHARE_RANGE = 0x40 + FALLOC_FL_ZERO_RANGE = 0x10 + FANOTIFY_METADATA_VERSION = 0x3 + FAN_ACCESS = 0x1 + FAN_ACCESS_PERM = 0x20000 + FAN_ALLOW = 0x1 + FAN_ALL_CLASS_BITS = 0xc + FAN_ALL_EVENTS = 0x3b + FAN_ALL_INIT_FLAGS = 0x3f + FAN_ALL_MARK_FLAGS = 0xff + FAN_ALL_OUTGOING_EVENTS = 0x3403b + FAN_ALL_PERM_EVENTS = 0x30000 + FAN_ATTRIB = 0x4 + FAN_AUDIT = 0x10 + FAN_CLASS_CONTENT = 0x4 + FAN_CLASS_NOTIF = 0x0 + FAN_CLASS_PRE_CONTENT = 0x8 + FAN_CLOEXEC = 0x1 + FAN_CLOSE = 0x18 + FAN_CLOSE_NOWRITE = 0x10 + FAN_CLOSE_WRITE = 0x8 + FAN_CREATE = 0x100 + FAN_DELETE = 0x200 + FAN_DELETE_SELF = 0x400 + FAN_DENY = 0x2 + FAN_ENABLE_AUDIT = 0x40 + FAN_EVENT_INFO_TYPE_FID = 0x1 + FAN_EVENT_METADATA_LEN = 0x18 + FAN_EVENT_ON_CHILD = 0x8000000 + FAN_MARK_ADD = 0x1 + FAN_MARK_DONT_FOLLOW = 0x4 + FAN_MARK_FILESYSTEM = 0x100 + FAN_MARK_FLUSH = 0x80 + FAN_MARK_IGNORED_MASK = 0x20 + FAN_MARK_IGNORED_SURV_MODIFY = 0x40 + FAN_MARK_INODE = 0x0 + FAN_MARK_MOUNT = 0x10 + FAN_MARK_ONLYDIR = 0x8 + FAN_MARK_REMOVE = 0x2 + FAN_MODIFY = 0x2 + FAN_MOVE = 0xc0 + FAN_MOVED_FROM = 0x40 + FAN_MOVED_TO = 0x80 + FAN_MOVE_SELF = 0x800 + FAN_NOFD = -0x1 + FAN_NONBLOCK = 0x2 + FAN_ONDIR = 0x40000000 + FAN_OPEN = 0x20 + FAN_OPEN_EXEC = 0x1000 + FAN_OPEN_EXEC_PERM = 0x40000 + FAN_OPEN_PERM = 0x10000 + FAN_Q_OVERFLOW = 0x4000 + FAN_REPORT_FID = 0x200 + FAN_REPORT_TID = 0x100 + FAN_UNLIMITED_MARKS = 0x20 + FAN_UNLIMITED_QUEUE = 0x10 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FF0 = 0x0 + FSCRYPT_KEY_DESCRIPTOR_SIZE = 0x8 + FSCRYPT_KEY_DESC_PREFIX = "fscrypt:" + FSCRYPT_KEY_DESC_PREFIX_SIZE = 0x8 + FSCRYPT_KEY_IDENTIFIER_SIZE = 0x10 + FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY = 0x1 + FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS = 0x2 + FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR = 0x1 + FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER = 0x2 + FSCRYPT_KEY_STATUS_ABSENT = 0x1 + FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF = 0x1 + FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED = 0x3 + FSCRYPT_KEY_STATUS_PRESENT = 0x2 + FSCRYPT_MAX_KEY_SIZE = 0x40 + FSCRYPT_MODE_ADIANTUM = 0x9 + FSCRYPT_MODE_AES_128_CBC = 0x5 + FSCRYPT_MODE_AES_128_CTS = 0x6 + FSCRYPT_MODE_AES_256_CTS = 0x4 + FSCRYPT_MODE_AES_256_XTS = 0x1 + FSCRYPT_POLICY_FLAGS_PAD_16 = 0x2 + FSCRYPT_POLICY_FLAGS_PAD_32 = 0x3 + FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0 + FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1 + FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3 + FSCRYPT_POLICY_FLAGS_VALID = 0xf + FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4 + FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8 + FSCRYPT_POLICY_V1 = 0x0 + FSCRYPT_POLICY_V2 = 0x2 + FS_ENCRYPTION_MODE_ADIANTUM = 0x9 + FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 + FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 + FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 + FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 + FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 + FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 + FS_ENCRYPTION_MODE_INVALID = 0x0 + FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 + FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 + FS_IOC_ADD_ENCRYPTION_KEY = 0xc0506617 + FS_IOC_GET_ENCRYPTION_KEY_STATUS = 0xc080661a + FS_IOC_GET_ENCRYPTION_POLICY_EX = 0xc0096616 + FS_IOC_REMOVE_ENCRYPTION_KEY = 0xc0406618 + FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS = 0xc0406619 + FS_KEY_DESCRIPTOR_SIZE = 0x8 + FS_KEY_DESC_PREFIX = "fscrypt:" + FS_KEY_DESC_PREFIX_SIZE = 0x8 + FS_MAX_KEY_SIZE = 0x40 + FS_POLICY_FLAGS_PAD_16 = 0x2 + FS_POLICY_FLAGS_PAD_32 = 0x3 + FS_POLICY_FLAGS_PAD_4 = 0x0 + FS_POLICY_FLAGS_PAD_8 = 0x1 + FS_POLICY_FLAGS_PAD_MASK = 0x3 + FS_POLICY_FLAGS_VALID = 0xf + FUTEXFS_SUPER_MAGIC = 0xbad1dea + F_ADD_SEALS = 0x409 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x406 + F_EXLCK = 0x4 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLEASE = 0x401 + F_GETOWN_EX = 0x10 + F_GETPIPE_SZ = 0x408 + F_GETSIG = 0xb + F_GET_FILE_RW_HINT = 0x40d + F_GET_RW_HINT = 0x40b + F_GET_SEALS = 0x40a + F_LOCK = 0x1 + F_NOTIFY = 0x402 + F_OFD_GETLK = 0x24 + F_OFD_SETLK = 0x25 + F_OFD_SETLKW = 0x26 + F_OK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 + F_SEAL_GROW = 0x4 + F_SEAL_SEAL = 0x1 + F_SEAL_SHRINK = 0x2 + F_SEAL_WRITE = 0x8 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLEASE = 0x400 + F_SETOWN_EX = 0xf + F_SETPIPE_SZ = 0x407 + F_SETSIG = 0xa + F_SET_FILE_RW_HINT = 0x40e + F_SET_RW_HINT = 0x40c + F_SHLCK = 0x8 + F_TEST = 0x3 + F_TLOCK = 0x2 + F_ULOCK = 0x0 + GENL_ADMIN_PERM = 0x1 + GENL_CMD_CAP_DO = 0x2 + GENL_CMD_CAP_DUMP = 0x4 + GENL_CMD_CAP_HASPOL = 0x8 + GENL_HDRLEN = 0x4 + GENL_ID_CTRL = 0x10 + GENL_ID_PMCRAID = 0x12 + GENL_ID_VFS_DQUOT = 0x11 + GENL_MAX_ID = 0x3ff + GENL_MIN_ID = 0x10 + GENL_NAMSIZ = 0x10 + GENL_START_ALLOC = 0x13 + GENL_UNS_ADMIN_PERM = 0x10 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 + HDIO_DRIVE_CMD = 0x31f + HDIO_DRIVE_CMD_AEB = 0x31e + HDIO_DRIVE_CMD_HDR_SIZE = 0x4 + HDIO_DRIVE_HOB_HDR_SIZE = 0x8 + HDIO_DRIVE_RESET = 0x31c + HDIO_DRIVE_TASK = 0x31e + HDIO_DRIVE_TASKFILE = 0x31d + HDIO_DRIVE_TASK_HDR_SIZE = 0x8 + HDIO_GETGEO = 0x301 + HDIO_GET_32BIT = 0x309 + HDIO_GET_ACOUSTIC = 0x30f + HDIO_GET_ADDRESS = 0x310 + HDIO_GET_BUSSTATE = 0x31a + HDIO_GET_DMA = 0x30b + HDIO_GET_IDENTITY = 0x30d + HDIO_GET_KEEPSETTINGS = 0x308 + HDIO_GET_MULTCOUNT = 0x304 + HDIO_GET_NICE = 0x30c + HDIO_GET_NOWERR = 0x30a + HDIO_GET_QDMA = 0x305 + HDIO_GET_UNMASKINTR = 0x302 + HDIO_GET_WCACHE = 0x30e + HDIO_OBSOLETE_IDENTITY = 0x307 + HDIO_SCAN_HWIF = 0x328 + HDIO_SET_32BIT = 0x324 + HDIO_SET_ACOUSTIC = 0x32c + HDIO_SET_ADDRESS = 0x32f + HDIO_SET_BUSSTATE = 0x32d + HDIO_SET_DMA = 0x326 + HDIO_SET_KEEPSETTINGS = 0x323 + HDIO_SET_MULTCOUNT = 0x321 + HDIO_SET_NICE = 0x329 + HDIO_SET_NOWERR = 0x325 + HDIO_SET_PIO_MODE = 0x327 + HDIO_SET_QDMA = 0x32e + HDIO_SET_UNMASKINTR = 0x322 + HDIO_SET_WCACHE = 0x32b + HDIO_SET_XFER = 0x306 + HDIO_TRISTATE_HWIF = 0x31b + HDIO_UNREGISTER_HWIF = 0x32a + HOSTFS_SUPER_MAGIC = 0xc0ffee + HPFS_SUPER_MAGIC = 0xf995e849 + HUGETLBFS_MAGIC = 0x958458f6 + IBSHIFT = 0x10 + ICMPV6_FILTER = 0x1 + ICRNL = 0x100 + IFA_F_DADFAILED = 0x8 + IFA_F_DEPRECATED = 0x20 + IFA_F_HOMEADDRESS = 0x10 + IFA_F_MANAGETEMPADDR = 0x100 + IFA_F_MCAUTOJOIN = 0x400 + IFA_F_NODAD = 0x2 + IFA_F_NOPREFIXROUTE = 0x200 + IFA_F_OPTIMISTIC = 0x4 + IFA_F_PERMANENT = 0x80 + IFA_F_SECONDARY = 0x1 + IFA_F_STABLE_PRIVACY = 0x800 + IFA_F_TEMPORARY = 0x1 + IFA_F_TENTATIVE = 0x40 + IFA_MAX = 0xa + IFF_ALLMULTI = 0x200 + IFF_ATTACH_QUEUE = 0x200 + IFF_AUTOMEDIA = 0x4000 + IFF_BROADCAST = 0x2 + IFF_DEBUG = 0x4 + IFF_DETACH_QUEUE = 0x400 + IFF_DORMANT = 0x20000 + IFF_DYNAMIC = 0x8000 + IFF_ECHO = 0x40000 + IFF_LOOPBACK = 0x8 + IFF_LOWER_UP = 0x10000 + IFF_MASTER = 0x400 + IFF_MULTICAST = 0x1000 + IFF_MULTI_QUEUE = 0x100 + IFF_NAPI = 0x10 + IFF_NAPI_FRAGS = 0x20 + IFF_NOARP = 0x80 + IFF_NOFILTER = 0x1000 + IFF_NOTRAILERS = 0x20 + IFF_NO_PI = 0x1000 + IFF_ONE_QUEUE = 0x2000 + IFF_PERSIST = 0x800 + IFF_POINTOPOINT = 0x10 + IFF_PORTSEL = 0x2000 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SLAVE = 0x800 + IFF_TAP = 0x2 + IFF_TUN = 0x1 + IFF_TUN_EXCL = 0x8000 + IFF_UP = 0x1 + IFF_VNET_HDR = 0x4000 + IFF_VOLATILE = 0x70c5a + IFNAMSIZ = 0x10 + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_ACCESS = 0x1 + IN_ALL_EVENTS = 0xfff + IN_ATTRIB = 0x4 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLOSE = 0x18 + IN_CLOSE_NOWRITE = 0x10 + IN_CLOSE_WRITE = 0x8 + IN_CREATE = 0x100 + IN_DELETE = 0x200 + IN_DELETE_SELF = 0x400 + IN_DONT_FOLLOW = 0x2000000 + IN_EXCL_UNLINK = 0x4000000 + IN_IGNORED = 0x8000 + IN_ISDIR = 0x40000000 + IN_LOOPBACKNET = 0x7f + IN_MASK_ADD = 0x20000000 + IN_MASK_CREATE = 0x10000000 + IN_MODIFY = 0x2 + IN_MOVE = 0xc0 + IN_MOVED_FROM = 0x40 + IN_MOVED_TO = 0x80 + IN_MOVE_SELF = 0x800 + IN_ONESHOT = 0x80000000 + IN_ONLYDIR = 0x1000000 + IN_OPEN = 0x20 + IN_Q_OVERFLOW = 0x4000 + IN_UNMOUNT = 0x2000 + IPPROTO_AH = 0x33 + IPPROTO_BEETPH = 0x5e + IPPROTO_COMP = 0x6c + IPPROTO_DCCP = 0x21 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_ESP = 0x32 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPIP = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_L2TP = 0x73 + IPPROTO_MH = 0x87 + IPPROTO_MPLS = 0x89 + IPPROTO_MTP = 0x5c + IPPROTO_NONE = 0x3b + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_2292DSTOPTS = 0x4 + IPV6_2292HOPLIMIT = 0x8 + IPV6_2292HOPOPTS = 0x3 + IPV6_2292PKTINFO = 0x2 + IPV6_2292PKTOPTIONS = 0x6 + IPV6_2292RTHDR = 0x5 + IPV6_ADDRFORM = 0x1 + IPV6_ADDR_PREFERENCES = 0x48 + IPV6_ADD_MEMBERSHIP = 0x14 + IPV6_AUTHHDR = 0xa + IPV6_AUTOFLOWLABEL = 0x46 + IPV6_CHECKSUM = 0x7 + IPV6_DONTFRAG = 0x3e + IPV6_DROP_MEMBERSHIP = 0x15 + IPV6_DSTOPTS = 0x3b + IPV6_FREEBIND = 0x4e + IPV6_HDRINCL = 0x24 + IPV6_HOPLIMIT = 0x34 + IPV6_HOPOPTS = 0x36 + IPV6_IPSEC_POLICY = 0x22 + IPV6_JOIN_ANYCAST = 0x1b + IPV6_JOIN_GROUP = 0x14 + IPV6_LEAVE_ANYCAST = 0x1c + IPV6_LEAVE_GROUP = 0x15 + IPV6_MINHOPCOUNT = 0x49 + IPV6_MTU = 0x18 + IPV6_MTU_DISCOVER = 0x17 + IPV6_MULTICAST_ALL = 0x1d + IPV6_MULTICAST_HOPS = 0x12 + IPV6_MULTICAST_IF = 0x11 + IPV6_MULTICAST_LOOP = 0x13 + IPV6_NEXTHOP = 0x9 + IPV6_ORIGDSTADDR = 0x4a + IPV6_PATHMTU = 0x3d + IPV6_PKTINFO = 0x32 + IPV6_PMTUDISC_DO = 0x2 + IPV6_PMTUDISC_DONT = 0x0 + IPV6_PMTUDISC_INTERFACE = 0x4 + IPV6_PMTUDISC_OMIT = 0x5 + IPV6_PMTUDISC_PROBE = 0x3 + IPV6_PMTUDISC_WANT = 0x1 + IPV6_RECVDSTOPTS = 0x3a + IPV6_RECVERR = 0x19 + IPV6_RECVFRAGSIZE = 0x4d + IPV6_RECVHOPLIMIT = 0x33 + IPV6_RECVHOPOPTS = 0x35 + IPV6_RECVORIGDSTADDR = 0x4a + IPV6_RECVPATHMTU = 0x3c + IPV6_RECVPKTINFO = 0x31 + IPV6_RECVRTHDR = 0x38 + IPV6_RECVTCLASS = 0x42 + IPV6_ROUTER_ALERT = 0x16 + IPV6_ROUTER_ALERT_ISOLATE = 0x1e + IPV6_RTHDR = 0x39 + IPV6_RTHDRDSTOPTS = 0x37 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_RXDSTOPTS = 0x3b + IPV6_RXHOPOPTS = 0x36 + IPV6_TCLASS = 0x43 + IPV6_TRANSPARENT = 0x4b + IPV6_UNICAST_HOPS = 0x10 + IPV6_UNICAST_IF = 0x4c + IPV6_V6ONLY = 0x1a + IPV6_XFRM_POLICY = 0x23 + IP_ADD_MEMBERSHIP = 0x23 + IP_ADD_SOURCE_MEMBERSHIP = 0x27 + IP_BIND_ADDRESS_NO_PORT = 0x18 + IP_BLOCK_SOURCE = 0x26 + IP_CHECKSUM = 0x17 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0x24 + IP_DROP_SOURCE_MEMBERSHIP = 0x28 + IP_FREEBIND = 0xf + IP_HDRINCL = 0x3 + IP_IPSEC_POLICY = 0x10 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0x14 + IP_MF = 0x2000 + IP_MINTTL = 0x15 + IP_MSFILTER = 0x29 + IP_MSS = 0x240 + IP_MTU = 0xe + IP_MTU_DISCOVER = 0xa + IP_MULTICAST_ALL = 0x31 + IP_MULTICAST_IF = 0x20 + IP_MULTICAST_LOOP = 0x22 + IP_MULTICAST_TTL = 0x21 + IP_NODEFRAG = 0x16 + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x4 + IP_ORIGDSTADDR = 0x14 + IP_PASSSEC = 0x12 + IP_PKTINFO = 0x8 + IP_PKTOPTIONS = 0x9 + IP_PMTUDISC = 0xa + IP_PMTUDISC_DO = 0x2 + IP_PMTUDISC_DONT = 0x0 + IP_PMTUDISC_INTERFACE = 0x4 + IP_PMTUDISC_OMIT = 0x5 + IP_PMTUDISC_PROBE = 0x3 + IP_PMTUDISC_WANT = 0x1 + IP_RECVERR = 0xb + IP_RECVFRAGSIZE = 0x19 + IP_RECVOPTS = 0x6 + IP_RECVORIGDSTADDR = 0x14 + IP_RECVRETOPTS = 0x7 + IP_RECVTOS = 0xd + IP_RECVTTL = 0xc + IP_RETOPTS = 0x7 + IP_RF = 0x8000 + IP_ROUTER_ALERT = 0x5 + IP_TOS = 0x1 + IP_TRANSPARENT = 0x13 + IP_TTL = 0x2 + IP_UNBLOCK_SOURCE = 0x25 + IP_UNICAST_IF = 0x32 + IP_XFRM_POLICY = 0x11 + ISOFS_SUPER_MAGIC = 0x9660 + ISTRIP = 0x20 + IUTF8 = 0x4000 + IXANY = 0x800 + JFFS2_SUPER_MAGIC = 0x72b6 + KEXEC_ARCH_386 = 0x30000 + KEXEC_ARCH_68K = 0x40000 + KEXEC_ARCH_AARCH64 = 0xb70000 + KEXEC_ARCH_ARM = 0x280000 + KEXEC_ARCH_DEFAULT = 0x0 + KEXEC_ARCH_IA_64 = 0x320000 + KEXEC_ARCH_MASK = 0xffff0000 + KEXEC_ARCH_MIPS = 0x80000 + KEXEC_ARCH_MIPS_LE = 0xa0000 + KEXEC_ARCH_PARISC = 0xf0000 + KEXEC_ARCH_PPC = 0x140000 + KEXEC_ARCH_PPC64 = 0x150000 + KEXEC_ARCH_S390 = 0x160000 + KEXEC_ARCH_SH = 0x2a0000 + KEXEC_ARCH_X86_64 = 0x3e0000 + KEXEC_FILE_NO_INITRAMFS = 0x4 + KEXEC_FILE_ON_CRASH = 0x2 + KEXEC_FILE_UNLOAD = 0x1 + KEXEC_ON_CRASH = 0x1 + KEXEC_PRESERVE_CONTEXT = 0x2 + KEXEC_SEGMENT_MAX = 0x10 + KEYCTL_ASSUME_AUTHORITY = 0x10 + KEYCTL_CAPABILITIES = 0x1f + KEYCTL_CAPS0_BIG_KEY = 0x10 + KEYCTL_CAPS0_CAPABILITIES = 0x1 + KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4 + KEYCTL_CAPS0_INVALIDATE = 0x20 + KEYCTL_CAPS0_MOVE = 0x80 + KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2 + KEYCTL_CAPS0_PUBLIC_KEY = 0x8 + KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40 + KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1 + KEYCTL_CAPS1_NS_KEY_TAG = 0x2 + KEYCTL_CHOWN = 0x4 + KEYCTL_CLEAR = 0x7 + KEYCTL_DESCRIBE = 0x6 + KEYCTL_DH_COMPUTE = 0x17 + KEYCTL_GET_KEYRING_ID = 0x0 + KEYCTL_GET_PERSISTENT = 0x16 + KEYCTL_GET_SECURITY = 0x11 + KEYCTL_INSTANTIATE = 0xc + KEYCTL_INSTANTIATE_IOV = 0x14 + KEYCTL_INVALIDATE = 0x15 + KEYCTL_JOIN_SESSION_KEYRING = 0x1 + KEYCTL_LINK = 0x8 + KEYCTL_MOVE = 0x1e + KEYCTL_MOVE_EXCL = 0x1 + KEYCTL_NEGATE = 0xd + KEYCTL_PKEY_DECRYPT = 0x1a + KEYCTL_PKEY_ENCRYPT = 0x19 + KEYCTL_PKEY_QUERY = 0x18 + KEYCTL_PKEY_SIGN = 0x1b + KEYCTL_PKEY_VERIFY = 0x1c + KEYCTL_READ = 0xb + KEYCTL_REJECT = 0x13 + KEYCTL_RESTRICT_KEYRING = 0x1d + KEYCTL_REVOKE = 0x3 + KEYCTL_SEARCH = 0xa + KEYCTL_SESSION_TO_PARENT = 0x12 + KEYCTL_SETPERM = 0x5 + KEYCTL_SET_REQKEY_KEYRING = 0xe + KEYCTL_SET_TIMEOUT = 0xf + KEYCTL_SUPPORTS_DECRYPT = 0x2 + KEYCTL_SUPPORTS_ENCRYPT = 0x1 + KEYCTL_SUPPORTS_SIGN = 0x4 + KEYCTL_SUPPORTS_VERIFY = 0x8 + KEYCTL_UNLINK = 0x9 + KEYCTL_UPDATE = 0x2 + KEY_REQKEY_DEFL_DEFAULT = 0x0 + KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 + KEY_REQKEY_DEFL_NO_CHANGE = -0x1 + KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 + KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 + KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 + KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 + KEY_REQKEY_DEFL_USER_KEYRING = 0x4 + KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 + KEY_SPEC_GROUP_KEYRING = -0x6 + KEY_SPEC_PROCESS_KEYRING = -0x2 + KEY_SPEC_REQKEY_AUTH_KEY = -0x7 + KEY_SPEC_REQUESTOR_KEYRING = -0x8 + KEY_SPEC_SESSION_KEYRING = -0x3 + KEY_SPEC_THREAD_KEYRING = -0x1 + KEY_SPEC_USER_KEYRING = -0x4 + KEY_SPEC_USER_SESSION_KEYRING = -0x5 + LINUX_REBOOT_CMD_CAD_OFF = 0x0 + LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef + LINUX_REBOOT_CMD_HALT = 0xcdef0123 + LINUX_REBOOT_CMD_KEXEC = 0x45584543 + LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc + LINUX_REBOOT_CMD_RESTART = 0x1234567 + LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 + LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 + LINUX_REBOOT_MAGIC1 = 0xfee1dead + LINUX_REBOOT_MAGIC2 = 0x28121969 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + LOOP_CLR_FD = 0x4c01 + LOOP_CTL_ADD = 0x4c80 + LOOP_CTL_GET_FREE = 0x4c82 + LOOP_CTL_REMOVE = 0x4c81 + LOOP_GET_STATUS = 0x4c03 + LOOP_GET_STATUS64 = 0x4c05 + LOOP_SET_BLOCK_SIZE = 0x4c09 + LOOP_SET_CAPACITY = 0x4c07 + LOOP_SET_DIRECT_IO = 0x4c08 + LOOP_SET_FD = 0x4c00 + LOOP_SET_STATUS = 0x4c02 + LOOP_SET_STATUS64 = 0x4c04 + LO_KEY_SIZE = 0x20 + LO_NAME_SIZE = 0x40 + MADV_COLD = 0x14 + MADV_DODUMP = 0x11 + MADV_DOFORK = 0xb + MADV_DONTDUMP = 0x10 + MADV_DONTFORK = 0xa + MADV_DONTNEED = 0x4 + MADV_FREE = 0x8 + MADV_HUGEPAGE = 0xe + MADV_HWPOISON = 0x64 + MADV_KEEPONFORK = 0x13 + MADV_MERGEABLE = 0xc + MADV_NOHUGEPAGE = 0xf + MADV_NORMAL = 0x0 + MADV_PAGEOUT = 0x15 + MADV_RANDOM = 0x1 + MADV_REMOVE = 0x9 + MADV_SEQUENTIAL = 0x2 + MADV_UNMERGEABLE = 0xd + MADV_WILLNEED = 0x3 + MADV_WIPEONFORK = 0x12 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FIXED_NOREPLACE = 0x100000 + MAP_HUGE_MASK = 0x3f + MAP_HUGE_SHIFT = 0x1a + MAP_PRIVATE = 0x2 + MAP_SHARED = 0x1 + MAP_SHARED_VALIDATE = 0x3 + MAP_TYPE = 0xf + MCAST_BLOCK_SOURCE = 0x2b + MCAST_EXCLUDE = 0x0 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x2a + MCAST_JOIN_SOURCE_GROUP = 0x2e + MCAST_LEAVE_GROUP = 0x2d + MCAST_LEAVE_SOURCE_GROUP = 0x2f + MCAST_MSFILTER = 0x30 + MCAST_UNBLOCK_SOURCE = 0x2c + MFD_ALLOW_SEALING = 0x2 + MFD_CLOEXEC = 0x1 + MFD_HUGETLB = 0x4 + MFD_HUGE_16GB = -0x78000000 + MFD_HUGE_16MB = 0x60000000 + MFD_HUGE_1GB = 0x78000000 + MFD_HUGE_1MB = 0x50000000 + MFD_HUGE_256MB = 0x70000000 + MFD_HUGE_2GB = 0x7c000000 + MFD_HUGE_2MB = 0x54000000 + MFD_HUGE_32MB = 0x64000000 + MFD_HUGE_512KB = 0x4c000000 + MFD_HUGE_512MB = 0x74000000 + MFD_HUGE_64KB = 0x40000000 + MFD_HUGE_8MB = 0x5c000000 + MFD_HUGE_MASK = 0x3f + MFD_HUGE_SHIFT = 0x1a + MINIX2_SUPER_MAGIC = 0x2468 + MINIX2_SUPER_MAGIC2 = 0x2478 + MINIX3_SUPER_MAGIC = 0x4d5a + MINIX_SUPER_MAGIC = 0x137f + MINIX_SUPER_MAGIC2 = 0x138f + MNT_DETACH = 0x2 + MNT_EXPIRE = 0x4 + MNT_FORCE = 0x1 + MODULE_INIT_IGNORE_MODVERSIONS = 0x1 + MODULE_INIT_IGNORE_VERMAGIC = 0x2 + MSDOS_SUPER_MAGIC = 0x4d44 + MSG_BATCH = 0x40000 + MSG_CMSG_CLOEXEC = 0x40000000 + MSG_CONFIRM = 0x800 + MSG_CTRUNC = 0x8 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x40 + MSG_EOR = 0x80 + MSG_ERRQUEUE = 0x2000 + MSG_FASTOPEN = 0x20000000 + MSG_FIN = 0x200 + MSG_MORE = 0x8000 + MSG_NOSIGNAL = 0x4000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_PROXY = 0x10 + MSG_RST = 0x1000 + MSG_SYN = 0x400 + MSG_TRUNC = 0x20 + MSG_TRYHARD = 0x4 + MSG_WAITALL = 0x100 + MSG_WAITFORONE = 0x10000 + MSG_ZEROCOPY = 0x4000000 + MS_ACTIVE = 0x40000000 + MS_ASYNC = 0x1 + MS_BIND = 0x1000 + MS_BORN = 0x20000000 + MS_DIRSYNC = 0x80 + MS_INVALIDATE = 0x2 + MS_I_VERSION = 0x800000 + MS_KERNMOUNT = 0x400000 + MS_LAZYTIME = 0x2000000 + MS_MANDLOCK = 0x40 + MS_MGC_MSK = 0xffff0000 + MS_MGC_VAL = 0xc0ed0000 + MS_MOVE = 0x2000 + MS_NOATIME = 0x400 + MS_NODEV = 0x4 + MS_NODIRATIME = 0x800 + MS_NOEXEC = 0x8 + MS_NOREMOTELOCK = 0x8000000 + MS_NOSEC = 0x10000000 + MS_NOSUID = 0x2 + MS_NOUSER = -0x80000000 + MS_POSIXACL = 0x10000 + MS_PRIVATE = 0x40000 + MS_RDONLY = 0x1 + MS_REC = 0x4000 + MS_RELATIME = 0x200000 + MS_REMOUNT = 0x20 + MS_RMT_MASK = 0x2800051 + MS_SHARED = 0x100000 + MS_SILENT = 0x8000 + MS_SLAVE = 0x80000 + MS_STRICTATIME = 0x1000000 + MS_SUBMOUNT = 0x4000000 + MS_SYNC = 0x4 + MS_SYNCHRONOUS = 0x10 + MS_UNBINDABLE = 0x20000 + MS_VERBOSE = 0x8000 + MTD_INODE_FS_MAGIC = 0x11307854 + NAME_MAX = 0xff + NCP_SUPER_MAGIC = 0x564c + NETLINK_ADD_MEMBERSHIP = 0x1 + NETLINK_AUDIT = 0x9 + NETLINK_BROADCAST_ERROR = 0x4 + NETLINK_CAP_ACK = 0xa + NETLINK_CONNECTOR = 0xb + NETLINK_CRYPTO = 0x15 + NETLINK_DNRTMSG = 0xe + NETLINK_DROP_MEMBERSHIP = 0x2 + NETLINK_ECRYPTFS = 0x13 + NETLINK_EXT_ACK = 0xb + NETLINK_FIB_LOOKUP = 0xa + NETLINK_FIREWALL = 0x3 + NETLINK_GENERIC = 0x10 + NETLINK_GET_STRICT_CHK = 0xc + NETLINK_INET_DIAG = 0x4 + NETLINK_IP6_FW = 0xd + NETLINK_ISCSI = 0x8 + NETLINK_KOBJECT_UEVENT = 0xf + NETLINK_LISTEN_ALL_NSID = 0x8 + NETLINK_LIST_MEMBERSHIPS = 0x9 + NETLINK_NETFILTER = 0xc + NETLINK_NFLOG = 0x5 + NETLINK_NO_ENOBUFS = 0x5 + NETLINK_PKTINFO = 0x3 + NETLINK_RDMA = 0x14 + NETLINK_ROUTE = 0x0 + NETLINK_RX_RING = 0x6 + NETLINK_SCSITRANSPORT = 0x12 + NETLINK_SELINUX = 0x7 + NETLINK_SMC = 0x16 + NETLINK_SOCK_DIAG = 0x4 + NETLINK_TX_RING = 0x7 + NETLINK_UNUSED = 0x1 + NETLINK_USERSOCK = 0x2 + NETLINK_XFRM = 0x6 + NETNSA_MAX = 0x5 + NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFNETLINK_V0 = 0x0 + NFNLGRP_ACCT_QUOTA = 0x8 + NFNLGRP_CONNTRACK_DESTROY = 0x3 + NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 + NFNLGRP_CONNTRACK_EXP_NEW = 0x4 + NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 + NFNLGRP_CONNTRACK_NEW = 0x1 + NFNLGRP_CONNTRACK_UPDATE = 0x2 + NFNLGRP_MAX = 0x9 + NFNLGRP_NFTABLES = 0x7 + NFNLGRP_NFTRACE = 0x9 + NFNLGRP_NONE = 0x0 + NFNL_BATCH_MAX = 0x1 + NFNL_MSG_BATCH_BEGIN = 0x10 + NFNL_MSG_BATCH_END = 0x11 + NFNL_NFA_NEST = 0x8000 + NFNL_SUBSYS_ACCT = 0x7 + NFNL_SUBSYS_COUNT = 0xc + NFNL_SUBSYS_CTHELPER = 0x9 + NFNL_SUBSYS_CTNETLINK = 0x1 + NFNL_SUBSYS_CTNETLINK_EXP = 0x2 + NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 + NFNL_SUBSYS_IPSET = 0x6 + NFNL_SUBSYS_NFTABLES = 0xa + NFNL_SUBSYS_NFT_COMPAT = 0xb + NFNL_SUBSYS_NONE = 0x0 + NFNL_SUBSYS_OSF = 0x5 + NFNL_SUBSYS_QUEUE = 0x3 + NFNL_SUBSYS_ULOG = 0x4 + NFS_SUPER_MAGIC = 0x6969 + NILFS_SUPER_MAGIC = 0x3434 + NL0 = 0x0 + NL1 = 0x100 + NLA_ALIGNTO = 0x4 + NLA_F_NESTED = 0x8000 + NLA_F_NET_BYTEORDER = 0x4000 + NLA_HDRLEN = 0x4 + NLMSG_ALIGNTO = 0x4 + NLMSG_DONE = 0x3 + NLMSG_ERROR = 0x2 + NLMSG_HDRLEN = 0x10 + NLMSG_MIN_TYPE = 0x10 + NLMSG_NOOP = 0x1 + NLMSG_OVERRUN = 0x4 + NLM_F_ACK = 0x4 + NLM_F_ACK_TLVS = 0x200 + NLM_F_APPEND = 0x800 + NLM_F_ATOMIC = 0x400 + NLM_F_CAPPED = 0x100 + NLM_F_CREATE = 0x400 + NLM_F_DUMP = 0x300 + NLM_F_DUMP_FILTERED = 0x20 + NLM_F_DUMP_INTR = 0x10 + NLM_F_ECHO = 0x8 + NLM_F_EXCL = 0x200 + NLM_F_MATCH = 0x200 + NLM_F_MULTI = 0x2 + NLM_F_NONREC = 0x100 + NLM_F_REPLACE = 0x100 + NLM_F_REQUEST = 0x1 + NLM_F_ROOT = 0x100 + NSFS_MAGIC = 0x6e736673 + OCFS2_SUPER_MAGIC = 0x7461636f + OCRNL = 0x8 + OFDEL = 0x80 + OFILL = 0x40 + ONLRET = 0x20 + ONOCR = 0x10 + OPENPROM_SUPER_MAGIC = 0x9fa1 + OPOST = 0x1 + OVERLAYFS_SUPER_MAGIC = 0x794c7630 + O_ACCMODE = 0x3 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_WRONLY = 0x1 + PACKET_ADD_MEMBERSHIP = 0x1 + PACKET_AUXDATA = 0x8 + PACKET_BROADCAST = 0x1 + PACKET_COPY_THRESH = 0x7 + PACKET_DROP_MEMBERSHIP = 0x2 + PACKET_FANOUT = 0x12 + PACKET_FANOUT_CBPF = 0x6 + PACKET_FANOUT_CPU = 0x2 + PACKET_FANOUT_DATA = 0x16 + PACKET_FANOUT_EBPF = 0x7 + PACKET_FANOUT_FLAG_DEFRAG = 0x8000 + PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 + PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 + PACKET_FANOUT_HASH = 0x0 + PACKET_FANOUT_LB = 0x1 + PACKET_FANOUT_QM = 0x5 + PACKET_FANOUT_RND = 0x4 + PACKET_FANOUT_ROLLOVER = 0x3 + PACKET_FASTROUTE = 0x6 + PACKET_HDRLEN = 0xb + PACKET_HOST = 0x0 + PACKET_IGNORE_OUTGOING = 0x17 + PACKET_KERNEL = 0x7 + PACKET_LOOPBACK = 0x5 + PACKET_LOSS = 0xe + PACKET_MR_ALLMULTI = 0x2 + PACKET_MR_MULTICAST = 0x0 + PACKET_MR_PROMISC = 0x1 + PACKET_MR_UNICAST = 0x3 + PACKET_MULTICAST = 0x2 + PACKET_ORIGDEV = 0x9 + PACKET_OTHERHOST = 0x3 + PACKET_OUTGOING = 0x4 + PACKET_QDISC_BYPASS = 0x14 + PACKET_RECV_OUTPUT = 0x3 + PACKET_RESERVE = 0xc + PACKET_ROLLOVER_STATS = 0x15 + PACKET_RX_RING = 0x5 + PACKET_STATISTICS = 0x6 + PACKET_TIMESTAMP = 0x11 + PACKET_TX_HAS_OFF = 0x13 + PACKET_TX_RING = 0xd + PACKET_TX_TIMESTAMP = 0x10 + PACKET_USER = 0x6 + PACKET_VERSION = 0xa + PACKET_VNET_HDR = 0xf + PARITY_CRC16_PR0 = 0x2 + PARITY_CRC16_PR0_CCITT = 0x4 + PARITY_CRC16_PR1 = 0x3 + PARITY_CRC16_PR1_CCITT = 0x5 + PARITY_CRC32_PR0_CCITT = 0x6 + PARITY_CRC32_PR1_CCITT = 0x7 + PARITY_DEFAULT = 0x0 + PARITY_NONE = 0x1 + PARMRK = 0x8 + PIPEFS_MAGIC = 0x50495045 + PPC_CMM_MAGIC = 0xc7571590 + PPPIOCGNPMODE = 0xc008744c + PPPIOCNEWUNIT = 0xc004743e + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROC_SUPER_MAGIC = 0x9fa0 + PROT_EXEC = 0x4 + PROT_GROWSDOWN = 0x1000000 + PROT_GROWSUP = 0x2000000 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PR_CAPBSET_DROP = 0x18 + PR_CAPBSET_READ = 0x17 + PR_CAP_AMBIENT = 0x2f + PR_CAP_AMBIENT_CLEAR_ALL = 0x4 + PR_CAP_AMBIENT_IS_SET = 0x1 + PR_CAP_AMBIENT_LOWER = 0x3 + PR_CAP_AMBIENT_RAISE = 0x2 + PR_ENDIAN_BIG = 0x0 + PR_ENDIAN_LITTLE = 0x1 + PR_ENDIAN_PPC_LITTLE = 0x2 + PR_FPEMU_NOPRINT = 0x1 + PR_FPEMU_SIGFPE = 0x2 + PR_FP_EXC_ASYNC = 0x2 + PR_FP_EXC_DISABLED = 0x0 + PR_FP_EXC_DIV = 0x10000 + PR_FP_EXC_INV = 0x100000 + PR_FP_EXC_NONRECOV = 0x1 + PR_FP_EXC_OVF = 0x20000 + PR_FP_EXC_PRECISE = 0x3 + PR_FP_EXC_RES = 0x80000 + PR_FP_EXC_SW_ENABLE = 0x80 + PR_FP_EXC_UND = 0x40000 + PR_FP_MODE_FR = 0x1 + PR_FP_MODE_FRE = 0x2 + PR_GET_CHILD_SUBREAPER = 0x25 + PR_GET_DUMPABLE = 0x3 + PR_GET_ENDIAN = 0x13 + PR_GET_FPEMU = 0x9 + PR_GET_FPEXC = 0xb + PR_GET_FP_MODE = 0x2e + PR_GET_KEEPCAPS = 0x7 + PR_GET_NAME = 0x10 + PR_GET_NO_NEW_PRIVS = 0x27 + PR_GET_PDEATHSIG = 0x2 + PR_GET_SECCOMP = 0x15 + PR_GET_SECUREBITS = 0x1b + PR_GET_SPECULATION_CTRL = 0x34 + PR_GET_TAGGED_ADDR_CTRL = 0x38 + PR_GET_THP_DISABLE = 0x2a + PR_GET_TID_ADDRESS = 0x28 + PR_GET_TIMERSLACK = 0x1e + PR_GET_TIMING = 0xd + PR_GET_TSC = 0x19 + PR_GET_UNALIGN = 0x5 + PR_MCE_KILL = 0x21 + PR_MCE_KILL_CLEAR = 0x0 + PR_MCE_KILL_DEFAULT = 0x2 + PR_MCE_KILL_EARLY = 0x1 + PR_MCE_KILL_GET = 0x22 + PR_MCE_KILL_LATE = 0x0 + PR_MCE_KILL_SET = 0x1 + PR_MPX_DISABLE_MANAGEMENT = 0x2c + PR_MPX_ENABLE_MANAGEMENT = 0x2b + PR_PAC_APDAKEY = 0x4 + PR_PAC_APDBKEY = 0x8 + PR_PAC_APGAKEY = 0x10 + PR_PAC_APIAKEY = 0x1 + PR_PAC_APIBKEY = 0x2 + PR_PAC_RESET_KEYS = 0x36 + PR_SET_CHILD_SUBREAPER = 0x24 + PR_SET_DUMPABLE = 0x4 + PR_SET_ENDIAN = 0x14 + PR_SET_FPEMU = 0xa + PR_SET_FPEXC = 0xc + PR_SET_FP_MODE = 0x2d + PR_SET_KEEPCAPS = 0x8 + PR_SET_MM = 0x23 + PR_SET_MM_ARG_END = 0x9 + PR_SET_MM_ARG_START = 0x8 + PR_SET_MM_AUXV = 0xc + PR_SET_MM_BRK = 0x7 + PR_SET_MM_END_CODE = 0x2 + PR_SET_MM_END_DATA = 0x4 + PR_SET_MM_ENV_END = 0xb + PR_SET_MM_ENV_START = 0xa + PR_SET_MM_EXE_FILE = 0xd + PR_SET_MM_MAP = 0xe + PR_SET_MM_MAP_SIZE = 0xf + PR_SET_MM_START_BRK = 0x6 + PR_SET_MM_START_CODE = 0x1 + PR_SET_MM_START_DATA = 0x3 + PR_SET_MM_START_STACK = 0x5 + PR_SET_NAME = 0xf + PR_SET_NO_NEW_PRIVS = 0x26 + PR_SET_PDEATHSIG = 0x1 + PR_SET_PTRACER = 0x59616d61 + PR_SET_SECCOMP = 0x16 + PR_SET_SECUREBITS = 0x1c + PR_SET_SPECULATION_CTRL = 0x35 + PR_SET_TAGGED_ADDR_CTRL = 0x37 + PR_SET_THP_DISABLE = 0x29 + PR_SET_TIMERSLACK = 0x1d + PR_SET_TIMING = 0xe + PR_SET_TSC = 0x1a + PR_SET_UNALIGN = 0x6 + PR_SPEC_DISABLE = 0x4 + PR_SPEC_DISABLE_NOEXEC = 0x10 + PR_SPEC_ENABLE = 0x2 + PR_SPEC_FORCE_DISABLE = 0x8 + PR_SPEC_INDIRECT_BRANCH = 0x1 + PR_SPEC_NOT_AFFECTED = 0x0 + PR_SPEC_PRCTL = 0x1 + PR_SPEC_STORE_BYPASS = 0x0 + PR_SVE_GET_VL = 0x33 + PR_SVE_SET_VL = 0x32 + PR_SVE_SET_VL_ONEXEC = 0x40000 + PR_SVE_VL_INHERIT = 0x20000 + PR_SVE_VL_LEN_MASK = 0xffff + PR_TAGGED_ADDR_ENABLE = 0x1 + PR_TASK_PERF_EVENTS_DISABLE = 0x1f + PR_TASK_PERF_EVENTS_ENABLE = 0x20 + PR_TIMING_STATISTICAL = 0x0 + PR_TIMING_TIMESTAMP = 0x1 + PR_TSC_ENABLE = 0x1 + PR_TSC_SIGSEGV = 0x2 + PR_UNALIGN_NOPRINT = 0x1 + PR_UNALIGN_SIGBUS = 0x2 + PSTOREFS_MAGIC = 0x6165676c + PTRACE_ATTACH = 0x10 + PTRACE_CONT = 0x7 + PTRACE_DETACH = 0x11 + PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1 + PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2 + PTRACE_EVENT_CLONE = 0x3 + PTRACE_EVENT_EXEC = 0x4 + PTRACE_EVENT_EXIT = 0x6 + PTRACE_EVENT_FORK = 0x1 + PTRACE_EVENT_SECCOMP = 0x7 + PTRACE_EVENT_STOP = 0x80 + PTRACE_EVENT_VFORK = 0x2 + PTRACE_EVENT_VFORK_DONE = 0x5 + PTRACE_GETEVENTMSG = 0x4201 + PTRACE_GETREGS = 0xc + PTRACE_GETREGSET = 0x4204 + PTRACE_GETSIGINFO = 0x4202 + PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e + PTRACE_INTERRUPT = 0x4207 + PTRACE_KILL = 0x8 + PTRACE_LISTEN = 0x4208 + PTRACE_O_EXITKILL = 0x100000 + PTRACE_O_MASK = 0x3000ff + PTRACE_O_SUSPEND_SECCOMP = 0x200000 + PTRACE_O_TRACECLONE = 0x8 + PTRACE_O_TRACEEXEC = 0x10 + PTRACE_O_TRACEEXIT = 0x40 + PTRACE_O_TRACEFORK = 0x2 + PTRACE_O_TRACESECCOMP = 0x80 + PTRACE_O_TRACESYSGOOD = 0x1 + PTRACE_O_TRACEVFORK = 0x4 + PTRACE_O_TRACEVFORKDONE = 0x20 + PTRACE_PEEKDATA = 0x2 + PTRACE_PEEKSIGINFO = 0x4209 + PTRACE_PEEKSIGINFO_SHARED = 0x1 + PTRACE_PEEKTEXT = 0x1 + PTRACE_PEEKUSR = 0x3 + PTRACE_POKEDATA = 0x5 + PTRACE_POKETEXT = 0x4 + PTRACE_POKEUSR = 0x6 + PTRACE_SECCOMP_GET_FILTER = 0x420c + PTRACE_SECCOMP_GET_METADATA = 0x420d + PTRACE_SEIZE = 0x4206 + PTRACE_SETOPTIONS = 0x4200 + PTRACE_SETREGS = 0xd + PTRACE_SETREGSET = 0x4205 + PTRACE_SETSIGINFO = 0x4203 + PTRACE_SETSIGMASK = 0x420b + PTRACE_SINGLESTEP = 0x9 + PTRACE_SYSCALL = 0x18 + PTRACE_SYSCALL_INFO_ENTRY = 0x1 + PTRACE_SYSCALL_INFO_EXIT = 0x2 + PTRACE_SYSCALL_INFO_NONE = 0x0 + PTRACE_SYSCALL_INFO_SECCOMP = 0x3 + PTRACE_TRACEME = 0x0 + QNX4_SUPER_MAGIC = 0x2f + QNX6_SUPER_MAGIC = 0x68191122 + RAMFS_MAGIC = 0x858458f6 + RDTGROUP_SUPER_MAGIC = 0x7655821 + REISERFS_SUPER_MAGIC = 0x52654973 + RENAME_EXCHANGE = 0x2 + RENAME_NOREPLACE = 0x1 + RENAME_WHITEOUT = 0x4 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_LOCKS = 0xa + RLIMIT_MSGQUEUE = 0xc + RLIMIT_NICE = 0xd + RLIMIT_RTPRIO = 0xe + RLIMIT_RTTIME = 0xf + RLIMIT_SIGPENDING = 0xb + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0xffffffffffffffff + RTAX_ADVMSS = 0x8 + RTAX_CC_ALGO = 0x10 + RTAX_CWND = 0x7 + RTAX_FASTOPEN_NO_COOKIE = 0x11 + RTAX_FEATURES = 0xc + RTAX_FEATURE_ALLFRAG = 0x8 + RTAX_FEATURE_ECN = 0x1 + RTAX_FEATURE_MASK = 0xf + RTAX_FEATURE_SACK = 0x2 + RTAX_FEATURE_TIMESTAMP = 0x4 + RTAX_HOPLIMIT = 0xa + RTAX_INITCWND = 0xb + RTAX_INITRWND = 0xe + RTAX_LOCK = 0x1 + RTAX_MAX = 0x11 + RTAX_MTU = 0x2 + RTAX_QUICKACK = 0xf + RTAX_REORDERING = 0x9 + RTAX_RTO_MIN = 0xd + RTAX_RTT = 0x4 + RTAX_RTTVAR = 0x5 + RTAX_SSTHRESH = 0x6 + RTAX_UNSPEC = 0x0 + RTAX_WINDOW = 0x3 + RTA_ALIGNTO = 0x4 + RTA_MAX = 0x1e + RTCF_DIRECTSRC = 0x4000000 + RTCF_DOREDIRECT = 0x1000000 + RTCF_LOG = 0x2000000 + RTCF_MASQ = 0x400000 + RTCF_NAT = 0x800000 + RTCF_VALVE = 0x200000 + RTC_AF = 0x20 + RTC_IRQF = 0x80 + RTC_MAX_FREQ = 0x2000 + RTC_PF = 0x40 + RTC_UF = 0x10 + RTF_ADDRCLASSMASK = 0xf8000000 + RTF_ADDRCONF = 0x40000 + RTF_ALLONLINK = 0x20000 + RTF_BROADCAST = 0x10000000 + RTF_CACHE = 0x1000000 + RTF_DEFAULT = 0x10000 + RTF_DYNAMIC = 0x10 + RTF_FLOW = 0x2000000 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_INTERFACE = 0x40000000 + RTF_IRTT = 0x100 + RTF_LINKRT = 0x100000 + RTF_LOCAL = 0x80000000 + RTF_MODIFIED = 0x20 + RTF_MSS = 0x40 + RTF_MTU = 0x40 + RTF_MULTICAST = 0x20000000 + RTF_NAT = 0x8000000 + RTF_NOFORWARD = 0x1000 + RTF_NONEXTHOP = 0x200000 + RTF_NOPMTUDISC = 0x4000 + RTF_POLICY = 0x4000000 + RTF_REINSTATE = 0x8 + RTF_REJECT = 0x200 + RTF_STATIC = 0x400 + RTF_THROW = 0x2000 + RTF_UP = 0x1 + RTF_WINDOW = 0x80 + RTF_XRESOLVE = 0x800 + RTMGRP_DECnet_IFADDR = 0x1000 + RTMGRP_DECnet_ROUTE = 0x4000 + RTMGRP_IPV4_IFADDR = 0x10 + RTMGRP_IPV4_MROUTE = 0x20 + RTMGRP_IPV4_ROUTE = 0x40 + RTMGRP_IPV4_RULE = 0x80 + RTMGRP_IPV6_IFADDR = 0x100 + RTMGRP_IPV6_IFINFO = 0x800 + RTMGRP_IPV6_MROUTE = 0x200 + RTMGRP_IPV6_PREFIX = 0x20000 + RTMGRP_IPV6_ROUTE = 0x400 + RTMGRP_LINK = 0x1 + RTMGRP_NEIGH = 0x4 + RTMGRP_NOTIFY = 0x2 + RTMGRP_TC = 0x8 + RTM_BASE = 0x10 + RTM_DELACTION = 0x31 + RTM_DELADDR = 0x15 + RTM_DELADDRLABEL = 0x49 + RTM_DELCHAIN = 0x65 + RTM_DELLINK = 0x11 + RTM_DELLINKPROP = 0x6d + RTM_DELMDB = 0x55 + RTM_DELNEIGH = 0x1d + RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 + RTM_DELNSID = 0x59 + RTM_DELQDISC = 0x25 + RTM_DELROUTE = 0x19 + RTM_DELRULE = 0x21 + RTM_DELTCLASS = 0x29 + RTM_DELTFILTER = 0x2d + RTM_F_CLONED = 0x200 + RTM_F_EQUALIZE = 0x400 + RTM_F_FIB_MATCH = 0x2000 + RTM_F_LOOKUP_TABLE = 0x1000 + RTM_F_NOTIFY = 0x100 + RTM_F_PREFIX = 0x800 + RTM_GETACTION = 0x32 + RTM_GETADDR = 0x16 + RTM_GETADDRLABEL = 0x4a + RTM_GETANYCAST = 0x3e + RTM_GETCHAIN = 0x66 + RTM_GETDCB = 0x4e + RTM_GETLINK = 0x12 + RTM_GETLINKPROP = 0x6e + RTM_GETMDB = 0x56 + RTM_GETMULTICAST = 0x3a + RTM_GETNEIGH = 0x1e + RTM_GETNEIGHTBL = 0x42 + RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a + RTM_GETNSID = 0x5a + RTM_GETQDISC = 0x26 + RTM_GETROUTE = 0x1a + RTM_GETRULE = 0x22 + RTM_GETSTATS = 0x5e + RTM_GETTCLASS = 0x2a + RTM_GETTFILTER = 0x2e + RTM_MAX = 0x6f + RTM_NEWACTION = 0x30 + RTM_NEWADDR = 0x14 + RTM_NEWADDRLABEL = 0x48 + RTM_NEWCACHEREPORT = 0x60 + RTM_NEWCHAIN = 0x64 + RTM_NEWLINK = 0x10 + RTM_NEWLINKPROP = 0x6c + RTM_NEWMDB = 0x54 + RTM_NEWNDUSEROPT = 0x44 + RTM_NEWNEIGH = 0x1c + RTM_NEWNEIGHTBL = 0x40 + RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 + RTM_NEWNSID = 0x58 + RTM_NEWPREFIX = 0x34 + RTM_NEWQDISC = 0x24 + RTM_NEWROUTE = 0x18 + RTM_NEWRULE = 0x20 + RTM_NEWSTATS = 0x5c + RTM_NEWTCLASS = 0x28 + RTM_NEWTFILTER = 0x2c + RTM_NR_FAMILIES = 0x18 + RTM_NR_MSGTYPES = 0x60 + RTM_SETDCB = 0x4f + RTM_SETLINK = 0x13 + RTM_SETNEIGHTBL = 0x43 + RTNH_ALIGNTO = 0x4 + RTNH_COMPARE_MASK = 0x19 + RTNH_F_DEAD = 0x1 + RTNH_F_LINKDOWN = 0x10 + RTNH_F_OFFLOAD = 0x8 + RTNH_F_ONLINK = 0x4 + RTNH_F_PERVASIVE = 0x2 + RTNH_F_UNRESOLVED = 0x20 + RTN_MAX = 0xb + RTPROT_BABEL = 0x2a + RTPROT_BGP = 0xba + RTPROT_BIRD = 0xc + RTPROT_BOOT = 0x3 + RTPROT_DHCP = 0x10 + RTPROT_DNROUTED = 0xd + RTPROT_EIGRP = 0xc0 + RTPROT_GATED = 0x8 + RTPROT_ISIS = 0xbb + RTPROT_KERNEL = 0x2 + RTPROT_MROUTED = 0x11 + RTPROT_MRT = 0xa + RTPROT_NTK = 0xf + RTPROT_OSPF = 0xbc + RTPROT_RA = 0x9 + RTPROT_REDIRECT = 0x1 + RTPROT_RIP = 0xbd + RTPROT_STATIC = 0x4 + RTPROT_UNSPEC = 0x0 + RTPROT_XORP = 0xe + RTPROT_ZEBRA = 0xb + RT_CLASS_DEFAULT = 0xfd + RT_CLASS_LOCAL = 0xff + RT_CLASS_MAIN = 0xfe + RT_CLASS_MAX = 0xff + RT_CLASS_UNSPEC = 0x0 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + RWF_APPEND = 0x10 + RWF_DSYNC = 0x2 + RWF_HIPRI = 0x1 + RWF_NOWAIT = 0x8 + RWF_SUPPORTED = 0x1f + RWF_SYNC = 0x4 + RWF_WRITE_LIFE_NOT_SET = 0x0 + SCM_CREDENTIALS = 0x2 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x1d + SC_LOG_FLUSH = 0x100000 + SECCOMP_MODE_DISABLED = 0x0 + SECCOMP_MODE_FILTER = 0x2 + SECCOMP_MODE_STRICT = 0x1 + SECURITYFS_MAGIC = 0x73636673 + SELINUX_MAGIC = 0xf97cff8c + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDDLCI = 0x8980 + SIOCADDMULTI = 0x8931 + SIOCADDRT = 0x890b + SIOCBONDCHANGEACTIVE = 0x8995 + SIOCBONDENSLAVE = 0x8990 + SIOCBONDINFOQUERY = 0x8994 + SIOCBONDRELEASE = 0x8991 + SIOCBONDSETHWADDR = 0x8992 + SIOCBONDSLAVEINFOQUERY = 0x8993 + SIOCBRADDBR = 0x89a0 + SIOCBRADDIF = 0x89a2 + SIOCBRDELBR = 0x89a1 + SIOCBRDELIF = 0x89a3 + SIOCDARP = 0x8953 + SIOCDELDLCI = 0x8981 + SIOCDELMULTI = 0x8932 + SIOCDELRT = 0x890c + SIOCDEVPRIVATE = 0x89f0 + SIOCDIFADDR = 0x8936 + SIOCDRARP = 0x8960 + SIOCETHTOOL = 0x8946 + SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 + SIOCGHWTSTAMP = 0x89b1 + SIOCGIFADDR = 0x8915 + SIOCGIFBR = 0x8940 + SIOCGIFBRDADDR = 0x8919 + SIOCGIFCONF = 0x8912 + SIOCGIFCOUNT = 0x8938 + SIOCGIFDSTADDR = 0x8917 + SIOCGIFENCAP = 0x8925 + SIOCGIFFLAGS = 0x8913 + SIOCGIFHWADDR = 0x8927 + SIOCGIFINDEX = 0x8933 + SIOCGIFMAP = 0x8970 + SIOCGIFMEM = 0x891f + SIOCGIFMETRIC = 0x891d + SIOCGIFMTU = 0x8921 + SIOCGIFNAME = 0x8910 + SIOCGIFNETMASK = 0x891b + SIOCGIFPFLAGS = 0x8935 + SIOCGIFSLAVE = 0x8929 + SIOCGIFTXQLEN = 0x8942 + SIOCGIFVLAN = 0x8982 + SIOCGMIIPHY = 0x8947 + SIOCGMIIREG = 0x8948 + SIOCGPPPCSTATS = 0x89f2 + SIOCGPPPSTATS = 0x89f0 + SIOCGPPPVER = 0x89f1 + SIOCGRARP = 0x8961 + SIOCGSKNS = 0x894c + SIOCGSTAMP = 0x8906 + SIOCGSTAMPNS = 0x8907 + SIOCGSTAMPNS_OLD = 0x8907 + SIOCGSTAMP_OLD = 0x8906 + SIOCOUTQNSD = 0x894b + SIOCPROTOPRIVATE = 0x89e0 + SIOCRTMSG = 0x890d + SIOCSARP = 0x8955 + SIOCSHWTSTAMP = 0x89b0 + SIOCSIFADDR = 0x8916 + SIOCSIFBR = 0x8941 + SIOCSIFBRDADDR = 0x891a + SIOCSIFDSTADDR = 0x8918 + SIOCSIFENCAP = 0x8926 + SIOCSIFFLAGS = 0x8914 + SIOCSIFHWADDR = 0x8924 + SIOCSIFHWBROADCAST = 0x8937 + SIOCSIFLINK = 0x8911 + SIOCSIFMAP = 0x8971 + SIOCSIFMEM = 0x8920 + SIOCSIFMETRIC = 0x891e + SIOCSIFMTU = 0x8922 + SIOCSIFNAME = 0x8923 + SIOCSIFNETMASK = 0x891c + SIOCSIFPFLAGS = 0x8934 + SIOCSIFSLAVE = 0x8930 + SIOCSIFTXQLEN = 0x8943 + SIOCSIFVLAN = 0x8983 + SIOCSMIIREG = 0x8949 + SIOCSRARP = 0x8962 + SIOCWANDEV = 0x894a + SMACK_MAGIC = 0x43415d53 + SMART_AUTOSAVE = 0xd2 + SMART_AUTO_OFFLINE = 0xdb + SMART_DISABLE = 0xd9 + SMART_ENABLE = 0xd8 + SMART_HCYL_PASS = 0xc2 + SMART_IMMEDIATE_OFFLINE = 0xd4 + SMART_LCYL_PASS = 0x4f + SMART_READ_LOG_SECTOR = 0xd5 + SMART_READ_THRESHOLDS = 0xd1 + SMART_READ_VALUES = 0xd0 + SMART_SAVE = 0xd3 + SMART_STATUS = 0xda + SMART_WRITE_LOG_SECTOR = 0xd6 + SMART_WRITE_THRESHOLDS = 0xd7 + SMB_SUPER_MAGIC = 0x517b + SOCKFS_MAGIC = 0x534f434b + SOCK_DCCP = 0x6 + SOCK_IOC_TYPE = 0x89 + SOCK_PACKET = 0xa + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOL_AAL = 0x109 + SOL_ALG = 0x117 + SOL_ATM = 0x108 + SOL_CAIF = 0x116 + SOL_CAN_BASE = 0x64 + SOL_DCCP = 0x10d + SOL_DECNET = 0x105 + SOL_ICMPV6 = 0x3a + SOL_IP = 0x0 + SOL_IPV6 = 0x29 + SOL_IRDA = 0x10a + SOL_IUCV = 0x115 + SOL_KCM = 0x119 + SOL_LLC = 0x10c + SOL_NETBEUI = 0x10b + SOL_NETLINK = 0x10e + SOL_NFC = 0x118 + SOL_PACKET = 0x107 + SOL_PNPIPE = 0x113 + SOL_PPPOL2TP = 0x111 + SOL_RAW = 0xff + SOL_RDS = 0x114 + SOL_RXRPC = 0x110 + SOL_TCP = 0x6 + SOL_TIPC = 0x10f + SOL_TLS = 0x11a + SOL_X25 = 0x106 + SOL_XDP = 0x11b + SOMAXCONN = 0x1000 + SO_ATTACH_FILTER = 0x1a + SO_DEBUG = 0x1 + SO_DETACH_BPF = 0x1b + SO_DETACH_FILTER = 0x1b + SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 + SO_EE_CODE_TXTIME_MISSED = 0x2 + SO_EE_CODE_ZEROCOPY_COPIED = 0x1 + SO_EE_ORIGIN_ICMP = 0x2 + SO_EE_ORIGIN_ICMP6 = 0x3 + SO_EE_ORIGIN_LOCAL = 0x1 + SO_EE_ORIGIN_NONE = 0x0 + SO_EE_ORIGIN_TIMESTAMPING = 0x4 + SO_EE_ORIGIN_TXSTATUS = 0x4 + SO_EE_ORIGIN_TXTIME = 0x6 + SO_EE_ORIGIN_ZEROCOPY = 0x5 + SO_GET_FILTER = 0x1a + SO_NO_CHECK = 0xb + SO_PEERNAME = 0x1c + SO_PRIORITY = 0xc + SO_TIMESTAMP = 0x1d + SO_TIMESTAMP_OLD = 0x1d + SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 + SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 + SO_VM_SOCKETS_BUFFER_SIZE = 0x0 + SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 + SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 + SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 + SO_VM_SOCKETS_TRUSTED = 0x5 + SPLICE_F_GIFT = 0x8 + SPLICE_F_MORE = 0x4 + SPLICE_F_MOVE = 0x1 + SPLICE_F_NONBLOCK = 0x2 + SQUASHFS_MAGIC = 0x73717368 + STACK_END_MAGIC = 0x57ac6e9d + STATX_ALL = 0xfff + STATX_ATIME = 0x20 + STATX_ATTR_APPEND = 0x20 + STATX_ATTR_AUTOMOUNT = 0x1000 + STATX_ATTR_COMPRESSED = 0x4 + STATX_ATTR_ENCRYPTED = 0x800 + STATX_ATTR_IMMUTABLE = 0x10 + STATX_ATTR_NODUMP = 0x40 + STATX_ATTR_VERITY = 0x100000 + STATX_BASIC_STATS = 0x7ff + STATX_BLOCKS = 0x400 + STATX_BTIME = 0x800 + STATX_CTIME = 0x80 + STATX_GID = 0x10 + STATX_INO = 0x100 + STATX_MODE = 0x2 + STATX_MTIME = 0x40 + STATX_NLINK = 0x4 + STATX_SIZE = 0x200 + STATX_TYPE = 0x1 + STATX_UID = 0x8 + STATX__RESERVED = 0x80000000 + SYNC_FILE_RANGE_WAIT_AFTER = 0x4 + SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 + SYNC_FILE_RANGE_WRITE = 0x2 + SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7 + SYSFS_MAGIC = 0x62656572 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TASKSTATS_CMD_ATTR_MAX = 0x4 + TASKSTATS_CMD_MAX = 0x2 + TASKSTATS_GENL_NAME = "TASKSTATS" + TASKSTATS_GENL_VERSION = 0x1 + TASKSTATS_TYPE_MAX = 0x6 + TASKSTATS_VERSION = 0x9 + TCIFLUSH = 0x0 + TCIOFF = 0x2 + TCIOFLUSH = 0x2 + TCION = 0x3 + TCOFLUSH = 0x1 + TCOOFF = 0x0 + TCOON = 0x1 + TCP_BPF_IW = 0x3e9 + TCP_BPF_SNDCWND_CLAMP = 0x3ea + TCP_CC_INFO = 0x1a + TCP_CM_INQ = 0x24 + TCP_CONGESTION = 0xd + TCP_COOKIE_IN_ALWAYS = 0x1 + TCP_COOKIE_MAX = 0x10 + TCP_COOKIE_MIN = 0x8 + TCP_COOKIE_OUT_NEVER = 0x2 + TCP_COOKIE_PAIR_SIZE = 0x20 + TCP_COOKIE_TRANSACTIONS = 0xf + TCP_CORK = 0x3 + TCP_DEFER_ACCEPT = 0x9 + TCP_FASTOPEN = 0x17 + TCP_FASTOPEN_CONNECT = 0x1e + TCP_FASTOPEN_KEY = 0x21 + TCP_FASTOPEN_NO_COOKIE = 0x22 + TCP_INFO = 0xb + TCP_INQ = 0x24 + TCP_KEEPCNT = 0x6 + TCP_KEEPIDLE = 0x4 + TCP_KEEPINTVL = 0x5 + TCP_LINGER2 = 0x8 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0xe + TCP_MD5SIG_EXT = 0x20 + TCP_MD5SIG_FLAG_PREFIX = 0x1 + TCP_MD5SIG_MAXKEYLEN = 0x50 + TCP_MSS = 0x200 + TCP_MSS_DEFAULT = 0x218 + TCP_MSS_DESIRED = 0x4c4 + TCP_NODELAY = 0x1 + TCP_NOTSENT_LOWAT = 0x19 + TCP_QUEUE_SEQ = 0x15 + TCP_QUICKACK = 0xc + TCP_REPAIR = 0x13 + TCP_REPAIR_OFF = 0x0 + TCP_REPAIR_OFF_NO_WP = -0x1 + TCP_REPAIR_ON = 0x1 + TCP_REPAIR_OPTIONS = 0x16 + TCP_REPAIR_QUEUE = 0x14 + TCP_REPAIR_WINDOW = 0x1d + TCP_SAVED_SYN = 0x1c + TCP_SAVE_SYN = 0x1b + TCP_SYNCNT = 0x7 + TCP_S_DATA_IN = 0x4 + TCP_S_DATA_OUT = 0x8 + TCP_THIN_DUPACK = 0x11 + TCP_THIN_LINEAR_TIMEOUTS = 0x10 + TCP_TIMESTAMP = 0x18 + TCP_TX_DELAY = 0x25 + TCP_ULP = 0x1f + TCP_USER_TIMEOUT = 0x12 + TCP_WINDOW_CLAMP = 0xa + TCP_ZEROCOPY_RECEIVE = 0x23 + TIMER_ABSTIME = 0x1 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RTS = 0x4 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + TIPC_AEAD_ALG_NAME = 0x20 + TIPC_AEAD_KEYLEN_MAX = 0x24 + TIPC_AEAD_KEYLEN_MIN = 0x14 + TIPC_AEAD_KEY_SIZE_MAX = 0x48 + TIPC_CFG_SRV = 0x0 + TIPC_CLUSTER_BITS = 0xc + TIPC_CLUSTER_MASK = 0xfff000 + TIPC_CLUSTER_OFFSET = 0xc + TIPC_CLUSTER_SIZE = 0xfff + TIPC_CONN_SHUTDOWN = 0x5 + TIPC_CONN_TIMEOUT = 0x82 + TIPC_CRITICAL_IMPORTANCE = 0x3 + TIPC_DESTNAME = 0x3 + TIPC_DEST_DROPPABLE = 0x81 + TIPC_ERRINFO = 0x1 + TIPC_ERR_NO_NAME = 0x1 + TIPC_ERR_NO_NODE = 0x3 + TIPC_ERR_NO_PORT = 0x2 + TIPC_ERR_OVERLOAD = 0x4 + TIPC_GROUP_JOIN = 0x87 + TIPC_GROUP_LEAVE = 0x88 + TIPC_GROUP_LOOPBACK = 0x1 + TIPC_GROUP_MEMBER_EVTS = 0x2 + TIPC_HIGH_IMPORTANCE = 0x2 + TIPC_IMPORTANCE = 0x7f + TIPC_LINK_STATE = 0x2 + TIPC_LOW_IMPORTANCE = 0x0 + TIPC_MAX_BEARER_NAME = 0x20 + TIPC_MAX_IF_NAME = 0x10 + TIPC_MAX_LINK_NAME = 0x44 + TIPC_MAX_MEDIA_NAME = 0x10 + TIPC_MAX_USER_MSG_SIZE = 0x101d0 + TIPC_MCAST_BROADCAST = 0x85 + TIPC_MCAST_REPLICAST = 0x86 + TIPC_MEDIUM_IMPORTANCE = 0x1 + TIPC_NODEID_LEN = 0x10 + TIPC_NODELAY = 0x8a + TIPC_NODE_BITS = 0xc + TIPC_NODE_MASK = 0xfff + TIPC_NODE_OFFSET = 0x0 + TIPC_NODE_RECVQ_DEPTH = 0x83 + TIPC_NODE_SIZE = 0xfff + TIPC_NODE_STATE = 0x0 + TIPC_OK = 0x0 + TIPC_PUBLISHED = 0x1 + TIPC_RESERVED_TYPES = 0x40 + TIPC_RETDATA = 0x2 + TIPC_SERVICE_ADDR = 0x2 + TIPC_SERVICE_RANGE = 0x1 + TIPC_SOCKET_ADDR = 0x3 + TIPC_SOCK_RECVQ_DEPTH = 0x84 + TIPC_SOCK_RECVQ_USED = 0x89 + TIPC_SRC_DROPPABLE = 0x80 + TIPC_SUBSCR_TIMEOUT = 0x3 + TIPC_SUB_CANCEL = 0x4 + TIPC_SUB_PORTS = 0x1 + TIPC_SUB_SERVICE = 0x2 + TIPC_TOP_SRV = 0x1 + TIPC_WAIT_FOREVER = 0xffffffff + TIPC_WITHDRAWN = 0x2 + TIPC_ZONE_BITS = 0x8 + TIPC_ZONE_CLUSTER_MASK = 0xfffff000 + TIPC_ZONE_MASK = 0xff000000 + TIPC_ZONE_OFFSET = 0x18 + TIPC_ZONE_SCOPE = 0x1 + TIPC_ZONE_SIZE = 0xff + TMPFS_MAGIC = 0x1021994 + TPACKET_ALIGNMENT = 0x10 + TPACKET_HDRLEN = 0x34 + TP_STATUS_AVAILABLE = 0x0 + TP_STATUS_BLK_TMO = 0x20 + TP_STATUS_COPY = 0x2 + TP_STATUS_CSUMNOTREADY = 0x8 + TP_STATUS_CSUM_VALID = 0x80 + TP_STATUS_KERNEL = 0x0 + TP_STATUS_LOSING = 0x4 + TP_STATUS_SENDING = 0x2 + TP_STATUS_SEND_REQUEST = 0x1 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 + TP_STATUS_TS_SOFTWARE = 0x20000000 + TP_STATUS_TS_SYS_HARDWARE = 0x40000000 + TP_STATUS_USER = 0x1 + TP_STATUS_VLAN_TPID_VALID = 0x40 + TP_STATUS_VLAN_VALID = 0x10 + TP_STATUS_WRONG_FORMAT = 0x4 + TRACEFS_MAGIC = 0x74726163 + TS_COMM_LEN = 0x20 + UDF_SUPER_MAGIC = 0x15013346 + UMOUNT_NOFOLLOW = 0x8 + USBDEVICE_SUPER_MAGIC = 0x9fa2 + UTIME_NOW = 0x3fffffff + UTIME_OMIT = 0x3ffffffe + V9FS_MAGIC = 0x1021997 + VERASE = 0x2 + VINTR = 0x0 + VKILL = 0x3 + VLNEXT = 0xf + VMADDR_CID_ANY = 0xffffffff + VMADDR_CID_HOST = 0x2 + VMADDR_CID_HYPERVISOR = 0x0 + VMADDR_CID_RESERVED = 0x1 + VMADDR_PORT_ANY = 0xffffffff + VM_SOCKETS_INVALID_VERSION = 0xffffffff + VQUIT = 0x1 + VT0 = 0x0 + WALL = 0x40000000 + WCLONE = 0x80000000 + WCONTINUED = 0x8 + WDIOC_SETPRETIMEOUT = 0xc0045708 + WDIOC_SETTIMEOUT = 0xc0045706 + WEXITED = 0x4 + WIN_ACKMEDIACHANGE = 0xdb + WIN_CHECKPOWERMODE1 = 0xe5 + WIN_CHECKPOWERMODE2 = 0x98 + WIN_DEVICE_RESET = 0x8 + WIN_DIAGNOSE = 0x90 + WIN_DOORLOCK = 0xde + WIN_DOORUNLOCK = 0xdf + WIN_DOWNLOAD_MICROCODE = 0x92 + WIN_FLUSH_CACHE = 0xe7 + WIN_FLUSH_CACHE_EXT = 0xea + WIN_FORMAT = 0x50 + WIN_GETMEDIASTATUS = 0xda + WIN_IDENTIFY = 0xec + WIN_IDENTIFY_DMA = 0xee + WIN_IDLEIMMEDIATE = 0xe1 + WIN_INIT = 0x60 + WIN_MEDIAEJECT = 0xed + WIN_MULTREAD = 0xc4 + WIN_MULTREAD_EXT = 0x29 + WIN_MULTWRITE = 0xc5 + WIN_MULTWRITE_EXT = 0x39 + WIN_NOP = 0x0 + WIN_PACKETCMD = 0xa0 + WIN_PIDENTIFY = 0xa1 + WIN_POSTBOOT = 0xdc + WIN_PREBOOT = 0xdd + WIN_QUEUED_SERVICE = 0xa2 + WIN_READ = 0x20 + WIN_READDMA = 0xc8 + WIN_READDMA_EXT = 0x25 + WIN_READDMA_ONCE = 0xc9 + WIN_READDMA_QUEUED = 0xc7 + WIN_READDMA_QUEUED_EXT = 0x26 + WIN_READ_BUFFER = 0xe4 + WIN_READ_EXT = 0x24 + WIN_READ_LONG = 0x22 + WIN_READ_LONG_ONCE = 0x23 + WIN_READ_NATIVE_MAX = 0xf8 + WIN_READ_NATIVE_MAX_EXT = 0x27 + WIN_READ_ONCE = 0x21 + WIN_RECAL = 0x10 + WIN_RESTORE = 0x10 + WIN_SECURITY_DISABLE = 0xf6 + WIN_SECURITY_ERASE_PREPARE = 0xf3 + WIN_SECURITY_ERASE_UNIT = 0xf4 + WIN_SECURITY_FREEZE_LOCK = 0xf5 + WIN_SECURITY_SET_PASS = 0xf1 + WIN_SECURITY_UNLOCK = 0xf2 + WIN_SEEK = 0x70 + WIN_SETFEATURES = 0xef + WIN_SETIDLE1 = 0xe3 + WIN_SETIDLE2 = 0x97 + WIN_SETMULT = 0xc6 + WIN_SET_MAX = 0xf9 + WIN_SET_MAX_EXT = 0x37 + WIN_SLEEPNOW1 = 0xe6 + WIN_SLEEPNOW2 = 0x99 + WIN_SMART = 0xb0 + WIN_SPECIFY = 0x91 + WIN_SRST = 0x8 + WIN_STANDBY = 0xe2 + WIN_STANDBY2 = 0x96 + WIN_STANDBYNOW1 = 0xe0 + WIN_STANDBYNOW2 = 0x94 + WIN_VERIFY = 0x40 + WIN_VERIFY_EXT = 0x42 + WIN_VERIFY_ONCE = 0x41 + WIN_WRITE = 0x30 + WIN_WRITEDMA = 0xca + WIN_WRITEDMA_EXT = 0x35 + WIN_WRITEDMA_ONCE = 0xcb + WIN_WRITEDMA_QUEUED = 0xcc + WIN_WRITEDMA_QUEUED_EXT = 0x36 + WIN_WRITE_BUFFER = 0xe8 + WIN_WRITE_EXT = 0x34 + WIN_WRITE_LONG = 0x32 + WIN_WRITE_LONG_ONCE = 0x33 + WIN_WRITE_ONCE = 0x31 + WIN_WRITE_SAME = 0xe9 + WIN_WRITE_VERIFY = 0x3c + WNOHANG = 0x1 + WNOTHREAD = 0x20000000 + WNOWAIT = 0x1000000 + WSTOPPED = 0x2 + WUNTRACED = 0x2 + XATTR_CREATE = 0x1 + XATTR_REPLACE = 0x2 + XDP_COPY = 0x2 + XDP_FLAGS_DRV_MODE = 0x4 + XDP_FLAGS_HW_MODE = 0x8 + XDP_FLAGS_MASK = 0xf + XDP_FLAGS_MODES = 0xe + XDP_FLAGS_SKB_MODE = 0x2 + XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 + XDP_MMAP_OFFSETS = 0x1 + XDP_OPTIONS = 0x8 + XDP_OPTIONS_ZEROCOPY = 0x1 + XDP_PACKET_HEADROOM = 0x100 + XDP_PGOFF_RX_RING = 0x0 + XDP_PGOFF_TX_RING = 0x80000000 + XDP_RING_NEED_WAKEUP = 0x1 + XDP_RX_RING = 0x2 + XDP_SHARED_UMEM = 0x1 + XDP_STATISTICS = 0x7 + XDP_TX_RING = 0x3 + XDP_UMEM_COMPLETION_RING = 0x6 + XDP_UMEM_FILL_RING = 0x5 + XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 + XDP_UMEM_PGOFF_FILL_RING = 0x100000000 + XDP_UMEM_REG = 0x4 + XDP_UMEM_UNALIGNED_CHUNK_FLAG = 0x1 + XDP_USE_NEED_WAKEUP = 0x8 + XDP_ZEROCOPY = 0x4 + XENFS_SUPER_MAGIC = 0xabba1974 + XFS_SUPER_MAGIC = 0x58465342 + Z3FOLD_MAGIC = 0x33 + ZSMALLOC_MAGIC = 0x58295829 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EAGAIN = syscall.Errno(0xb) + EBADF = syscall.Errno(0x9) + EBUSY = syscall.Errno(0x10) + ECHILD = syscall.Errno(0xa) + EDOM = syscall.Errno(0x21) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISDIR = syscall.Errno(0x15) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + ENFILE = syscall.Errno(0x17) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOMEM = syscall.Errno(0xc) + ENOSPC = syscall.Errno(0x1c) + ENOTBLK = syscall.Errno(0xf) + ENOTDIR = syscall.Errno(0x14) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EPERM = syscall.Errno(0x1) + EPIPE = syscall.Errno(0x20) + ERANGE = syscall.Errno(0x22) + EROFS = syscall.Errno(0x1e) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ETXTBSY = syscall.Errno(0x1a) + EWOULDBLOCK = syscall.Errno(0xb) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINT = syscall.Signal(0x2) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) +) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index 1db2f00de..0876cf92f 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -11,2645 +11,485 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x80041270 - BLKBSZSET = 0x40041271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80041272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FP_XSTATE_MAGIC2 = 0x46505845 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xc - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0xd - F_SETLK64 = 0xd - F_SETLKW = 0xe - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_32BIT = 0x40 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_SYNC = 0x80000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x4000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x8000 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80042407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc004240a - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x4004743d - PPPIOCATTCHAN = 0x40047438 - PPPIOCCONNECT = 0x4004743a - PPPIOCDETACH = 0x4004743c - PPPIOCDISCONN = 0x7439 - PPPIOCGASYNCMAP = 0x80047458 - PPPIOCGCHAN = 0x80047437 - PPPIOCGDEBUG = 0x80047441 - PPPIOCGFLAGS = 0x8004745a - PPPIOCGIDLE = 0x8008743f - PPPIOCGL2TPSTATS = 0x80487436 - PPPIOCGMRU = 0x80047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x80047455 - PPPIOCGUNIT = 0x80047456 - PPPIOCGXASYNCMAP = 0x80207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x40087446 - PPPIOCSASYNCMAP = 0x40047457 - PPPIOCSCOMPRESS = 0x400c744d - PPPIOCSDEBUG = 0x40047440 - PPPIOCSFLAGS = 0x40047459 - PPPIOCSMAXCID = 0x40047451 - PPPIOCSMRRU = 0x4004743b - PPPIOCSMRU = 0x40047452 - PPPIOCSNPMODE = 0x4008744b - PPPIOCSPASS = 0x40087447 - PPPIOCSRASYNCMAP = 0x40047454 - PPPIOCSXASYNCMAP = 0x4020744f - PPPIOCXFERUNIT = 0x744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETFPXREGS = 0x12 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETFPXREGS = 0x13 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SINGLEBLOCK = 0x21 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_SYSEMU = 0x1f - PTRACE_SYSEMU_SINGLESTEP = 0x20 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x40085203 - RNDADDTOENTCNT = 0x40045201 - RNDCLEARPOOL = 0x5206 - RNDGETENTCNT = 0x80045200 - RNDGETPOOL = 0x80085202 - RNDRESEEDCRNG = 0x5207 - RNDZAPENTCNT = 0x5204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x7002 - RTC_AIE_ON = 0x7001 - RTC_ALM_READ = 0x80247008 - RTC_ALM_SET = 0x40247007 - RTC_EPOCH_READ = 0x8004700d - RTC_EPOCH_SET = 0x4004700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x8004700b - RTC_IRQP_SET = 0x4004700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x7006 - RTC_PIE_ON = 0x7005 - RTC_PLL_GET = 0x801c7011 - RTC_PLL_SET = 0x401c7012 - RTC_RD_TIME = 0x80247009 - RTC_SET_TIME = 0x4024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x7004 - RTC_UIE_ON = 0x7003 - RTC_VL_CLR = 0x7014 - RTC_VL_READ = 0x80047013 - RTC_WIE_OFF = 0x7010 - RTC_WIE_ON = 0x700f - RTC_WKALM_RD = 0x80287010 - RTC_WKALM_SET = 0x4028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x80285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x100 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x400854d5 - TUNDETACHFILTER = 0x400854d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x800854db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETCARRIER = 0x400454e2 - TUNSETDEBUG = 0x400454c9 - TUNSETFILTEREBPF = 0x800454e1 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETSTEERINGEBPF = 0x800454e0 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UBI_IOCATT = 0x40186f40 - UBI_IOCDET = 0x40046f41 - UBI_IOCEBCH = 0x40044f02 - UBI_IOCEBER = 0x40044f01 - UBI_IOCEBISMAP = 0x80044f05 - UBI_IOCEBMAP = 0x40084f03 - UBI_IOCEBUNMAP = 0x40044f04 - UBI_IOCMKVOL = 0x40986f00 - UBI_IOCRMVOL = 0x40046f01 - UBI_IOCRNVOL = 0x51106f03 - UBI_IOCRPEB = 0x40046f04 - UBI_IOCRSVOL = 0x400c6f02 - UBI_IOCSETVOLPROP = 0x40104f06 - UBI_IOCSPEB = 0x40046f05 - UBI_IOCVOLCRBLK = 0x40804f07 - UBI_IOCVOLRMBLK = 0x4f08 - UBI_IOCVOLUP = 0x40084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - X86_FXSR_MAGIC = 0x0 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80041270 + BLKBSZSET = 0x40041271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80041272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x1000 + FP_XSTATE_MAGIC2 = 0x46505845 + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0xc + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0xd + F_SETLK64 = 0xd + F_SETLKW = 0xe + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_32BIT = 0x40 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x8000 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8008743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40087446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x400c744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40087447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GETFPXREGS = 0x12 + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETFPXREGS = 0x13 + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SINGLEBLOCK = 0x21 + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8004700d + RTC_EPOCH_SET = 0x4004700e + RTC_IRQP_READ = 0x8004700b + RTC_IRQP_SET = 0x4004700c + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x801c7011 + RTC_PLL_SET = 0x401c7012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x400854d5 + TUNDETACHFILTER = 0x400854d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x800854db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x20 + X86_FXSR_MAGIC = 0x0 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2658,23 +498,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x23) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2691,8 +523,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2700,99 +530,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index 8a9d2eadf..d5be2e837 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -11,2645 +11,485 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FP_XSTATE_MAGIC2 = 0x46505845 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0x5 - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_32BIT = 0x40 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_SYNC = 0x80000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x4000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x4004743d - PPPIOCATTCHAN = 0x40047438 - PPPIOCCONNECT = 0x4004743a - PPPIOCDETACH = 0x4004743c - PPPIOCDISCONN = 0x7439 - PPPIOCGASYNCMAP = 0x80047458 - PPPIOCGCHAN = 0x80047437 - PPPIOCGDEBUG = 0x80047441 - PPPIOCGFLAGS = 0x8004745a - PPPIOCGIDLE = 0x8010743f - PPPIOCGL2TPSTATS = 0x80487436 - PPPIOCGMRU = 0x80047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x80047455 - PPPIOCGUNIT = 0x80047456 - PPPIOCGXASYNCMAP = 0x80207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x40107446 - PPPIOCSASYNCMAP = 0x40047457 - PPPIOCSCOMPRESS = 0x4010744d - PPPIOCSDEBUG = 0x40047440 - PPPIOCSFLAGS = 0x40047459 - PPPIOCSMAXCID = 0x40047451 - PPPIOCSMRRU = 0x4004743b - PPPIOCSMRU = 0x40047452 - PPPIOCSNPMODE = 0x4008744b - PPPIOCSPASS = 0x40107447 - PPPIOCSRASYNCMAP = 0x40047454 - PPPIOCSXASYNCMAP = 0x4020744f - PPPIOCXFERUNIT = 0x744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ARCH_PRCTL = 0x1e - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETFPXREGS = 0x12 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETFPXREGS = 0x13 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SINGLEBLOCK = 0x21 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_SYSEMU = 0x1f - PTRACE_SYSEMU_SINGLESTEP = 0x20 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x40085203 - RNDADDTOENTCNT = 0x40045201 - RNDCLEARPOOL = 0x5206 - RNDGETENTCNT = 0x80045200 - RNDGETPOOL = 0x80085202 - RNDRESEEDCRNG = 0x5207 - RNDZAPENTCNT = 0x5204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x7002 - RTC_AIE_ON = 0x7001 - RTC_ALM_READ = 0x80247008 - RTC_ALM_SET = 0x40247007 - RTC_EPOCH_READ = 0x8008700d - RTC_EPOCH_SET = 0x4008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x8008700b - RTC_IRQP_SET = 0x4008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x7006 - RTC_PIE_ON = 0x7005 - RTC_PLL_GET = 0x80207011 - RTC_PLL_SET = 0x40207012 - RTC_RD_TIME = 0x80247009 - RTC_SET_TIME = 0x4024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x7004 - RTC_UIE_ON = 0x7003 - RTC_VL_CLR = 0x7014 - RTC_VL_READ = 0x80047013 - RTC_WIE_OFF = 0x7010 - RTC_WIE_ON = 0x700f - RTC_WKALM_RD = 0x80287010 - RTC_WKALM_SET = 0x4028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x80285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x100 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x401054d5 - TUNDETACHFILTER = 0x401054d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x801054db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETCARRIER = 0x400454e2 - TUNSETDEBUG = 0x400454c9 - TUNSETFILTEREBPF = 0x800454e1 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETSTEERINGEBPF = 0x800454e0 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UBI_IOCATT = 0x40186f40 - UBI_IOCDET = 0x40046f41 - UBI_IOCEBCH = 0x40044f02 - UBI_IOCEBER = 0x40044f01 - UBI_IOCEBISMAP = 0x80044f05 - UBI_IOCEBMAP = 0x40084f03 - UBI_IOCEBUNMAP = 0x40044f04 - UBI_IOCMKVOL = 0x40986f00 - UBI_IOCRMVOL = 0x40046f01 - UBI_IOCRNVOL = 0x51106f03 - UBI_IOCRPEB = 0x40046f04 - UBI_IOCRSVOL = 0x400c6f02 - UBI_IOCSETVOLPROP = 0x40104f06 - UBI_IOCSPEB = 0x40046f05 - UBI_IOCVOLCRBLK = 0x40804f07 - UBI_IOCVOLRMBLK = 0x4f08 - UBI_IOCVOLUP = 0x40084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x1000 + FP_XSTATE_MAGIC2 = 0x46505845 + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_32BIT = 0x40 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_ARCH_PRCTL = 0x1e + PTRACE_GETFPREGS = 0xe + PTRACE_GETFPXREGS = 0x12 + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETFPXREGS = 0x13 + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SINGLEBLOCK = 0x21 + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2658,23 +498,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x23) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2691,8 +523,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2700,99 +530,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index 2e7455814..fbeef8325 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -11,2651 +11,491 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x80041270 - BLKBSZSET = 0x40041271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80041272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xc - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0xd - F_SETLK64 = 0xd - F_SETLKW = 0xe - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_SYNC = 0x80000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x20000 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80042407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc004240a - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x4004743d - PPPIOCATTCHAN = 0x40047438 - PPPIOCCONNECT = 0x4004743a - PPPIOCDETACH = 0x4004743c - PPPIOCDISCONN = 0x7439 - PPPIOCGASYNCMAP = 0x80047458 - PPPIOCGCHAN = 0x80047437 - PPPIOCGDEBUG = 0x80047441 - PPPIOCGFLAGS = 0x8004745a - PPPIOCGIDLE = 0x8008743f - PPPIOCGL2TPSTATS = 0x80487436 - PPPIOCGMRU = 0x80047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x80047455 - PPPIOCGUNIT = 0x80047456 - PPPIOCGXASYNCMAP = 0x80207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x40087446 - PPPIOCSASYNCMAP = 0x40047457 - PPPIOCSCOMPRESS = 0x400c744d - PPPIOCSDEBUG = 0x40047440 - PPPIOCSFLAGS = 0x40047459 - PPPIOCSMAXCID = 0x40047451 - PPPIOCSMRRU = 0x4004743b - PPPIOCSMRU = 0x40047452 - PPPIOCSNPMODE = 0x4008744b - PPPIOCSPASS = 0x40087447 - PPPIOCSRASYNCMAP = 0x40047454 - PPPIOCSXASYNCMAP = 0x4020744f - PPPIOCXFERUNIT = 0x744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETCRUNCHREGS = 0x19 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFDPIC = 0x1f - PTRACE_GETFDPIC_EXEC = 0x0 - PTRACE_GETFDPIC_INTERP = 0x1 - PTRACE_GETFPREGS = 0xe - PTRACE_GETHBPREGS = 0x1d - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GETVFPREGS = 0x1b - PTRACE_GETWMMXREGS = 0x12 - PTRACE_GET_THREAD_AREA = 0x16 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETCRUNCHREGS = 0x1a - PTRACE_SETFPREGS = 0xf - PTRACE_SETHBPREGS = 0x1e - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SETVFPREGS = 0x1c - PTRACE_SETWMMXREGS = 0x13 - PTRACE_SET_SYSCALL = 0x17 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - PT_DATA_ADDR = 0x10004 - PT_TEXT_ADDR = 0x10000 - PT_TEXT_END_ADDR = 0x10008 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x40085203 - RNDADDTOENTCNT = 0x40045201 - RNDCLEARPOOL = 0x5206 - RNDGETENTCNT = 0x80045200 - RNDGETPOOL = 0x80085202 - RNDRESEEDCRNG = 0x5207 - RNDZAPENTCNT = 0x5204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x7002 - RTC_AIE_ON = 0x7001 - RTC_ALM_READ = 0x80247008 - RTC_ALM_SET = 0x40247007 - RTC_EPOCH_READ = 0x8004700d - RTC_EPOCH_SET = 0x4004700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x8004700b - RTC_IRQP_SET = 0x4004700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x7006 - RTC_PIE_ON = 0x7005 - RTC_PLL_GET = 0x801c7011 - RTC_PLL_SET = 0x401c7012 - RTC_RD_TIME = 0x80247009 - RTC_SET_TIME = 0x4024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x7004 - RTC_UIE_ON = 0x7003 - RTC_VL_CLR = 0x7014 - RTC_VL_READ = 0x80047013 - RTC_WIE_OFF = 0x7010 - RTC_WIE_ON = 0x700f - RTC_WKALM_RD = 0x80287010 - RTC_WKALM_SET = 0x4028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x80285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x100 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x400854d5 - TUNDETACHFILTER = 0x400854d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x800854db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETCARRIER = 0x400454e2 - TUNSETDEBUG = 0x400454c9 - TUNSETFILTEREBPF = 0x800454e1 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETSTEERINGEBPF = 0x800454e0 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UBI_IOCATT = 0x40186f40 - UBI_IOCDET = 0x40046f41 - UBI_IOCEBCH = 0x40044f02 - UBI_IOCEBER = 0x40044f01 - UBI_IOCEBISMAP = 0x80044f05 - UBI_IOCEBMAP = 0x40084f03 - UBI_IOCEBUNMAP = 0x40044f04 - UBI_IOCMKVOL = 0x40986f00 - UBI_IOCRMVOL = 0x40046f01 - UBI_IOCRNVOL = 0x51106f03 - UBI_IOCRPEB = 0x40046f04 - UBI_IOCRSVOL = 0x400c6f02 - UBI_IOCSETVOLPROP = 0x40104f06 - UBI_IOCSPEB = 0x40046f05 - UBI_IOCVOLCRBLK = 0x40804f07 - UBI_IOCVOLRMBLK = 0x4f08 - UBI_IOCVOLUP = 0x40084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80041270 + BLKBSZSET = 0x40041271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80041272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x1000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0xc + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0xd + F_SETLK64 = 0xd + F_SETLKW = 0xe + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x20000 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8008743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40087446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x400c744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40087447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETCRUNCHREGS = 0x19 + PTRACE_GETFDPIC = 0x1f + PTRACE_GETFDPIC_EXEC = 0x0 + PTRACE_GETFDPIC_INTERP = 0x1 + PTRACE_GETFPREGS = 0xe + PTRACE_GETHBPREGS = 0x1d + PTRACE_GETVFPREGS = 0x1b + PTRACE_GETWMMXREGS = 0x12 + PTRACE_GET_THREAD_AREA = 0x16 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_SETCRUNCHREGS = 0x1a + PTRACE_SETFPREGS = 0xf + PTRACE_SETHBPREGS = 0x1e + PTRACE_SETVFPREGS = 0x1c + PTRACE_SETWMMXREGS = 0x13 + PTRACE_SET_SYSCALL = 0x17 + PT_DATA_ADDR = 0x10004 + PT_TEXT_ADDR = 0x10000 + PT_TEXT_END_ADDR = 0x10008 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8004700d + RTC_EPOCH_SET = 0x4004700e + RTC_IRQP_READ = 0x8004700b + RTC_IRQP_SET = 0x4004700c + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x801c7011 + RTC_PLL_SET = 0x401c7012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x400854d5 + TUNDETACHFILTER = 0x400854d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x800854db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x20 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2664,23 +504,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x23) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2697,8 +529,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2706,99 +536,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index b1dc633a2..06daa50eb 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -11,2636 +11,478 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ESR_MAGIC = 0x45535201 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - EXTRA_MAGIC = 0x45585401 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FPSIMD_MAGIC = 0x46508001 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0x5 - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_SYNC = 0x80000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x4004743d - PPPIOCATTCHAN = 0x40047438 - PPPIOCCONNECT = 0x4004743a - PPPIOCDETACH = 0x4004743c - PPPIOCDISCONN = 0x7439 - PPPIOCGASYNCMAP = 0x80047458 - PPPIOCGCHAN = 0x80047437 - PPPIOCGDEBUG = 0x80047441 - PPPIOCGFLAGS = 0x8004745a - PPPIOCGIDLE = 0x8010743f - PPPIOCGL2TPSTATS = 0x80487436 - PPPIOCGMRU = 0x80047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x80047455 - PPPIOCGUNIT = 0x80047456 - PPPIOCGXASYNCMAP = 0x80207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x40107446 - PPPIOCSASYNCMAP = 0x40047457 - PPPIOCSCOMPRESS = 0x4010744d - PPPIOCSDEBUG = 0x40047440 - PPPIOCSFLAGS = 0x40047459 - PPPIOCSMAXCID = 0x40047451 - PPPIOCSMRRU = 0x4004743b - PPPIOCSMRU = 0x40047452 - PPPIOCSNPMODE = 0x4008744b - PPPIOCSPASS = 0x40107447 - PPPIOCSRASYNCMAP = 0x40047454 - PPPIOCSXASYNCMAP = 0x4020744f - PPPIOCXFERUNIT = 0x744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x40085203 - RNDADDTOENTCNT = 0x40045201 - RNDCLEARPOOL = 0x5206 - RNDGETENTCNT = 0x80045200 - RNDGETPOOL = 0x80085202 - RNDRESEEDCRNG = 0x5207 - RNDZAPENTCNT = 0x5204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x7002 - RTC_AIE_ON = 0x7001 - RTC_ALM_READ = 0x80247008 - RTC_ALM_SET = 0x40247007 - RTC_EPOCH_READ = 0x8008700d - RTC_EPOCH_SET = 0x4008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x8008700b - RTC_IRQP_SET = 0x4008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x7006 - RTC_PIE_ON = 0x7005 - RTC_PLL_GET = 0x80207011 - RTC_PLL_SET = 0x40207012 - RTC_RD_TIME = 0x80247009 - RTC_SET_TIME = 0x4024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x7004 - RTC_UIE_ON = 0x7003 - RTC_VL_CLR = 0x7014 - RTC_VL_READ = 0x80047013 - RTC_WIE_OFF = 0x7010 - RTC_WIE_ON = 0x700f - RTC_WKALM_RD = 0x80287010 - RTC_WKALM_SET = 0x4028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SVE_MAGIC = 0x53564501 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x80285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x100 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x401054d5 - TUNDETACHFILTER = 0x401054d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x801054db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETCARRIER = 0x400454e2 - TUNSETDEBUG = 0x400454c9 - TUNSETFILTEREBPF = 0x800454e1 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETSTEERINGEBPF = 0x800454e0 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UBI_IOCATT = 0x40186f40 - UBI_IOCDET = 0x40046f41 - UBI_IOCEBCH = 0x40044f02 - UBI_IOCEBER = 0x40044f01 - UBI_IOCEBISMAP = 0x80044f05 - UBI_IOCEBMAP = 0x40084f03 - UBI_IOCEBUNMAP = 0x40044f04 - UBI_IOCMKVOL = 0x40986f00 - UBI_IOCRMVOL = 0x40046f01 - UBI_IOCRNVOL = 0x51106f03 - UBI_IOCRPEB = 0x40046f04 - UBI_IOCRSVOL = 0x400c6f02 - UBI_IOCSETVOLPROP = 0x40104f06 - UBI_IOCSPEB = 0x40046f05 - UBI_IOCVOLCRBLK = 0x40804f07 - UBI_IOCVOLRMBLK = 0x4f08 - UBI_IOCVOLUP = 0x40084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + ESR_MAGIC = 0x45535201 + EXTPROC = 0x10000 + EXTRA_MAGIC = 0x45585401 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x1000 + FPSIMD_MAGIC = 0x46508001 + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + SVE_MAGIC = 0x53564501 + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2649,23 +491,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x23) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2682,8 +516,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2691,99 +523,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index ad4d9afb6..7c866b8f5 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -11,2647 +11,487 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x40041270 - BLKBSZSET = 0x80041271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40041272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x21 - F_GETLK64 = 0x21 - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x22 - F_SETLK64 = 0x22 - F_SETLKW = 0x23 - F_SETLKW64 = 0x23 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x2000 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40042407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc004240a - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x8004743d - PPPIOCATTCHAN = 0x80047438 - PPPIOCCONNECT = 0x8004743a - PPPIOCDETACH = 0x8004743c - PPPIOCDISCONN = 0x20007439 - PPPIOCGASYNCMAP = 0x40047458 - PPPIOCGCHAN = 0x40047437 - PPPIOCGDEBUG = 0x40047441 - PPPIOCGFLAGS = 0x4004745a - PPPIOCGIDLE = 0x4008743f - PPPIOCGL2TPSTATS = 0x40487436 - PPPIOCGMRU = 0x40047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x40047455 - PPPIOCGUNIT = 0x40047456 - PPPIOCGXASYNCMAP = 0x40207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x80087446 - PPPIOCSASYNCMAP = 0x80047457 - PPPIOCSCOMPRESS = 0x800c744d - PPPIOCSDEBUG = 0x80047440 - PPPIOCSFLAGS = 0x80047459 - PPPIOCSMAXCID = 0x80047451 - PPPIOCSMRRU = 0x8004743b - PPPIOCSMRU = 0x80047452 - PPPIOCSNPMODE = 0x8008744b - PPPIOCSPASS = 0x80087447 - PPPIOCSRASYNCMAP = 0x80047454 - PPPIOCSXASYNCMAP = 0x8020744f - PPPIOCXFERUNIT = 0x2000744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x80085203 - RNDADDTOENTCNT = 0x80045201 - RNDCLEARPOOL = 0x20005206 - RNDGETENTCNT = 0x40045200 - RNDGETPOOL = 0x40085202 - RNDRESEEDCRNG = 0x20005207 - RNDZAPENTCNT = 0x20005204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x20007002 - RTC_AIE_ON = 0x20007001 - RTC_ALM_READ = 0x40247008 - RTC_ALM_SET = 0x80247007 - RTC_EPOCH_READ = 0x4004700d - RTC_EPOCH_SET = 0x8004700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x4004700b - RTC_IRQP_SET = 0x8004700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x20007006 - RTC_PIE_ON = 0x20007005 - RTC_PLL_GET = 0x401c7011 - RTC_PLL_SET = 0x801c7012 - RTC_RD_TIME = 0x40247009 - RTC_SET_TIME = 0x8024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x20007004 - RTC_UIE_ON = 0x20007003 - RTC_VL_CLR = 0x20007014 - RTC_VL_READ = 0x40047013 - RTC_WIE_OFF = 0x20007010 - RTC_WIE_ON = 0x2000700f - RTC_WKALM_RD = 0x40287010 - RTC_WKALM_SET = 0x8028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x80 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGISO7816 = 0x40285442 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x8000 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x800854d5 - TUNDETACHFILTER = 0x800854d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x400854db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETCARRIER = 0x800454e2 - TUNSETDEBUG = 0x800454c9 - TUNSETFILTEREBPF = 0x400454e1 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETSTEERINGEBPF = 0x400454e0 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UBI_IOCATT = 0x80186f40 - UBI_IOCDET = 0x80046f41 - UBI_IOCEBCH = 0x80044f02 - UBI_IOCEBER = 0x80044f01 - UBI_IOCEBISMAP = 0x40044f05 - UBI_IOCEBMAP = 0x80084f03 - UBI_IOCEBUNMAP = 0x80044f04 - UBI_IOCMKVOL = 0x80986f00 - UBI_IOCRMVOL = 0x80046f01 - UBI_IOCRNVOL = 0x91106f03 - UBI_IOCRPEB = 0x80046f04 - UBI_IOCRSVOL = 0x800c6f02 - UBI_IOCSETVOLPROP = 0x80104f06 - UBI_IOCSPEB = 0x80046f05 - UBI_IOCVOLCRBLK = 0x80804f07 - UBI_IOCVOLRMBLK = 0x20004f08 - UBI_IOCVOLUP = 0x80084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40041270 + BLKBSZSET = 0x80041271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40041272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x2000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x21 + F_GETLK64 = 0x21 + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x22 + F_SETLK64 = 0x22 + F_SETLKW = 0x23 + F_SETLKW64 = 0x23 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x2000 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4008743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80087446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x800c744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80087447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4004700d + RTC_EPOCH_SET = 0x8004700e + RTC_IRQP_READ = 0x4004700b + RTC_IRQP_SET = 0x8004700c + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x401c7011 + RTC_PLL_SET = 0x801c7012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x800854d5 + TUNDETACHFILTER = 0x800854d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x400854db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x20 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x7d) EADDRNOTAVAIL = syscall.Errno(0x7e) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x95) EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x51) EBADMSG = syscall.Errno(0x4d) EBADR = syscall.Errno(0x33) EBADRQC = syscall.Errno(0x36) EBADSLT = syscall.Errno(0x37) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x25) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x82) @@ -2660,12 +500,8 @@ const ( EDEADLK = syscall.Errno(0x2d) EDEADLOCK = syscall.Errno(0x38) EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x93) EHOSTUNREACH = syscall.Errno(0x94) EHWPOISON = syscall.Errno(0xa8) @@ -2673,11 +509,7 @@ const ( EILSEQ = syscall.Errno(0x58) EINIT = syscall.Errno(0x8d) EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x8b) EKEYEXPIRED = syscall.Errno(0xa2) EKEYREJECTED = syscall.Errno(0xa4) @@ -2694,8 +526,6 @@ const ( ELNRNG = syscall.Errno(0x29) ELOOP = syscall.Errno(0x5a) EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x61) EMULTIHOP = syscall.Errno(0x4a) ENAMETOOLONG = syscall.Errno(0x4e) @@ -2703,100 +533,68 @@ const ( ENETDOWN = syscall.Errno(0x7f) ENETRESET = syscall.Errno(0x81) ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x35) ENOBUFS = syscall.Errno(0x84) ENOCSI = syscall.Errno(0x2b) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0xa1) ENOLCK = syscall.Errno(0x2e) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x23) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x5d) ENOTNAM = syscall.Errno(0x89) ENOTRECOVERABLE = syscall.Errno(0xa6) ENOTSOCK = syscall.Errno(0x5f) ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x7a) EOVERFLOW = syscall.Errno(0x4f) EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x78) EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x52) EREMDEV = syscall.Errno(0x8e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x8c) ERESTART = syscall.Errno(0x5b) ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x8f) ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x97) ESTRPIPE = syscall.Errno(0x5c) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x91) ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x87) EUNATCH = syscall.Errno(0x2a) EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x34) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0xa) SIGCHLD = syscall.Signal(0x12) SIGCLD = syscall.Signal(0x12) SIGCONT = syscall.Signal(0x19) SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x16) SIGPROF = syscall.Signal(0x1d) SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTOP = syscall.Signal(0x17) SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x18) SIGTTIN = syscall.Signal(0x1a) SIGTTOU = syscall.Signal(0x1b) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index fe2965028..c42966d19 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -11,2647 +11,487 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xe - F_GETLK64 = 0xe - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x0 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x8004743d - PPPIOCATTCHAN = 0x80047438 - PPPIOCCONNECT = 0x8004743a - PPPIOCDETACH = 0x8004743c - PPPIOCDISCONN = 0x20007439 - PPPIOCGASYNCMAP = 0x40047458 - PPPIOCGCHAN = 0x40047437 - PPPIOCGDEBUG = 0x40047441 - PPPIOCGFLAGS = 0x4004745a - PPPIOCGIDLE = 0x4010743f - PPPIOCGL2TPSTATS = 0x40487436 - PPPIOCGMRU = 0x40047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x40047455 - PPPIOCGUNIT = 0x40047456 - PPPIOCGXASYNCMAP = 0x40207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x80107446 - PPPIOCSASYNCMAP = 0x80047457 - PPPIOCSCOMPRESS = 0x8010744d - PPPIOCSDEBUG = 0x80047440 - PPPIOCSFLAGS = 0x80047459 - PPPIOCSMAXCID = 0x80047451 - PPPIOCSMRRU = 0x8004743b - PPPIOCSMRU = 0x80047452 - PPPIOCSNPMODE = 0x8008744b - PPPIOCSPASS = 0x80107447 - PPPIOCSRASYNCMAP = 0x80047454 - PPPIOCSXASYNCMAP = 0x8020744f - PPPIOCXFERUNIT = 0x2000744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x80085203 - RNDADDTOENTCNT = 0x80045201 - RNDCLEARPOOL = 0x20005206 - RNDGETENTCNT = 0x40045200 - RNDGETPOOL = 0x40085202 - RNDRESEEDCRNG = 0x20005207 - RNDZAPENTCNT = 0x20005204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x20007002 - RTC_AIE_ON = 0x20007001 - RTC_ALM_READ = 0x40247008 - RTC_ALM_SET = 0x80247007 - RTC_EPOCH_READ = 0x4008700d - RTC_EPOCH_SET = 0x8008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x4008700b - RTC_IRQP_SET = 0x8008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x20007006 - RTC_PIE_ON = 0x20007005 - RTC_PLL_GET = 0x40207011 - RTC_PLL_SET = 0x80207012 - RTC_RD_TIME = 0x40247009 - RTC_SET_TIME = 0x8024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x20007004 - RTC_UIE_ON = 0x20007003 - RTC_VL_CLR = 0x20007014 - RTC_VL_READ = 0x40047013 - RTC_WIE_OFF = 0x20007010 - RTC_WIE_ON = 0x2000700f - RTC_WKALM_RD = 0x40287010 - RTC_WKALM_SET = 0x8028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x80 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGISO7816 = 0x40285442 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x8000 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETCARRIER = 0x800454e2 - TUNSETDEBUG = 0x800454c9 - TUNSETFILTEREBPF = 0x400454e1 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETSTEERINGEBPF = 0x400454e0 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UBI_IOCATT = 0x80186f40 - UBI_IOCDET = 0x80046f41 - UBI_IOCEBCH = 0x80044f02 - UBI_IOCEBER = 0x80044f01 - UBI_IOCEBISMAP = 0x40044f05 - UBI_IOCEBMAP = 0x80084f03 - UBI_IOCEBUNMAP = 0x80044f04 - UBI_IOCMKVOL = 0x80986f00 - UBI_IOCRMVOL = 0x80046f01 - UBI_IOCRNVOL = 0x91106f03 - UBI_IOCRPEB = 0x80046f04 - UBI_IOCRSVOL = 0x800c6f02 - UBI_IOCSETVOLPROP = 0x80104f06 - UBI_IOCSPEB = 0x80046f05 - UBI_IOCVOLCRBLK = 0x80804f07 - UBI_IOCVOLRMBLK = 0x20004f08 - UBI_IOCVOLUP = 0x80084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x2000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0xe + F_GETLK64 = 0xe + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x0 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x7d) EADDRNOTAVAIL = syscall.Errno(0x7e) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x95) EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x51) EBADMSG = syscall.Errno(0x4d) EBADR = syscall.Errno(0x33) EBADRQC = syscall.Errno(0x36) EBADSLT = syscall.Errno(0x37) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x25) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x82) @@ -2660,12 +500,8 @@ const ( EDEADLK = syscall.Errno(0x2d) EDEADLOCK = syscall.Errno(0x38) EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x93) EHOSTUNREACH = syscall.Errno(0x94) EHWPOISON = syscall.Errno(0xa8) @@ -2673,11 +509,7 @@ const ( EILSEQ = syscall.Errno(0x58) EINIT = syscall.Errno(0x8d) EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x8b) EKEYEXPIRED = syscall.Errno(0xa2) EKEYREJECTED = syscall.Errno(0xa4) @@ -2694,8 +526,6 @@ const ( ELNRNG = syscall.Errno(0x29) ELOOP = syscall.Errno(0x5a) EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x61) EMULTIHOP = syscall.Errno(0x4a) ENAMETOOLONG = syscall.Errno(0x4e) @@ -2703,100 +533,68 @@ const ( ENETDOWN = syscall.Errno(0x7f) ENETRESET = syscall.Errno(0x81) ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x35) ENOBUFS = syscall.Errno(0x84) ENOCSI = syscall.Errno(0x2b) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0xa1) ENOLCK = syscall.Errno(0x2e) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x23) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x5d) ENOTNAM = syscall.Errno(0x89) ENOTRECOVERABLE = syscall.Errno(0xa6) ENOTSOCK = syscall.Errno(0x5f) ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x7a) EOVERFLOW = syscall.Errno(0x4f) EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x78) EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x52) EREMDEV = syscall.Errno(0x8e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x8c) ERESTART = syscall.Errno(0x5b) ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x8f) ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x97) ESTRPIPE = syscall.Errno(0x5c) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x91) ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x87) EUNATCH = syscall.Errno(0x2a) EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x34) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0xa) SIGCHLD = syscall.Signal(0x12) SIGCLD = syscall.Signal(0x12) SIGCONT = syscall.Signal(0x19) SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x16) SIGPROF = syscall.Signal(0x1d) SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTOP = syscall.Signal(0x17) SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x18) SIGTTIN = syscall.Signal(0x1a) SIGTTOU = syscall.Signal(0x1b) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index 608878303..a5b2b4273 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -11,2647 +11,487 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xe - F_GETLK64 = 0xe - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x0 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x8004743d - PPPIOCATTCHAN = 0x80047438 - PPPIOCCONNECT = 0x8004743a - PPPIOCDETACH = 0x8004743c - PPPIOCDISCONN = 0x20007439 - PPPIOCGASYNCMAP = 0x40047458 - PPPIOCGCHAN = 0x40047437 - PPPIOCGDEBUG = 0x40047441 - PPPIOCGFLAGS = 0x4004745a - PPPIOCGIDLE = 0x4010743f - PPPIOCGL2TPSTATS = 0x40487436 - PPPIOCGMRU = 0x40047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x40047455 - PPPIOCGUNIT = 0x40047456 - PPPIOCGXASYNCMAP = 0x40207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x80107446 - PPPIOCSASYNCMAP = 0x80047457 - PPPIOCSCOMPRESS = 0x8010744d - PPPIOCSDEBUG = 0x80047440 - PPPIOCSFLAGS = 0x80047459 - PPPIOCSMAXCID = 0x80047451 - PPPIOCSMRRU = 0x8004743b - PPPIOCSMRU = 0x80047452 - PPPIOCSNPMODE = 0x8008744b - PPPIOCSPASS = 0x80107447 - PPPIOCSRASYNCMAP = 0x80047454 - PPPIOCSXASYNCMAP = 0x8020744f - PPPIOCXFERUNIT = 0x2000744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x80085203 - RNDADDTOENTCNT = 0x80045201 - RNDCLEARPOOL = 0x20005206 - RNDGETENTCNT = 0x40045200 - RNDGETPOOL = 0x40085202 - RNDRESEEDCRNG = 0x20005207 - RNDZAPENTCNT = 0x20005204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x20007002 - RTC_AIE_ON = 0x20007001 - RTC_ALM_READ = 0x40247008 - RTC_ALM_SET = 0x80247007 - RTC_EPOCH_READ = 0x4008700d - RTC_EPOCH_SET = 0x8008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x4008700b - RTC_IRQP_SET = 0x8008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x20007006 - RTC_PIE_ON = 0x20007005 - RTC_PLL_GET = 0x40207011 - RTC_PLL_SET = 0x80207012 - RTC_RD_TIME = 0x40247009 - RTC_SET_TIME = 0x8024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x20007004 - RTC_UIE_ON = 0x20007003 - RTC_VL_CLR = 0x20007014 - RTC_VL_READ = 0x40047013 - RTC_WIE_OFF = 0x20007010 - RTC_WIE_ON = 0x2000700f - RTC_WKALM_RD = 0x40287010 - RTC_WKALM_SET = 0x8028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x80 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGISO7816 = 0x40285442 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x8000 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETCARRIER = 0x800454e2 - TUNSETDEBUG = 0x800454c9 - TUNSETFILTEREBPF = 0x400454e1 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETSTEERINGEBPF = 0x400454e0 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UBI_IOCATT = 0x80186f40 - UBI_IOCDET = 0x80046f41 - UBI_IOCEBCH = 0x80044f02 - UBI_IOCEBER = 0x80044f01 - UBI_IOCEBISMAP = 0x40044f05 - UBI_IOCEBMAP = 0x80084f03 - UBI_IOCEBUNMAP = 0x80044f04 - UBI_IOCMKVOL = 0x80986f00 - UBI_IOCRMVOL = 0x80046f01 - UBI_IOCRNVOL = 0x91106f03 - UBI_IOCRPEB = 0x80046f04 - UBI_IOCRSVOL = 0x800c6f02 - UBI_IOCSETVOLPROP = 0x80104f06 - UBI_IOCSPEB = 0x80046f05 - UBI_IOCVOLCRBLK = 0x80804f07 - UBI_IOCVOLRMBLK = 0x20004f08 - UBI_IOCVOLUP = 0x80084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x2000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0xe + F_GETLK64 = 0xe + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x0 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x7d) EADDRNOTAVAIL = syscall.Errno(0x7e) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x95) EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x51) EBADMSG = syscall.Errno(0x4d) EBADR = syscall.Errno(0x33) EBADRQC = syscall.Errno(0x36) EBADSLT = syscall.Errno(0x37) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x25) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x82) @@ -2660,12 +500,8 @@ const ( EDEADLK = syscall.Errno(0x2d) EDEADLOCK = syscall.Errno(0x38) EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x93) EHOSTUNREACH = syscall.Errno(0x94) EHWPOISON = syscall.Errno(0xa8) @@ -2673,11 +509,7 @@ const ( EILSEQ = syscall.Errno(0x58) EINIT = syscall.Errno(0x8d) EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x8b) EKEYEXPIRED = syscall.Errno(0xa2) EKEYREJECTED = syscall.Errno(0xa4) @@ -2694,8 +526,6 @@ const ( ELNRNG = syscall.Errno(0x29) ELOOP = syscall.Errno(0x5a) EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x61) EMULTIHOP = syscall.Errno(0x4a) ENAMETOOLONG = syscall.Errno(0x4e) @@ -2703,100 +533,68 @@ const ( ENETDOWN = syscall.Errno(0x7f) ENETRESET = syscall.Errno(0x81) ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x35) ENOBUFS = syscall.Errno(0x84) ENOCSI = syscall.Errno(0x2b) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0xa1) ENOLCK = syscall.Errno(0x2e) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x23) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x5d) ENOTNAM = syscall.Errno(0x89) ENOTRECOVERABLE = syscall.Errno(0xa6) ENOTSOCK = syscall.Errno(0x5f) ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x7a) EOVERFLOW = syscall.Errno(0x4f) EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x78) EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x52) EREMDEV = syscall.Errno(0x8e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x8c) ERESTART = syscall.Errno(0x5b) ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x8f) ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x97) ESTRPIPE = syscall.Errno(0x5c) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x91) ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x87) EUNATCH = syscall.Errno(0x2a) EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x34) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0xa) SIGCHLD = syscall.Signal(0x12) SIGCLD = syscall.Signal(0x12) SIGCONT = syscall.Signal(0x19) SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x16) SIGPROF = syscall.Signal(0x1d) SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTOP = syscall.Signal(0x17) SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x18) SIGTTIN = syscall.Signal(0x1a) SIGTTOU = syscall.Signal(0x1b) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index 4cf9ddfad..7f91881b8 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -11,2647 +11,487 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x40041270 - BLKBSZSET = 0x80041271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40041272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x21 - F_GETLK64 = 0x21 - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x22 - F_SETLK64 = 0x22 - F_SETLKW = 0x23 - F_SETLKW64 = 0x23 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x2000 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40042407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc004240a - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x8004743d - PPPIOCATTCHAN = 0x80047438 - PPPIOCCONNECT = 0x8004743a - PPPIOCDETACH = 0x8004743c - PPPIOCDISCONN = 0x20007439 - PPPIOCGASYNCMAP = 0x40047458 - PPPIOCGCHAN = 0x40047437 - PPPIOCGDEBUG = 0x40047441 - PPPIOCGFLAGS = 0x4004745a - PPPIOCGIDLE = 0x4008743f - PPPIOCGL2TPSTATS = 0x40487436 - PPPIOCGMRU = 0x40047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x40047455 - PPPIOCGUNIT = 0x40047456 - PPPIOCGXASYNCMAP = 0x40207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x80087446 - PPPIOCSASYNCMAP = 0x80047457 - PPPIOCSCOMPRESS = 0x800c744d - PPPIOCSDEBUG = 0x80047440 - PPPIOCSFLAGS = 0x80047459 - PPPIOCSMAXCID = 0x80047451 - PPPIOCSMRRU = 0x8004743b - PPPIOCSMRU = 0x80047452 - PPPIOCSNPMODE = 0x8008744b - PPPIOCSPASS = 0x80087447 - PPPIOCSRASYNCMAP = 0x80047454 - PPPIOCSXASYNCMAP = 0x8020744f - PPPIOCXFERUNIT = 0x2000744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x80085203 - RNDADDTOENTCNT = 0x80045201 - RNDCLEARPOOL = 0x20005206 - RNDGETENTCNT = 0x40045200 - RNDGETPOOL = 0x40085202 - RNDRESEEDCRNG = 0x20005207 - RNDZAPENTCNT = 0x20005204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x20007002 - RTC_AIE_ON = 0x20007001 - RTC_ALM_READ = 0x40247008 - RTC_ALM_SET = 0x80247007 - RTC_EPOCH_READ = 0x4004700d - RTC_EPOCH_SET = 0x8004700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x4004700b - RTC_IRQP_SET = 0x8004700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x20007006 - RTC_PIE_ON = 0x20007005 - RTC_PLL_GET = 0x401c7011 - RTC_PLL_SET = 0x801c7012 - RTC_RD_TIME = 0x40247009 - RTC_SET_TIME = 0x8024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x20007004 - RTC_UIE_ON = 0x20007003 - RTC_VL_CLR = 0x20007014 - RTC_VL_READ = 0x40047013 - RTC_WIE_OFF = 0x20007010 - RTC_WIE_ON = 0x2000700f - RTC_WKALM_RD = 0x40287010 - RTC_WKALM_SET = 0x8028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x80 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGISO7816 = 0x40285442 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x8000 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x800854d5 - TUNDETACHFILTER = 0x800854d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x400854db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETCARRIER = 0x800454e2 - TUNSETDEBUG = 0x800454c9 - TUNSETFILTEREBPF = 0x400454e1 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETSTEERINGEBPF = 0x400454e0 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UBI_IOCATT = 0x80186f40 - UBI_IOCDET = 0x80046f41 - UBI_IOCEBCH = 0x80044f02 - UBI_IOCEBER = 0x80044f01 - UBI_IOCEBISMAP = 0x40044f05 - UBI_IOCEBMAP = 0x80084f03 - UBI_IOCEBUNMAP = 0x80044f04 - UBI_IOCMKVOL = 0x80986f00 - UBI_IOCRMVOL = 0x80046f01 - UBI_IOCRNVOL = 0x91106f03 - UBI_IOCRPEB = 0x80046f04 - UBI_IOCRSVOL = 0x800c6f02 - UBI_IOCSETVOLPROP = 0x80104f06 - UBI_IOCSPEB = 0x80046f05 - UBI_IOCVOLCRBLK = 0x80804f07 - UBI_IOCVOLRMBLK = 0x20004f08 - UBI_IOCVOLUP = 0x80084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40041270 + BLKBSZSET = 0x80041271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40041272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x2000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x21 + F_GETLK64 = 0x21 + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x22 + F_SETLK64 = 0x22 + F_SETLKW = 0x23 + F_SETLKW64 = 0x23 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x2000 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4008743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80087446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x800c744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80087447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4004700d + RTC_EPOCH_SET = 0x8004700e + RTC_IRQP_READ = 0x4004700b + RTC_IRQP_SET = 0x8004700c + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x401c7011 + RTC_PLL_SET = 0x801c7012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x800854d5 + TUNDETACHFILTER = 0x800854d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x400854db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x20 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x7d) EADDRNOTAVAIL = syscall.Errno(0x7e) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x95) EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x51) EBADMSG = syscall.Errno(0x4d) EBADR = syscall.Errno(0x33) EBADRQC = syscall.Errno(0x36) EBADSLT = syscall.Errno(0x37) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x25) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x82) @@ -2660,12 +500,8 @@ const ( EDEADLK = syscall.Errno(0x2d) EDEADLOCK = syscall.Errno(0x38) EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x93) EHOSTUNREACH = syscall.Errno(0x94) EHWPOISON = syscall.Errno(0xa8) @@ -2673,11 +509,7 @@ const ( EILSEQ = syscall.Errno(0x58) EINIT = syscall.Errno(0x8d) EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x8b) EKEYEXPIRED = syscall.Errno(0xa2) EKEYREJECTED = syscall.Errno(0xa4) @@ -2694,8 +526,6 @@ const ( ELNRNG = syscall.Errno(0x29) ELOOP = syscall.Errno(0x5a) EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x61) EMULTIHOP = syscall.Errno(0x4a) ENAMETOOLONG = syscall.Errno(0x4e) @@ -2703,100 +533,68 @@ const ( ENETDOWN = syscall.Errno(0x7f) ENETRESET = syscall.Errno(0x81) ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x35) ENOBUFS = syscall.Errno(0x84) ENOCSI = syscall.Errno(0x2b) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0xa1) ENOLCK = syscall.Errno(0x2e) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x23) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x5d) ENOTNAM = syscall.Errno(0x89) ENOTRECOVERABLE = syscall.Errno(0xa6) ENOTSOCK = syscall.Errno(0x5f) ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x7a) EOVERFLOW = syscall.Errno(0x4f) EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x78) EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x52) EREMDEV = syscall.Errno(0x8e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x8c) ERESTART = syscall.Errno(0x5b) ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x8f) ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x97) ESTRPIPE = syscall.Errno(0x5c) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x91) ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x87) EUNATCH = syscall.Errno(0x2a) EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x34) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0xa) SIGCHLD = syscall.Signal(0x12) SIGCLD = syscall.Signal(0x12) SIGCONT = syscall.Signal(0x19) SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x16) SIGPROF = syscall.Signal(0x1d) SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTOP = syscall.Signal(0x17) SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x18) SIGTTIN = syscall.Signal(0x1a) SIGTTOU = syscall.Signal(0x1b) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index 374e3007f..63df35597 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -11,2706 +11,547 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x17 - B110 = 0x3 - B115200 = 0x11 - B1152000 = 0x18 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x19 - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x1a - B230400 = 0x12 - B2400 = 0xb - B2500000 = 0x1b - B300 = 0x7 - B3000000 = 0x1c - B3500000 = 0x1d - B38400 = 0xf - B4000000 = 0x1e - B460800 = 0x13 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x14 - B57600 = 0x10 - B576000 = 0x15 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x16 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1f - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0xff - CBAUDEX = 0x0 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0xff0000 - CLOCAL = 0x8000 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIGNAL = 0xff - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0xd - F_SETLKW = 0x7 - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x4000 - IBSHIFT = 0x10 - ICANON = 0x100 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x400 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x80 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x1000 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x80 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x40 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x2000 - MCL_FUTURE = 0x4000 - MCL_ONFAULT = 0x8000 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x300 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80000000 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x4 - ONLCR = 0x2 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x20000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x1000 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x8004743d - PPPIOCATTCHAN = 0x80047438 - PPPIOCCONNECT = 0x8004743a - PPPIOCDETACH = 0x8004743c - PPPIOCDISCONN = 0x20007439 - PPPIOCGASYNCMAP = 0x40047458 - PPPIOCGCHAN = 0x40047437 - PPPIOCGDEBUG = 0x40047441 - PPPIOCGFLAGS = 0x4004745a - PPPIOCGIDLE = 0x4010743f - PPPIOCGL2TPSTATS = 0x40487436 - PPPIOCGMRU = 0x40047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x40047455 - PPPIOCGUNIT = 0x40047456 - PPPIOCGXASYNCMAP = 0x40207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x80107446 - PPPIOCSASYNCMAP = 0x80047457 - PPPIOCSCOMPRESS = 0x8010744d - PPPIOCSDEBUG = 0x80047440 - PPPIOCSFLAGS = 0x80047459 - PPPIOCSMAXCID = 0x80047451 - PPPIOCSMRRU = 0x8004743b - PPPIOCSMRU = 0x80047452 - PPPIOCSNPMODE = 0x8008744b - PPPIOCSPASS = 0x80107447 - PPPIOCSRASYNCMAP = 0x80047454 - PPPIOCSXASYNCMAP = 0x8020744f - PPPIOCXFERUNIT = 0x2000744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_SAO = 0x10 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETEVRREGS = 0x14 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGS64 = 0x16 - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GETVRREGS = 0x12 - PTRACE_GETVSRREGS = 0x1b - PTRACE_GET_DEBUGREG = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETEVRREGS = 0x15 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGS64 = 0x17 - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SETVRREGS = 0x13 - PTRACE_SETVSRREGS = 0x1c - PTRACE_SET_DEBUGREG = 0x1a - PTRACE_SINGLEBLOCK = 0x100 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_SYSEMU = 0x1d - PTRACE_SYSEMU_SINGLESTEP = 0x1e - PTRACE_TRACEME = 0x0 - PT_CCR = 0x26 - PT_CTR = 0x23 - PT_DAR = 0x29 - PT_DSCR = 0x2c - PT_DSISR = 0x2a - PT_FPR0 = 0x30 - PT_FPSCR = 0x50 - PT_LNK = 0x24 - PT_MSR = 0x21 - PT_NIP = 0x20 - PT_ORIG_R3 = 0x22 - PT_R0 = 0x0 - PT_R1 = 0x1 - PT_R10 = 0xa - PT_R11 = 0xb - PT_R12 = 0xc - PT_R13 = 0xd - PT_R14 = 0xe - PT_R15 = 0xf - PT_R16 = 0x10 - PT_R17 = 0x11 - PT_R18 = 0x12 - PT_R19 = 0x13 - PT_R2 = 0x2 - PT_R20 = 0x14 - PT_R21 = 0x15 - PT_R22 = 0x16 - PT_R23 = 0x17 - PT_R24 = 0x18 - PT_R25 = 0x19 - PT_R26 = 0x1a - PT_R27 = 0x1b - PT_R28 = 0x1c - PT_R29 = 0x1d - PT_R3 = 0x3 - PT_R30 = 0x1e - PT_R31 = 0x1f - PT_R4 = 0x4 - PT_R5 = 0x5 - PT_R6 = 0x6 - PT_R7 = 0x7 - PT_R8 = 0x8 - PT_R9 = 0x9 - PT_REGS_COUNT = 0x2c - PT_RESULT = 0x2b - PT_SOFTE = 0x27 - PT_TRAP = 0x28 - PT_VR0 = 0x52 - PT_VRSAVE = 0x94 - PT_VSCR = 0x93 - PT_VSR0 = 0x96 - PT_VSR31 = 0xd4 - PT_XER = 0x25 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x80085203 - RNDADDTOENTCNT = 0x80045201 - RNDCLEARPOOL = 0x20005206 - RNDGETENTCNT = 0x40045200 - RNDGETPOOL = 0x40085202 - RNDRESEEDCRNG = 0x20005207 - RNDZAPENTCNT = 0x20005204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x20007002 - RTC_AIE_ON = 0x20007001 - RTC_ALM_READ = 0x40247008 - RTC_ALM_SET = 0x80247007 - RTC_EPOCH_READ = 0x4008700d - RTC_EPOCH_SET = 0x8008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x4008700b - RTC_IRQP_SET = 0x8008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x20007006 - RTC_PIE_ON = 0x20007005 - RTC_PLL_GET = 0x40207011 - RTC_PLL_SET = 0x80207012 - RTC_RD_TIME = 0x40247009 - RTC_SET_TIME = 0x8024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x20007004 - RTC_UIE_ON = 0x20007003 - RTC_VL_CLR = 0x20007014 - RTC_VL_READ = 0x40047013 - RTC_WIE_OFF = 0x20007010 - RTC_WIE_ON = 0x2000700f - RTC_WKALM_RD = 0x40287010 - RTC_WKALM_SET = 0x8028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x4004667f - SIOCOUTQ = 0x40047473 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x14 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x15 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x10 - SO_RCVTIMEO = 0x12 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x12 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x11 - SO_SNDTIMEO = 0x13 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x13 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0xc00 - TABDLY = 0xc00 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x2000741f - TCGETA = 0x40147417 - TCGETS = 0x402c7413 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x2000741d - TCSBRKP = 0x5425 - TCSETA = 0x80147418 - TCSETAF = 0x8014741c - TCSETAW = 0x80147419 - TCSETS = 0x802c7414 - TCSETSF = 0x802c7416 - TCSETSW = 0x802c7415 - TCXONC = 0x2000741e - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x40045432 - TIOCGETC = 0x40067412 - TIOCGETD = 0x5424 - TIOCGETP = 0x40067408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x40285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGLTC = 0x40067474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x4004667f - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_LOOP = 0x8000 - TIOCM_OUT1 = 0x2000 - TIOCM_OUT2 = 0x4000 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETC = 0x80067411 - TIOCSETD = 0x5423 - TIOCSETN = 0x8006740a - TIOCSETP = 0x80067409 - TIOCSIG = 0x80045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSLTC = 0x80067475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTART = 0x2000746e - TIOCSTI = 0x5412 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x400000 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETCARRIER = 0x800454e2 - TUNSETDEBUG = 0x800454c9 - TUNSETFILTEREBPF = 0x400454e1 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETSTEERINGEBPF = 0x400454e0 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UBI_IOCATT = 0x80186f40 - UBI_IOCDET = 0x80046f41 - UBI_IOCEBCH = 0x80044f02 - UBI_IOCEBER = 0x80044f01 - UBI_IOCEBISMAP = 0x40044f05 - UBI_IOCEBMAP = 0x80084f03 - UBI_IOCEBUNMAP = 0x80044f04 - UBI_IOCMKVOL = 0x80986f00 - UBI_IOCRMVOL = 0x80046f01 - UBI_IOCRNVOL = 0x91106f03 - UBI_IOCRPEB = 0x80046f04 - UBI_IOCRSVOL = 0x800c6f02 - UBI_IOCSETVOLPROP = 0x80104f06 - UBI_IOCSPEB = 0x80046f05 - UBI_IOCVOLCRBLK = 0x80804f07 - UBI_IOCVOLRMBLK = 0x20004f08 - UBI_IOCVOLUP = 0x80084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0x10 - VEOF = 0x4 - VEOL = 0x6 - VEOL2 = 0x8 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x5 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xb - VSTART = 0xd - VSTOP = 0xe - VSUSP = 0xc - VSWTC = 0x9 - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x7 - VWERASE = 0xa - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4000 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0xc00 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x17 + B115200 = 0x11 + B1152000 = 0x18 + B1500000 = 0x19 + B2000000 = 0x1a + B230400 = 0x12 + B2500000 = 0x1b + B3000000 = 0x1c + B3500000 = 0x1d + B4000000 = 0x1e + B460800 = 0x13 + B500000 = 0x14 + B57600 = 0x10 + B576000 = 0x15 + B921600 = 0x16 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1f + BS1 = 0x8000 + BSDLY = 0x8000 + CBAUD = 0xff + CBAUDEX = 0x0 + CIBAUD = 0xff0000 + CLOCAL = 0x8000 + CR1 = 0x1000 + CR2 = 0x2000 + CR3 = 0x3000 + CRDLY = 0x3000 + CREAD = 0x800 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTOPB = 0x400 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000000 + FF1 = 0x4000 + FFDLY = 0x4000 + FLUSHO = 0x800000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x5 + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0xd + F_SETLKW = 0x7 + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x4000 + ICANON = 0x100 + IEXTEN = 0x400 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x80 + IUCLC = 0x1000 + IXOFF = 0x400 + IXON = 0x200 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x80 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x40 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x2000 + MCL_FUTURE = 0x4000 + MCL_ONFAULT = 0x8000 + NFDBITS = 0x40 + NL2 = 0x200 + NL3 = 0x300 + NLDLY = 0x300 + NOFLSH = 0x80000000 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x4 + ONLCR = 0x2 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x20000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x1000 + PARODD = 0x2000 + PENDIN = 0x20000000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCXFERUNIT = 0x2000744e + PROT_SAO = 0x10 + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETEVRREGS = 0x14 + PTRACE_GETFPREGS = 0xe + PTRACE_GETREGS64 = 0x16 + PTRACE_GETVRREGS = 0x12 + PTRACE_GETVSRREGS = 0x1b + PTRACE_GET_DEBUGREG = 0x19 + PTRACE_SETEVRREGS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETREGS64 = 0x17 + PTRACE_SETVRREGS = 0x13 + PTRACE_SETVSRREGS = 0x1c + PTRACE_SET_DEBUGREG = 0x1a + PTRACE_SINGLEBLOCK = 0x100 + PTRACE_SYSEMU = 0x1d + PTRACE_SYSEMU_SINGLESTEP = 0x1e + PT_CCR = 0x26 + PT_CTR = 0x23 + PT_DAR = 0x29 + PT_DSCR = 0x2c + PT_DSISR = 0x2a + PT_FPR0 = 0x30 + PT_FPSCR = 0x50 + PT_LNK = 0x24 + PT_MSR = 0x21 + PT_NIP = 0x20 + PT_ORIG_R3 = 0x22 + PT_R0 = 0x0 + PT_R1 = 0x1 + PT_R10 = 0xa + PT_R11 = 0xb + PT_R12 = 0xc + PT_R13 = 0xd + PT_R14 = 0xe + PT_R15 = 0xf + PT_R16 = 0x10 + PT_R17 = 0x11 + PT_R18 = 0x12 + PT_R19 = 0x13 + PT_R2 = 0x2 + PT_R20 = 0x14 + PT_R21 = 0x15 + PT_R22 = 0x16 + PT_R23 = 0x17 + PT_R24 = 0x18 + PT_R25 = 0x19 + PT_R26 = 0x1a + PT_R27 = 0x1b + PT_R28 = 0x1c + PT_R29 = 0x1d + PT_R3 = 0x3 + PT_R30 = 0x1e + PT_R31 = 0x1f + PT_R4 = 0x4 + PT_R5 = 0x5 + PT_R6 = 0x6 + PT_R7 = 0x7 + PT_R8 = 0x8 + PT_R9 = 0x9 + PT_REGS_COUNT = 0x2c + PT_RESULT = 0x2b + PT_SOFTE = 0x27 + PT_TRAP = 0x28 + PT_VR0 = 0x52 + PT_VRSAVE = 0x94 + PT_VSCR = 0x93 + PT_VSR0 = 0x96 + PT_VSR31 = 0xd4 + PT_XER = 0x25 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x4004667f + SIOCOUTQ = 0x40047473 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x14 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x15 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x10 + SO_RCVTIMEO = 0x12 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x12 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x11 + SO_SNDTIMEO = 0x13 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x13 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0xc00 + TABDLY = 0xc00 + TCFLSH = 0x2000741f + TCGETA = 0x40147417 + TCGETS = 0x402c7413 + TCSAFLUSH = 0x2 + TCSBRK = 0x2000741d + TCSBRKP = 0x5425 + TCSETA = 0x80147418 + TCSETAF = 0x8014741c + TCSETAW = 0x80147419 + TCSETS = 0x802c7414 + TCSETSF = 0x802c7416 + TCSETSW = 0x802c7415 + TCXONC = 0x2000741e + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x40045432 + TIOCGETC = 0x40067412 + TIOCGETD = 0x5424 + TIOCGETP = 0x40067408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGLTC = 0x40067474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x4004667f + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_LOOP = 0x8000 + TIOCM_OUT1 = 0x2000 + TIOCM_OUT2 = 0x4000 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETC = 0x80067411 + TIOCSETD = 0x5423 + TIOCSETN = 0x8006740a + TIOCSETP = 0x80067409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSLTC = 0x80067475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTART = 0x2000746e + TIOCSTI = 0x5412 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x400000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0x10 + VEOF = 0x4 + VEOL = 0x6 + VEOL2 = 0x8 + VMIN = 0x5 + VREPRINT = 0xb + VSTART = 0xd + VSTOP = 0xe + VSUSP = 0xc + VSWTC = 0x9 + VT1 = 0x10000 + VTDLY = 0x10000 + VTIME = 0x7 + VWERASE = 0xa + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4000 + XTABS = 0xc00 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2719,23 +560,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x3a) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2752,8 +585,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2761,99 +592,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index badf14102..7ab68f7c8 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -11,2706 +11,547 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x17 - B110 = 0x3 - B115200 = 0x11 - B1152000 = 0x18 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x19 - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x1a - B230400 = 0x12 - B2400 = 0xb - B2500000 = 0x1b - B300 = 0x7 - B3000000 = 0x1c - B3500000 = 0x1d - B38400 = 0xf - B4000000 = 0x1e - B460800 = 0x13 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x14 - B57600 = 0x10 - B576000 = 0x15 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x16 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1f - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0xff - CBAUDEX = 0x0 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0xff0000 - CLOCAL = 0x8000 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIGNAL = 0xff - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0xd - F_SETLKW = 0x7 - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x4000 - IBSHIFT = 0x10 - ICANON = 0x100 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x400 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x80 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x1000 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x80 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x40 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x2000 - MCL_FUTURE = 0x4000 - MCL_ONFAULT = 0x8000 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x300 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80000000 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x4 - ONLCR = 0x2 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x20000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x1000 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x8004743d - PPPIOCATTCHAN = 0x80047438 - PPPIOCCONNECT = 0x8004743a - PPPIOCDETACH = 0x8004743c - PPPIOCDISCONN = 0x20007439 - PPPIOCGASYNCMAP = 0x40047458 - PPPIOCGCHAN = 0x40047437 - PPPIOCGDEBUG = 0x40047441 - PPPIOCGFLAGS = 0x4004745a - PPPIOCGIDLE = 0x4010743f - PPPIOCGL2TPSTATS = 0x40487436 - PPPIOCGMRU = 0x40047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x40047455 - PPPIOCGUNIT = 0x40047456 - PPPIOCGXASYNCMAP = 0x40207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x80107446 - PPPIOCSASYNCMAP = 0x80047457 - PPPIOCSCOMPRESS = 0x8010744d - PPPIOCSDEBUG = 0x80047440 - PPPIOCSFLAGS = 0x80047459 - PPPIOCSMAXCID = 0x80047451 - PPPIOCSMRRU = 0x8004743b - PPPIOCSMRU = 0x80047452 - PPPIOCSNPMODE = 0x8008744b - PPPIOCSPASS = 0x80107447 - PPPIOCSRASYNCMAP = 0x80047454 - PPPIOCSXASYNCMAP = 0x8020744f - PPPIOCXFERUNIT = 0x2000744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_SAO = 0x10 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETEVRREGS = 0x14 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGS64 = 0x16 - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GETVRREGS = 0x12 - PTRACE_GETVSRREGS = 0x1b - PTRACE_GET_DEBUGREG = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETEVRREGS = 0x15 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGS64 = 0x17 - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SETVRREGS = 0x13 - PTRACE_SETVSRREGS = 0x1c - PTRACE_SET_DEBUGREG = 0x1a - PTRACE_SINGLEBLOCK = 0x100 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_SYSEMU = 0x1d - PTRACE_SYSEMU_SINGLESTEP = 0x1e - PTRACE_TRACEME = 0x0 - PT_CCR = 0x26 - PT_CTR = 0x23 - PT_DAR = 0x29 - PT_DSCR = 0x2c - PT_DSISR = 0x2a - PT_FPR0 = 0x30 - PT_FPSCR = 0x50 - PT_LNK = 0x24 - PT_MSR = 0x21 - PT_NIP = 0x20 - PT_ORIG_R3 = 0x22 - PT_R0 = 0x0 - PT_R1 = 0x1 - PT_R10 = 0xa - PT_R11 = 0xb - PT_R12 = 0xc - PT_R13 = 0xd - PT_R14 = 0xe - PT_R15 = 0xf - PT_R16 = 0x10 - PT_R17 = 0x11 - PT_R18 = 0x12 - PT_R19 = 0x13 - PT_R2 = 0x2 - PT_R20 = 0x14 - PT_R21 = 0x15 - PT_R22 = 0x16 - PT_R23 = 0x17 - PT_R24 = 0x18 - PT_R25 = 0x19 - PT_R26 = 0x1a - PT_R27 = 0x1b - PT_R28 = 0x1c - PT_R29 = 0x1d - PT_R3 = 0x3 - PT_R30 = 0x1e - PT_R31 = 0x1f - PT_R4 = 0x4 - PT_R5 = 0x5 - PT_R6 = 0x6 - PT_R7 = 0x7 - PT_R8 = 0x8 - PT_R9 = 0x9 - PT_REGS_COUNT = 0x2c - PT_RESULT = 0x2b - PT_SOFTE = 0x27 - PT_TRAP = 0x28 - PT_VR0 = 0x52 - PT_VRSAVE = 0x94 - PT_VSCR = 0x93 - PT_VSR0 = 0x96 - PT_VSR31 = 0xd4 - PT_XER = 0x25 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x80085203 - RNDADDTOENTCNT = 0x80045201 - RNDCLEARPOOL = 0x20005206 - RNDGETENTCNT = 0x40045200 - RNDGETPOOL = 0x40085202 - RNDRESEEDCRNG = 0x20005207 - RNDZAPENTCNT = 0x20005204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x20007002 - RTC_AIE_ON = 0x20007001 - RTC_ALM_READ = 0x40247008 - RTC_ALM_SET = 0x80247007 - RTC_EPOCH_READ = 0x4008700d - RTC_EPOCH_SET = 0x8008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x4008700b - RTC_IRQP_SET = 0x8008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x20007006 - RTC_PIE_ON = 0x20007005 - RTC_PLL_GET = 0x40207011 - RTC_PLL_SET = 0x80207012 - RTC_RD_TIME = 0x40247009 - RTC_SET_TIME = 0x8024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x20007004 - RTC_UIE_ON = 0x20007003 - RTC_VL_CLR = 0x20007014 - RTC_VL_READ = 0x40047013 - RTC_WIE_OFF = 0x20007010 - RTC_WIE_ON = 0x2000700f - RTC_WKALM_RD = 0x40287010 - RTC_WKALM_SET = 0x8028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x4004667f - SIOCOUTQ = 0x40047473 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x14 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x15 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x10 - SO_RCVTIMEO = 0x12 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x12 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x11 - SO_SNDTIMEO = 0x13 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x13 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0xc00 - TABDLY = 0xc00 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x2000741f - TCGETA = 0x40147417 - TCGETS = 0x402c7413 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x2000741d - TCSBRKP = 0x5425 - TCSETA = 0x80147418 - TCSETAF = 0x8014741c - TCSETAW = 0x80147419 - TCSETS = 0x802c7414 - TCSETSF = 0x802c7416 - TCSETSW = 0x802c7415 - TCXONC = 0x2000741e - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x40045432 - TIOCGETC = 0x40067412 - TIOCGETD = 0x5424 - TIOCGETP = 0x40067408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x40285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGLTC = 0x40067474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x4004667f - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_LOOP = 0x8000 - TIOCM_OUT1 = 0x2000 - TIOCM_OUT2 = 0x4000 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETC = 0x80067411 - TIOCSETD = 0x5423 - TIOCSETN = 0x8006740a - TIOCSETP = 0x80067409 - TIOCSIG = 0x80045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSLTC = 0x80067475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTART = 0x2000746e - TIOCSTI = 0x5412 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x400000 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETCARRIER = 0x800454e2 - TUNSETDEBUG = 0x800454c9 - TUNSETFILTEREBPF = 0x400454e1 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETSTEERINGEBPF = 0x400454e0 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UBI_IOCATT = 0x80186f40 - UBI_IOCDET = 0x80046f41 - UBI_IOCEBCH = 0x80044f02 - UBI_IOCEBER = 0x80044f01 - UBI_IOCEBISMAP = 0x40044f05 - UBI_IOCEBMAP = 0x80084f03 - UBI_IOCEBUNMAP = 0x80044f04 - UBI_IOCMKVOL = 0x80986f00 - UBI_IOCRMVOL = 0x80046f01 - UBI_IOCRNVOL = 0x91106f03 - UBI_IOCRPEB = 0x80046f04 - UBI_IOCRSVOL = 0x800c6f02 - UBI_IOCSETVOLPROP = 0x80104f06 - UBI_IOCSPEB = 0x80046f05 - UBI_IOCVOLCRBLK = 0x80804f07 - UBI_IOCVOLRMBLK = 0x20004f08 - UBI_IOCVOLUP = 0x80084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0x10 - VEOF = 0x4 - VEOL = 0x6 - VEOL2 = 0x8 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x5 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xb - VSTART = 0xd - VSTOP = 0xe - VSUSP = 0xc - VSWTC = 0x9 - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x7 - VWERASE = 0xa - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4000 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0xc00 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x17 + B115200 = 0x11 + B1152000 = 0x18 + B1500000 = 0x19 + B2000000 = 0x1a + B230400 = 0x12 + B2500000 = 0x1b + B3000000 = 0x1c + B3500000 = 0x1d + B4000000 = 0x1e + B460800 = 0x13 + B500000 = 0x14 + B57600 = 0x10 + B576000 = 0x15 + B921600 = 0x16 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1f + BS1 = 0x8000 + BSDLY = 0x8000 + CBAUD = 0xff + CBAUDEX = 0x0 + CIBAUD = 0xff0000 + CLOCAL = 0x8000 + CR1 = 0x1000 + CR2 = 0x2000 + CR3 = 0x3000 + CRDLY = 0x3000 + CREAD = 0x800 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTOPB = 0x400 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000000 + FF1 = 0x4000 + FFDLY = 0x4000 + FLUSHO = 0x800000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x5 + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0xd + F_SETLKW = 0x7 + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x4000 + ICANON = 0x100 + IEXTEN = 0x400 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x80 + IUCLC = 0x1000 + IXOFF = 0x400 + IXON = 0x200 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x80 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x40 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x2000 + MCL_FUTURE = 0x4000 + MCL_ONFAULT = 0x8000 + NFDBITS = 0x40 + NL2 = 0x200 + NL3 = 0x300 + NLDLY = 0x300 + NOFLSH = 0x80000000 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x4 + ONLCR = 0x2 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x20000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x1000 + PARODD = 0x2000 + PENDIN = 0x20000000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCXFERUNIT = 0x2000744e + PROT_SAO = 0x10 + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETEVRREGS = 0x14 + PTRACE_GETFPREGS = 0xe + PTRACE_GETREGS64 = 0x16 + PTRACE_GETVRREGS = 0x12 + PTRACE_GETVSRREGS = 0x1b + PTRACE_GET_DEBUGREG = 0x19 + PTRACE_SETEVRREGS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETREGS64 = 0x17 + PTRACE_SETVRREGS = 0x13 + PTRACE_SETVSRREGS = 0x1c + PTRACE_SET_DEBUGREG = 0x1a + PTRACE_SINGLEBLOCK = 0x100 + PTRACE_SYSEMU = 0x1d + PTRACE_SYSEMU_SINGLESTEP = 0x1e + PT_CCR = 0x26 + PT_CTR = 0x23 + PT_DAR = 0x29 + PT_DSCR = 0x2c + PT_DSISR = 0x2a + PT_FPR0 = 0x30 + PT_FPSCR = 0x50 + PT_LNK = 0x24 + PT_MSR = 0x21 + PT_NIP = 0x20 + PT_ORIG_R3 = 0x22 + PT_R0 = 0x0 + PT_R1 = 0x1 + PT_R10 = 0xa + PT_R11 = 0xb + PT_R12 = 0xc + PT_R13 = 0xd + PT_R14 = 0xe + PT_R15 = 0xf + PT_R16 = 0x10 + PT_R17 = 0x11 + PT_R18 = 0x12 + PT_R19 = 0x13 + PT_R2 = 0x2 + PT_R20 = 0x14 + PT_R21 = 0x15 + PT_R22 = 0x16 + PT_R23 = 0x17 + PT_R24 = 0x18 + PT_R25 = 0x19 + PT_R26 = 0x1a + PT_R27 = 0x1b + PT_R28 = 0x1c + PT_R29 = 0x1d + PT_R3 = 0x3 + PT_R30 = 0x1e + PT_R31 = 0x1f + PT_R4 = 0x4 + PT_R5 = 0x5 + PT_R6 = 0x6 + PT_R7 = 0x7 + PT_R8 = 0x8 + PT_R9 = 0x9 + PT_REGS_COUNT = 0x2c + PT_RESULT = 0x2b + PT_SOFTE = 0x27 + PT_TRAP = 0x28 + PT_VR0 = 0x52 + PT_VRSAVE = 0x94 + PT_VSCR = 0x93 + PT_VSR0 = 0x96 + PT_VSR31 = 0xd4 + PT_XER = 0x25 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x4004667f + SIOCOUTQ = 0x40047473 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x14 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x15 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x10 + SO_RCVTIMEO = 0x12 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x12 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x11 + SO_SNDTIMEO = 0x13 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x13 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0xc00 + TABDLY = 0xc00 + TCFLSH = 0x2000741f + TCGETA = 0x40147417 + TCGETS = 0x402c7413 + TCSAFLUSH = 0x2 + TCSBRK = 0x2000741d + TCSBRKP = 0x5425 + TCSETA = 0x80147418 + TCSETAF = 0x8014741c + TCSETAW = 0x80147419 + TCSETS = 0x802c7414 + TCSETSF = 0x802c7416 + TCSETSW = 0x802c7415 + TCXONC = 0x2000741e + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x40045432 + TIOCGETC = 0x40067412 + TIOCGETD = 0x5424 + TIOCGETP = 0x40067408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGLTC = 0x40067474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x4004667f + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_LOOP = 0x8000 + TIOCM_OUT1 = 0x2000 + TIOCM_OUT2 = 0x4000 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETC = 0x80067411 + TIOCSETD = 0x5423 + TIOCSETN = 0x8006740a + TIOCSETP = 0x80067409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSLTC = 0x80067475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTART = 0x2000746e + TIOCSTI = 0x5412 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x400000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0x10 + VEOF = 0x4 + VEOL = 0x6 + VEOL2 = 0x8 + VMIN = 0x5 + VREPRINT = 0xb + VSTART = 0xd + VSTOP = 0xe + VSUSP = 0xc + VSWTC = 0x9 + VT1 = 0x10000 + VTDLY = 0x10000 + VTIME = 0x7 + VWERASE = 0xa + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4000 + XTABS = 0xc00 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2719,23 +560,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x3a) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2752,8 +585,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2761,99 +592,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go index 0ce8c7eff..f99cf1b9e 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -11,2632 +11,472 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0x5 - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_SYNC = 0x80000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x4000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x4004743d - PPPIOCATTCHAN = 0x40047438 - PPPIOCCONNECT = 0x4004743a - PPPIOCDETACH = 0x4004743c - PPPIOCDISCONN = 0x7439 - PPPIOCGASYNCMAP = 0x80047458 - PPPIOCGCHAN = 0x80047437 - PPPIOCGDEBUG = 0x80047441 - PPPIOCGFLAGS = 0x8004745a - PPPIOCGIDLE = 0x8010743f - PPPIOCGL2TPSTATS = 0x80487436 - PPPIOCGMRU = 0x80047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x80047455 - PPPIOCGUNIT = 0x80047456 - PPPIOCGXASYNCMAP = 0x80207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x40107446 - PPPIOCSASYNCMAP = 0x40047457 - PPPIOCSCOMPRESS = 0x4010744d - PPPIOCSDEBUG = 0x40047440 - PPPIOCSFLAGS = 0x40047459 - PPPIOCSMAXCID = 0x40047451 - PPPIOCSMRRU = 0x4004743b - PPPIOCSMRU = 0x40047452 - PPPIOCSNPMODE = 0x4008744b - PPPIOCSPASS = 0x40107447 - PPPIOCSRASYNCMAP = 0x40047454 - PPPIOCSXASYNCMAP = 0x4020744f - PPPIOCXFERUNIT = 0x744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x40085203 - RNDADDTOENTCNT = 0x40045201 - RNDCLEARPOOL = 0x5206 - RNDGETENTCNT = 0x80045200 - RNDGETPOOL = 0x80085202 - RNDRESEEDCRNG = 0x5207 - RNDZAPENTCNT = 0x5204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x7002 - RTC_AIE_ON = 0x7001 - RTC_ALM_READ = 0x80247008 - RTC_ALM_SET = 0x40247007 - RTC_EPOCH_READ = 0x8008700d - RTC_EPOCH_SET = 0x4008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x8008700b - RTC_IRQP_SET = 0x4008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x7006 - RTC_PIE_ON = 0x7005 - RTC_PLL_GET = 0x80207011 - RTC_PLL_SET = 0x40207012 - RTC_RD_TIME = 0x80247009 - RTC_SET_TIME = 0x4024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x7004 - RTC_UIE_ON = 0x7003 - RTC_VL_CLR = 0x7014 - RTC_VL_READ = 0x80047013 - RTC_WIE_OFF = 0x7010 - RTC_WIE_ON = 0x700f - RTC_WKALM_RD = 0x80287010 - RTC_WKALM_SET = 0x4028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x80285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x100 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x401054d5 - TUNDETACHFILTER = 0x401054d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x801054db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETCARRIER = 0x400454e2 - TUNSETDEBUG = 0x400454c9 - TUNSETFILTEREBPF = 0x800454e1 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETSTEERINGEBPF = 0x800454e0 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UBI_IOCATT = 0x40186f40 - UBI_IOCDET = 0x40046f41 - UBI_IOCEBCH = 0x40044f02 - UBI_IOCEBER = 0x40044f01 - UBI_IOCEBISMAP = 0x80044f05 - UBI_IOCEBMAP = 0x40084f03 - UBI_IOCEBUNMAP = 0x40044f04 - UBI_IOCMKVOL = 0x40986f00 - UBI_IOCRMVOL = 0x40046f01 - UBI_IOCRNVOL = 0x51106f03 - UBI_IOCRPEB = 0x40046f04 - UBI_IOCRSVOL = 0x400c6f02 - UBI_IOCSETVOLPROP = 0x40104f06 - UBI_IOCSPEB = 0x40046f05 - UBI_IOCVOLCRBLK = 0x40804f07 - UBI_IOCVOLRMBLK = 0x4f08 - UBI_IOCVOLUP = 0x40084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x1000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2645,23 +485,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x23) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2678,8 +510,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2687,99 +517,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 47675125a..613ee237e 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -11,2705 +11,545 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0x5 - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_SYNC = 0x80000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x4000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x4004743d - PPPIOCATTCHAN = 0x40047438 - PPPIOCCONNECT = 0x4004743a - PPPIOCDETACH = 0x4004743c - PPPIOCDISCONN = 0x7439 - PPPIOCGASYNCMAP = 0x80047458 - PPPIOCGCHAN = 0x80047437 - PPPIOCGDEBUG = 0x80047441 - PPPIOCGFLAGS = 0x8004745a - PPPIOCGIDLE = 0x8010743f - PPPIOCGL2TPSTATS = 0x80487436 - PPPIOCGMRU = 0x80047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x80047455 - PPPIOCGUNIT = 0x80047456 - PPPIOCGXASYNCMAP = 0x80207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x40107446 - PPPIOCSASYNCMAP = 0x40047457 - PPPIOCSCOMPRESS = 0x4010744d - PPPIOCSDEBUG = 0x40047440 - PPPIOCSFLAGS = 0x40047459 - PPPIOCSMAXCID = 0x40047451 - PPPIOCSMRRU = 0x4004743b - PPPIOCSMRU = 0x40047452 - PPPIOCSNPMODE = 0x4008744b - PPPIOCSPASS = 0x40107447 - PPPIOCSRASYNCMAP = 0x40047454 - PPPIOCSXASYNCMAP = 0x4020744f - PPPIOCXFERUNIT = 0x744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_DISABLE_TE = 0x5010 - PTRACE_ENABLE_TE = 0x5009 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_LAST_BREAK = 0x5006 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_AREA = 0x5003 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_AREA = 0x5002 - PTRACE_PEEKUSR = 0x3 - PTRACE_PEEKUSR_AREA = 0x5000 - PTRACE_PEEK_SYSTEM_CALL = 0x5007 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_AREA = 0x5005 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_AREA = 0x5004 - PTRACE_POKEUSR = 0x6 - PTRACE_POKEUSR_AREA = 0x5001 - PTRACE_POKE_SYSTEM_CALL = 0x5008 - PTRACE_PROT = 0x15 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SINGLEBLOCK = 0xc - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TE_ABORT_RAND = 0x5011 - PTRACE_TRACEME = 0x0 - PT_ACR0 = 0x90 - PT_ACR1 = 0x94 - PT_ACR10 = 0xb8 - PT_ACR11 = 0xbc - PT_ACR12 = 0xc0 - PT_ACR13 = 0xc4 - PT_ACR14 = 0xc8 - PT_ACR15 = 0xcc - PT_ACR2 = 0x98 - PT_ACR3 = 0x9c - PT_ACR4 = 0xa0 - PT_ACR5 = 0xa4 - PT_ACR6 = 0xa8 - PT_ACR7 = 0xac - PT_ACR8 = 0xb0 - PT_ACR9 = 0xb4 - PT_CR_10 = 0x168 - PT_CR_11 = 0x170 - PT_CR_9 = 0x160 - PT_ENDREGS = 0x1af - PT_FPC = 0xd8 - PT_FPR0 = 0xe0 - PT_FPR1 = 0xe8 - PT_FPR10 = 0x130 - PT_FPR11 = 0x138 - PT_FPR12 = 0x140 - PT_FPR13 = 0x148 - PT_FPR14 = 0x150 - PT_FPR15 = 0x158 - PT_FPR2 = 0xf0 - PT_FPR3 = 0xf8 - PT_FPR4 = 0x100 - PT_FPR5 = 0x108 - PT_FPR6 = 0x110 - PT_FPR7 = 0x118 - PT_FPR8 = 0x120 - PT_FPR9 = 0x128 - PT_GPR0 = 0x10 - PT_GPR1 = 0x18 - PT_GPR10 = 0x60 - PT_GPR11 = 0x68 - PT_GPR12 = 0x70 - PT_GPR13 = 0x78 - PT_GPR14 = 0x80 - PT_GPR15 = 0x88 - PT_GPR2 = 0x20 - PT_GPR3 = 0x28 - PT_GPR4 = 0x30 - PT_GPR5 = 0x38 - PT_GPR6 = 0x40 - PT_GPR7 = 0x48 - PT_GPR8 = 0x50 - PT_GPR9 = 0x58 - PT_IEEE_IP = 0x1a8 - PT_LASTOFF = 0x1a8 - PT_ORIGGPR2 = 0xd0 - PT_PSWADDR = 0x8 - PT_PSWMASK = 0x0 - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x40085203 - RNDADDTOENTCNT = 0x40045201 - RNDCLEARPOOL = 0x5206 - RNDGETENTCNT = 0x80045200 - RNDGETPOOL = 0x80085202 - RNDRESEEDCRNG = 0x5207 - RNDZAPENTCNT = 0x5204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x7002 - RTC_AIE_ON = 0x7001 - RTC_ALM_READ = 0x80247008 - RTC_ALM_SET = 0x40247007 - RTC_EPOCH_READ = 0x8008700d - RTC_EPOCH_SET = 0x4008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x8008700b - RTC_IRQP_SET = 0x4008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x7006 - RTC_PIE_ON = 0x7005 - RTC_PLL_GET = 0x80207011 - RTC_PLL_SET = 0x40207012 - RTC_RD_TIME = 0x80247009 - RTC_SET_TIME = 0x4024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x7004 - RTC_UIE_ON = 0x7003 - RTC_VL_CLR = 0x7014 - RTC_VL_READ = 0x80047013 - RTC_WIE_OFF = 0x7010 - RTC_WIE_ON = 0x700f - RTC_WKALM_RD = 0x80287010 - RTC_WKALM_SET = 0x4028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_TXTIME = 0x3d - SCM_WIFI_STATUS = 0x29 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x80000 - SFD_NONBLOCK = 0x800 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BINDTOIFINDEX = 0x3e - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_RCVTIMEO_NEW = 0x42 - SO_RCVTIMEO_OLD = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_SNDTIMEO_NEW = 0x43 - SO_SNDTIMEO_OLD = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPING_NEW = 0x41 - SO_TIMESTAMPING_OLD = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TIMESTAMPNS_NEW = 0x40 - SO_TIMESTAMPNS_OLD = 0x23 - SO_TIMESTAMP_NEW = 0x3f - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3d - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SO_ZEROCOPY = 0x3c - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x80285442 - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSISO7816 = 0xc0285443 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x100 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x401054d5 - TUNDETACHFILTER = 0x401054d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x801054db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETCARRIER = 0x400454e2 - TUNSETDEBUG = 0x400454c9 - TUNSETFILTEREBPF = 0x800454e1 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETSTEERINGEBPF = 0x800454e0 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UBI_IOCATT = 0x40186f40 - UBI_IOCDET = 0x40046f41 - UBI_IOCEBCH = 0x40044f02 - UBI_IOCEBER = 0x40044f01 - UBI_IOCEBISMAP = 0x80044f05 - UBI_IOCEBMAP = 0x40084f03 - UBI_IOCEBUNMAP = 0x40044f04 - UBI_IOCMKVOL = 0x40986f00 - UBI_IOCRMVOL = 0x40046f01 - UBI_IOCRNVOL = 0x51106f03 - UBI_IOCRPEB = 0x40046f04 - UBI_IOCRSVOL = 0x400c6f02 - UBI_IOCSETVOLPROP = 0x40104f06 - UBI_IOCSPEB = 0x40046f05 - UBI_IOCVOLCRBLK = 0x40804f07 - UBI_IOCVOLRMBLK = 0x4f08 - UBI_IOCVOLUP = 0x40084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x1000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_DISABLE_TE = 0x5010 + PTRACE_ENABLE_TE = 0x5009 + PTRACE_GET_LAST_BREAK = 0x5006 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_AREA = 0x5003 + PTRACE_PEEKTEXT_AREA = 0x5002 + PTRACE_PEEKUSR_AREA = 0x5000 + PTRACE_PEEK_SYSTEM_CALL = 0x5007 + PTRACE_POKEDATA_AREA = 0x5005 + PTRACE_POKETEXT_AREA = 0x5004 + PTRACE_POKEUSR_AREA = 0x5001 + PTRACE_POKE_SYSTEM_CALL = 0x5008 + PTRACE_PROT = 0x15 + PTRACE_SINGLEBLOCK = 0xc + PTRACE_TE_ABORT_RAND = 0x5011 + PT_ACR0 = 0x90 + PT_ACR1 = 0x94 + PT_ACR10 = 0xb8 + PT_ACR11 = 0xbc + PT_ACR12 = 0xc0 + PT_ACR13 = 0xc4 + PT_ACR14 = 0xc8 + PT_ACR15 = 0xcc + PT_ACR2 = 0x98 + PT_ACR3 = 0x9c + PT_ACR4 = 0xa0 + PT_ACR5 = 0xa4 + PT_ACR6 = 0xa8 + PT_ACR7 = 0xac + PT_ACR8 = 0xb0 + PT_ACR9 = 0xb4 + PT_CR_10 = 0x168 + PT_CR_11 = 0x170 + PT_CR_9 = 0x160 + PT_ENDREGS = 0x1af + PT_FPC = 0xd8 + PT_FPR0 = 0xe0 + PT_FPR1 = 0xe8 + PT_FPR10 = 0x130 + PT_FPR11 = 0x138 + PT_FPR12 = 0x140 + PT_FPR13 = 0x148 + PT_FPR14 = 0x150 + PT_FPR15 = 0x158 + PT_FPR2 = 0xf0 + PT_FPR3 = 0xf8 + PT_FPR4 = 0x100 + PT_FPR5 = 0x108 + PT_FPR6 = 0x110 + PT_FPR7 = 0x118 + PT_FPR8 = 0x120 + PT_FPR9 = 0x128 + PT_GPR0 = 0x10 + PT_GPR1 = 0x18 + PT_GPR10 = 0x60 + PT_GPR11 = 0x68 + PT_GPR12 = 0x70 + PT_GPR13 = 0x78 + PT_GPR14 = 0x80 + PT_GPR15 = 0x88 + PT_GPR2 = 0x20 + PT_GPR3 = 0x28 + PT_GPR4 = 0x30 + PT_GPR5 = 0x38 + PT_GPR6 = 0x40 + PT_GPR7 = 0x48 + PT_GPR8 = 0x50 + PT_GPR9 = 0x58 + PT_IEEE_IP = 0x1a8 + PT_LASTOFF = 0x1a8 + PT_ORIGGPR2 = 0xd0 + PT_PSWADDR = 0x8 + PT_PSWMASK = 0x0 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUSY_POLL = 0x2e + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x62) EADDRNOTAVAIL = syscall.Errno(0x63) EADV = syscall.Errno(0x44) EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x72) EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x4d) EBADMSG = syscall.Errno(0x4a) EBADR = syscall.Errno(0x35) EBADRQC = syscall.Errno(0x38) EBADSLT = syscall.Errno(0x39) EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x2c) ECOMM = syscall.Errno(0x46) ECONNABORTED = syscall.Errno(0x67) @@ -2718,23 +558,15 @@ const ( EDEADLK = syscall.Errno(0x23) EDEADLOCK = syscall.Errno(0x23) EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x49) EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x70) EHOSTUNREACH = syscall.Errno(0x71) EHWPOISON = syscall.Errno(0x85) EIDRM = syscall.Errno(0x2b) EILSEQ = syscall.Errno(0x54) EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x7f) EKEYREJECTED = syscall.Errno(0x81) @@ -2751,8 +583,6 @@ const ( ELNRNG = syscall.Errno(0x30) ELOOP = syscall.Errno(0x28) EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x5a) EMULTIHOP = syscall.Errno(0x48) ENAMETOOLONG = syscall.Errno(0x24) @@ -2760,99 +590,67 @@ const ( ENETDOWN = syscall.Errno(0x64) ENETRESET = syscall.Errno(0x66) ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x37) ENOBUFS = syscall.Errno(0x69) ENOCSI = syscall.Errno(0x32) ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x7e) ENOLCK = syscall.Errno(0x25) ENOLINK = syscall.Errno(0x43) ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x2a) ENONET = syscall.Errno(0x40) ENOPKG = syscall.Errno(0x41) ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x3f) ENOSTR = syscall.Errno(0x3c) ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x27) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x83) ENOTSOCK = syscall.Errno(0x58) ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x5f) EOVERFLOW = syscall.Errno(0x4b) EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) EPROTO = syscall.Errno(0x47) EPROTONOSUPPORT = syscall.Errno(0x5d) EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x4e) EREMOTE = syscall.Errno(0x42) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x55) ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) ESHUTDOWN = syscall.Errno(0x6c) ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x45) ESTALE = syscall.Errno(0x74) ESTRPIPE = syscall.Errno(0x56) ETIME = syscall.Errno(0x3e) ETIMEDOUT = syscall.Errno(0x6e) ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x31) EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x36) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0x7) SIGCHLD = syscall.Signal(0x11) SIGCLD = syscall.Signal(0x11) SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x1d) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTKFLT = syscall.Signal(0x10) SIGSTOP = syscall.Signal(0x13) SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x14) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index a46fc9b43..1f7a68d5c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -11,2695 +11,536 @@ package unix import "syscall" const ( - AAFS_MAGIC = 0x5a3c69f0 - ADFS_SUPER_MAGIC = 0xadf5 - AFFS_SUPER_MAGIC = 0xadff - AFS_FS_MAGIC = 0x6b414653 - AFS_SUPER_MAGIC = 0x5346414f - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2d - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - AF_XDP = 0x2c - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ANON_INODE_FS_MAGIC = 0x9041934 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_RAWIP = 0x207 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - ASI_LEON_DFLUSH = 0x11 - ASI_LEON_IFLUSH = 0x10 - ASI_LEON_MMUFLUSH = 0x18 - AUTOFS_SUPER_MAGIC = 0x187 - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BALLOON_KVM_MAGIC = 0x13661366 - BDEVFS_MAGIC = 0x62646576 - BINDERFS_SUPER_MAGIC = 0x6c6f6f70 - BINFMTFS_MAGIC = 0x42494e4d - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_ALU64 = 0x7 - BPF_AND = 0x50 - BPF_ANY = 0x0 - BPF_ARSH = 0xc0 - BPF_B = 0x10 - BPF_BUILD_ID_SIZE = 0x14 - BPF_CALL = 0x80 - BPF_DEVCG_ACC_MKNOD = 0x1 - BPF_DEVCG_ACC_READ = 0x2 - BPF_DEVCG_ACC_WRITE = 0x4 - BPF_DEVCG_DEV_BLOCK = 0x1 - BPF_DEVCG_DEV_CHAR = 0x2 - BPF_DIV = 0x30 - BPF_DW = 0x18 - BPF_END = 0xd0 - BPF_EXIST = 0x2 - BPF_EXIT = 0x90 - BPF_FROM_BE = 0x8 - BPF_FROM_LE = 0x0 - BPF_FS_MAGIC = 0xcafe4a11 - BPF_F_ALLOW_MULTI = 0x2 - BPF_F_ALLOW_OVERRIDE = 0x1 - BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_CTXLEN_MASK = 0xfffff00000000 - BPF_F_CURRENT_CPU = 0xffffffff - BPF_F_CURRENT_NETNS = -0x1 - BPF_F_DONT_FRAGMENT = 0x4 - BPF_F_FAST_STACK_CMP = 0x200 - BPF_F_HDR_FIELD_MASK = 0xf - BPF_F_INDEX_MASK = 0xffffffff - BPF_F_INGRESS = 0x1 - BPF_F_INVALIDATE_HASH = 0x2 - BPF_F_LOCK = 0x4 - BPF_F_MARK_ENFORCE = 0x40 - BPF_F_MARK_MANGLED_0 = 0x20 - BPF_F_NO_COMMON_LRU = 0x2 - BPF_F_NO_PREALLOC = 0x1 - BPF_F_NUMA_NODE = 0x4 - BPF_F_PSEUDO_HDR = 0x10 - BPF_F_QUERY_EFFECTIVE = 0x1 - BPF_F_RDONLY = 0x8 - BPF_F_RECOMPUTE_CSUM = 0x1 - BPF_F_REUSE_STACKID = 0x400 - BPF_F_SEQ_NUMBER = 0x8 - BPF_F_SKIP_FIELD_MASK = 0xff - BPF_F_STACK_BUILD_ID = 0x20 - BPF_F_STRICT_ALIGNMENT = 0x1 - BPF_F_TUNINFO_IPV6 = 0x1 - BPF_F_USER_BUILD_ID = 0x800 - BPF_F_USER_STACK = 0x100 - BPF_F_WRONLY = 0x10 - BPF_F_ZERO_CSUM_TX = 0x2 - BPF_F_ZERO_SEED = 0x40 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JLE = 0xb0 - BPF_JLT = 0xa0 - BPF_JMP = 0x5 - BPF_JMP32 = 0x6 - BPF_JNE = 0x50 - BPF_JSET = 0x40 - BPF_JSGE = 0x70 - BPF_JSGT = 0x60 - BPF_JSLE = 0xd0 - BPF_JSLT = 0xc0 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MOV = 0xb0 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_NOEXIST = 0x1 - BPF_OBJ_NAME_LEN = 0x10 - BPF_OR = 0x40 - BPF_PSEUDO_CALL = 0x1 - BPF_PSEUDO_MAP_FD = 0x1 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 - BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 - BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 - BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAG_SIZE = 0x8 - BPF_TAX = 0x0 - BPF_TO_BE = 0x8 - BPF_TO_LE = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XADD = 0xc0 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - BTRFS_SUPER_MAGIC = 0x9123683e - BTRFS_TEST_MAGIC = 0x73727279 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CAP_AUDIT_CONTROL = 0x1e - CAP_AUDIT_READ = 0x25 - CAP_AUDIT_WRITE = 0x1d - CAP_BLOCK_SUSPEND = 0x24 - CAP_CHOWN = 0x0 - CAP_DAC_OVERRIDE = 0x1 - CAP_DAC_READ_SEARCH = 0x2 - CAP_FOWNER = 0x3 - CAP_FSETID = 0x4 - CAP_IPC_LOCK = 0xe - CAP_IPC_OWNER = 0xf - CAP_KILL = 0x5 - CAP_LAST_CAP = 0x25 - CAP_LEASE = 0x1c - CAP_LINUX_IMMUTABLE = 0x9 - CAP_MAC_ADMIN = 0x21 - CAP_MAC_OVERRIDE = 0x20 - CAP_MKNOD = 0x1b - CAP_NET_ADMIN = 0xc - CAP_NET_BIND_SERVICE = 0xa - CAP_NET_BROADCAST = 0xb - CAP_NET_RAW = 0xd - CAP_SETFCAP = 0x1f - CAP_SETGID = 0x6 - CAP_SETPCAP = 0x8 - CAP_SETUID = 0x7 - CAP_SYSLOG = 0x22 - CAP_SYS_ADMIN = 0x15 - CAP_SYS_BOOT = 0x16 - CAP_SYS_CHROOT = 0x12 - CAP_SYS_MODULE = 0x10 - CAP_SYS_NICE = 0x17 - CAP_SYS_PACCT = 0x14 - CAP_SYS_PTRACE = 0x13 - CAP_SYS_RAWIO = 0x11 - CAP_SYS_RESOURCE = 0x18 - CAP_SYS_TIME = 0x19 - CAP_SYS_TTY_CONFIG = 0x1a - CAP_WAKE_ALARM = 0x23 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CGROUP2_SUPER_MAGIC = 0x63677270 - CGROUP_SUPER_MAGIC = 0x27e0eb - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CODA_SUPER_MAGIC = 0x73757245 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRAMFS_MAGIC = 0x28cd3d45 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CRYPTO_MAX_NAME = 0x40 - CRYPTO_MSG_MAX = 0x15 - CRYPTO_NR_MSGTYPES = 0x6 - CRYPTO_REPORT_MAXSIZE = 0x160 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DAXFS_MAGIC = 0x64646178 - DEBUGFS_MAGIC = 0x64626720 - DEVPTS_SUPER_MAGIC = 0x1cd1 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - ECRYPTFS_SUPER_MAGIC = 0xf15f - EFD_CLOEXEC = 0x400000 - EFD_NONBLOCK = 0x4000 - EFD_SEMAPHORE = 0x1 - EFIVARFS_MAGIC = 0xde5e81e4 - EFS_SUPER_MAGIC = 0x414a53 - EMT_TAGOVF = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x400000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_ERSPAN = 0x88be - ETH_P_ERSPAN2 = 0x22eb - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IFE = 0xed3e - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MAP = 0xf9 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_NSH = 0x894f - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PREAUTH = 0x88c7 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXABYTE_ENABLE_NEST = 0xf0 - EXT2_SUPER_MAGIC = 0xef53 - EXT3_SUPER_MAGIC = 0xef53 - EXT4_SUPER_MAGIC = 0xef53 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - F2FS_SUPER_MAGIC = 0xf2f52010 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FANOTIFY_METADATA_VERSION = 0x3 - FAN_ACCESS = 0x1 - FAN_ACCESS_PERM = 0x20000 - FAN_ALLOW = 0x1 - FAN_ALL_CLASS_BITS = 0xc - FAN_ALL_EVENTS = 0x3b - FAN_ALL_INIT_FLAGS = 0x3f - FAN_ALL_MARK_FLAGS = 0xff - FAN_ALL_OUTGOING_EVENTS = 0x3403b - FAN_ALL_PERM_EVENTS = 0x30000 - FAN_ATTRIB = 0x4 - FAN_AUDIT = 0x10 - FAN_CLASS_CONTENT = 0x4 - FAN_CLASS_NOTIF = 0x0 - FAN_CLASS_PRE_CONTENT = 0x8 - FAN_CLOEXEC = 0x1 - FAN_CLOSE = 0x18 - FAN_CLOSE_NOWRITE = 0x10 - FAN_CLOSE_WRITE = 0x8 - FAN_CREATE = 0x100 - FAN_DELETE = 0x200 - FAN_DELETE_SELF = 0x400 - FAN_DENY = 0x2 - FAN_ENABLE_AUDIT = 0x40 - FAN_EVENT_INFO_TYPE_FID = 0x1 - FAN_EVENT_METADATA_LEN = 0x18 - FAN_EVENT_ON_CHILD = 0x8000000 - FAN_MARK_ADD = 0x1 - FAN_MARK_DONT_FOLLOW = 0x4 - FAN_MARK_FILESYSTEM = 0x100 - FAN_MARK_FLUSH = 0x80 - FAN_MARK_IGNORED_MASK = 0x20 - FAN_MARK_IGNORED_SURV_MODIFY = 0x40 - FAN_MARK_INODE = 0x0 - FAN_MARK_MOUNT = 0x10 - FAN_MARK_ONLYDIR = 0x8 - FAN_MARK_REMOVE = 0x2 - FAN_MODIFY = 0x2 - FAN_MOVE = 0xc0 - FAN_MOVED_FROM = 0x40 - FAN_MOVED_TO = 0x80 - FAN_MOVE_SELF = 0x800 - FAN_NOFD = -0x1 - FAN_NONBLOCK = 0x2 - FAN_ONDIR = 0x40000000 - FAN_OPEN = 0x20 - FAN_OPEN_EXEC = 0x1000 - FAN_OPEN_EXEC_PERM = 0x40000 - FAN_OPEN_PERM = 0x10000 - FAN_Q_OVERFLOW = 0x4000 - FAN_REPORT_FID = 0x200 - FAN_REPORT_TID = 0x100 - FAN_UNLIMITED_MARKS = 0x20 - FAN_UNLIMITED_QUEUE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_ADIANTUM = 0x9 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 - FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x7 - FUTEXFS_SUPER_MAGIC = 0xbad1dea - F_ADD_SEALS = 0x409 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x7 - F_GETLK64 = 0x7 - F_GETOWN = 0x5 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_GET_FILE_RW_HINT = 0x40d - F_GET_RW_HINT = 0x40b - F_GET_SEALS = 0x40a - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x1 - F_SEAL_GROW = 0x4 - F_SEAL_SEAL = 0x1 - F_SEAL_SHRINK = 0x2 - F_SEAL_WRITE = 0x8 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x8 - F_SETLK64 = 0x8 - F_SETLKW = 0x9 - F_SETLKW64 = 0x9 - F_SETOWN = 0x6 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SET_FILE_RW_HINT = 0x40e - F_SET_RW_HINT = 0x40c - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x3 - F_WRLCK = 0x2 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HDIO_DRIVE_CMD = 0x31f - HDIO_DRIVE_CMD_AEB = 0x31e - HDIO_DRIVE_CMD_HDR_SIZE = 0x4 - HDIO_DRIVE_HOB_HDR_SIZE = 0x8 - HDIO_DRIVE_RESET = 0x31c - HDIO_DRIVE_TASK = 0x31e - HDIO_DRIVE_TASKFILE = 0x31d - HDIO_DRIVE_TASK_HDR_SIZE = 0x8 - HDIO_GETGEO = 0x301 - HDIO_GET_32BIT = 0x309 - HDIO_GET_ACOUSTIC = 0x30f - HDIO_GET_ADDRESS = 0x310 - HDIO_GET_BUSSTATE = 0x31a - HDIO_GET_DMA = 0x30b - HDIO_GET_IDENTITY = 0x30d - HDIO_GET_KEEPSETTINGS = 0x308 - HDIO_GET_MULTCOUNT = 0x304 - HDIO_GET_NICE = 0x30c - HDIO_GET_NOWERR = 0x30a - HDIO_GET_QDMA = 0x305 - HDIO_GET_UNMASKINTR = 0x302 - HDIO_GET_WCACHE = 0x30e - HDIO_OBSOLETE_IDENTITY = 0x307 - HDIO_SCAN_HWIF = 0x328 - HDIO_SET_32BIT = 0x324 - HDIO_SET_ACOUSTIC = 0x32c - HDIO_SET_ADDRESS = 0x32f - HDIO_SET_BUSSTATE = 0x32d - HDIO_SET_DMA = 0x326 - HDIO_SET_KEEPSETTINGS = 0x323 - HDIO_SET_MULTCOUNT = 0x321 - HDIO_SET_NICE = 0x329 - HDIO_SET_NOWERR = 0x325 - HDIO_SET_PIO_MODE = 0x327 - HDIO_SET_QDMA = 0x32e - HDIO_SET_UNMASKINTR = 0x322 - HDIO_SET_WCACHE = 0x32b - HDIO_SET_XFER = 0x306 - HDIO_TRISTATE_HWIF = 0x31b - HDIO_UNREGISTER_HWIF = 0x32a - HOSTFS_SUPER_MAGIC = 0xc0ffee - HPFS_SUPER_MAGIC = 0xf995e849 - HUGETLBFS_MAGIC = 0x958458f6 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0xa - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NAPI = 0x10 - IFF_NAPI_FRAGS = 0x20 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x400000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MASK_CREATE = 0x10000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x4000 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_FREEBIND = 0x4e - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_ALL = 0x1d - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISOFS_SUPER_MAGIC = 0x9660 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - JFFS2_SUPER_MAGIC = 0x72b6 - KEXEC_ARCH_386 = 0x30000 - KEXEC_ARCH_68K = 0x40000 - KEXEC_ARCH_AARCH64 = 0xb70000 - KEXEC_ARCH_ARM = 0x280000 - KEXEC_ARCH_DEFAULT = 0x0 - KEXEC_ARCH_IA_64 = 0x320000 - KEXEC_ARCH_MASK = 0xffff0000 - KEXEC_ARCH_MIPS = 0x80000 - KEXEC_ARCH_MIPS_LE = 0xa0000 - KEXEC_ARCH_PPC = 0x140000 - KEXEC_ARCH_PPC64 = 0x150000 - KEXEC_ARCH_S390 = 0x160000 - KEXEC_ARCH_SH = 0x2a0000 - KEXEC_ARCH_X86_64 = 0x3e0000 - KEXEC_FILE_NO_INITRAMFS = 0x4 - KEXEC_FILE_ON_CRASH = 0x2 - KEXEC_FILE_UNLOAD = 0x1 - KEXEC_ON_CRASH = 0x1 - KEXEC_PRESERVE_CONTEXT = 0x2 - KEXEC_SEGMENT_MAX = 0x10 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_PKEY_DECRYPT = 0x1a - KEYCTL_PKEY_ENCRYPT = 0x19 - KEYCTL_PKEY_QUERY = 0x18 - KEYCTL_PKEY_SIGN = 0x1b - KEYCTL_PKEY_VERIFY = 0x1c - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_SUPPORTS_DECRYPT = 0x2 - KEYCTL_SUPPORTS_ENCRYPT = 0x1 - KEYCTL_SUPPORTS_SIGN = 0x4 - KEYCTL_SUPPORTS_VERIFY = 0x8 - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_KEEPONFORK = 0x13 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MADV_WIPEONFORK = 0x12 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FIXED_NOREPLACE = 0x100000 - MAP_GROWSDOWN = 0x200 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x100 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x40 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_SHARED_VALIDATE = 0x3 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCAST_BLOCK_SOURCE = 0x2b - MCAST_EXCLUDE = 0x0 - MCAST_INCLUDE = 0x1 - MCAST_JOIN_GROUP = 0x2a - MCAST_JOIN_SOURCE_GROUP = 0x2e - MCAST_LEAVE_GROUP = 0x2d - MCAST_LEAVE_SOURCE_GROUP = 0x2f - MCAST_MSFILTER = 0x30 - MCAST_UNBLOCK_SOURCE = 0x2c - MCL_CURRENT = 0x2000 - MCL_FUTURE = 0x4000 - MCL_ONFAULT = 0x8000 - MFD_ALLOW_SEALING = 0x2 - MFD_CLOEXEC = 0x1 - MFD_HUGETLB = 0x4 - MFD_HUGE_16GB = -0x78000000 - MFD_HUGE_16MB = 0x60000000 - MFD_HUGE_1GB = 0x78000000 - MFD_HUGE_1MB = 0x50000000 - MFD_HUGE_256MB = 0x70000000 - MFD_HUGE_2GB = 0x7c000000 - MFD_HUGE_2MB = 0x54000000 - MFD_HUGE_32MB = 0x64000000 - MFD_HUGE_512KB = 0x4c000000 - MFD_HUGE_512MB = 0x74000000 - MFD_HUGE_64KB = 0x40000000 - MFD_HUGE_8MB = 0x5c000000 - MFD_HUGE_MASK = 0x3f - MFD_HUGE_SHIFT = 0x1a - MINIX2_SUPER_MAGIC = 0x2468 - MINIX2_SUPER_MAGIC2 = 0x2478 - MINIX3_SUPER_MAGIC = 0x4d5a - MINIX_SUPER_MAGIC = 0x137f - MINIX_SUPER_MAGIC2 = 0x138f - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MODULE_INIT_IGNORE_MODVERSIONS = 0x1 - MODULE_INIT_IGNORE_VERMAGIC = 0x2 - MSDOS_SUPER_MAGIC = 0x4d44 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MSG_ZEROCOPY = 0x4000000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - MTD_INODE_FS_MAGIC = 0x11307854 - NAME_MAX = 0xff - NCP_SUPER_MAGIC = 0x564c - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_GET_STRICT_CHK = 0xc - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NETNSA_MAX = 0x5 - NETNSA_NSID_NOT_ASSIGNED = -0x1 - NFNETLINK_V0 = 0x0 - NFNLGRP_ACCT_QUOTA = 0x8 - NFNLGRP_CONNTRACK_DESTROY = 0x3 - NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 - NFNLGRP_CONNTRACK_EXP_NEW = 0x4 - NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 - NFNLGRP_CONNTRACK_NEW = 0x1 - NFNLGRP_CONNTRACK_UPDATE = 0x2 - NFNLGRP_MAX = 0x9 - NFNLGRP_NFTABLES = 0x7 - NFNLGRP_NFTRACE = 0x9 - NFNLGRP_NONE = 0x0 - NFNL_BATCH_MAX = 0x1 - NFNL_MSG_BATCH_BEGIN = 0x10 - NFNL_MSG_BATCH_END = 0x11 - NFNL_NFA_NEST = 0x8000 - NFNL_SUBSYS_ACCT = 0x7 - NFNL_SUBSYS_COUNT = 0xc - NFNL_SUBSYS_CTHELPER = 0x9 - NFNL_SUBSYS_CTNETLINK = 0x1 - NFNL_SUBSYS_CTNETLINK_EXP = 0x2 - NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 - NFNL_SUBSYS_IPSET = 0x6 - NFNL_SUBSYS_NFTABLES = 0xa - NFNL_SUBSYS_NFT_COMPAT = 0xb - NFNL_SUBSYS_NONE = 0x0 - NFNL_SUBSYS_OSF = 0x5 - NFNL_SUBSYS_QUEUE = 0x3 - NFNL_SUBSYS_ULOG = 0x4 - NFS_SUPER_MAGIC = 0x6969 - NILFS_SUPER_MAGIC = 0x3434 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_NONREC = 0x100 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - NSFS_MAGIC = 0x6e736673 - OCFS2_SUPER_MAGIC = 0x7461636f - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENPROM_SUPER_MAGIC = 0x9fa1 - OPOST = 0x1 - OVERLAYFS_SUPER_MAGIC = 0x794c7630 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x400000 - O_CREAT = 0x200 - O_DIRECT = 0x100000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x2000 - O_EXCL = 0x800 - O_FSYNC = 0x802000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x4004 - O_NOATIME = 0x200000 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x4000 - O_PATH = 0x1000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x802000 - O_SYNC = 0x802000 - O_TMPFILE = 0x2010000 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_IGNORE_OUTGOING = 0x17 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_QUERY_BPF = 0xc008240a - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PIPEFS_MAGIC = 0x50495045 - PPPIOCATTACH = 0x8004743d - PPPIOCATTCHAN = 0x80047438 - PPPIOCCONNECT = 0x8004743a - PPPIOCDETACH = 0x8004743c - PPPIOCDISCONN = 0x20007439 - PPPIOCGASYNCMAP = 0x40047458 - PPPIOCGCHAN = 0x40047437 - PPPIOCGDEBUG = 0x40047441 - PPPIOCGFLAGS = 0x4004745a - PPPIOCGIDLE = 0x4010743f - PPPIOCGL2TPSTATS = 0x40487436 - PPPIOCGMRU = 0x40047453 - PPPIOCGNPMODE = 0xc008744c - PPPIOCGRASYNCMAP = 0x40047455 - PPPIOCGUNIT = 0x40047456 - PPPIOCGXASYNCMAP = 0x40207450 - PPPIOCNEWUNIT = 0xc004743e - PPPIOCSACTIVE = 0x80107446 - PPPIOCSASYNCMAP = 0x80047457 - PPPIOCSCOMPRESS = 0x8010744d - PPPIOCSDEBUG = 0x80047440 - PPPIOCSFLAGS = 0x80047459 - PPPIOCSMAXCID = 0x80047451 - PPPIOCSMRRU = 0x8004743b - PPPIOCSMRU = 0x80047452 - PPPIOCSNPMODE = 0x8008744b - PPPIOCSPASS = 0x80107447 - PPPIOCSRASYNCMAP = 0x80047454 - PPPIOCSXASYNCMAP = 0x8020744f - PPPIOCXFERUNIT = 0x2000744e - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROC_SUPER_MAGIC = 0x9fa0 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_SPECULATION_CTRL = 0x34 - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_PAC_APDAKEY = 0x4 - PR_PAC_APDBKEY = 0x8 - PR_PAC_APGAKEY = 0x10 - PR_PAC_APIAKEY = 0x1 - PR_PAC_APIBKEY = 0x2 - PR_PAC_RESET_KEYS = 0x36 - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_SPECULATION_CTRL = 0x35 - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_SPEC_DISABLE = 0x4 - PR_SPEC_DISABLE_NOEXEC = 0x10 - PR_SPEC_ENABLE = 0x2 - PR_SPEC_FORCE_DISABLE = 0x8 - PR_SPEC_INDIRECT_BRANCH = 0x1 - PR_SPEC_NOT_AFFECTED = 0x0 - PR_SPEC_PRCTL = 0x1 - PR_SPEC_STORE_BYPASS = 0x0 - PR_SVE_GET_VL = 0x33 - PR_SVE_SET_VL = 0x32 - PR_SVE_SET_VL_ONEXEC = 0x40000 - PR_SVE_VL_INHERIT = 0x20000 - PR_SVE_VL_LEN_MASK = 0xffff - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PSTOREFS_MAGIC = 0x6165676c - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPAREGS = 0x14 - PTRACE_GETFPREGS = 0xe - PTRACE_GETFPREGS64 = 0x19 - PTRACE_GETREGS = 0xc - PTRACE_GETREGS64 = 0x16 - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_READDATA = 0x10 - PTRACE_READTEXT = 0x12 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SECCOMP_GET_METADATA = 0x420d - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPAREGS = 0x15 - PTRACE_SETFPREGS = 0xf - PTRACE_SETFPREGS64 = 0x1a - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGS64 = 0x17 - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SINGLESTEP = 0x9 - PTRACE_SPARC_DETACH = 0xb - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - PTRACE_WRITEDATA = 0x11 - PTRACE_WRITETEXT = 0x13 - PT_FP = 0x48 - PT_G0 = 0x10 - PT_G1 = 0x14 - PT_G2 = 0x18 - PT_G3 = 0x1c - PT_G4 = 0x20 - PT_G5 = 0x24 - PT_G6 = 0x28 - PT_G7 = 0x2c - PT_I0 = 0x30 - PT_I1 = 0x34 - PT_I2 = 0x38 - PT_I3 = 0x3c - PT_I4 = 0x40 - PT_I5 = 0x44 - PT_I6 = 0x48 - PT_I7 = 0x4c - PT_NPC = 0x8 - PT_PC = 0x4 - PT_PSR = 0x0 - PT_REGS_MAGIC = 0x57ac6c00 - PT_TNPC = 0x90 - PT_TPC = 0x88 - PT_TSTATE = 0x80 - PT_V9_FP = 0x70 - PT_V9_G0 = 0x0 - PT_V9_G1 = 0x8 - PT_V9_G2 = 0x10 - PT_V9_G3 = 0x18 - PT_V9_G4 = 0x20 - PT_V9_G5 = 0x28 - PT_V9_G6 = 0x30 - PT_V9_G7 = 0x38 - PT_V9_I0 = 0x40 - PT_V9_I1 = 0x48 - PT_V9_I2 = 0x50 - PT_V9_I3 = 0x58 - PT_V9_I4 = 0x60 - PT_V9_I5 = 0x68 - PT_V9_I6 = 0x70 - PT_V9_I7 = 0x78 - PT_V9_MAGIC = 0x9c - PT_V9_TNPC = 0x90 - PT_V9_TPC = 0x88 - PT_V9_TSTATE = 0x80 - PT_V9_Y = 0x98 - PT_WIM = 0x10 - PT_Y = 0xc - QNX4_SUPER_MAGIC = 0x2f - QNX6_SUPER_MAGIC = 0x68191122 - RAMFS_MAGIC = 0x858458f6 - RDTGROUP_SUPER_MAGIC = 0x7655821 - REISERFS_SUPER_MAGIC = 0x52654973 - RENAME_EXCHANGE = 0x2 - RENAME_NOREPLACE = 0x1 - RENAME_WHITEOUT = 0x4 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x6 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RNDADDENTROPY = 0x80085203 - RNDADDTOENTCNT = 0x80045201 - RNDCLEARPOOL = 0x20005206 - RNDGETENTCNT = 0x40045200 - RNDGETPOOL = 0x40085202 - RNDRESEEDCRNG = 0x20005207 - RNDZAPENTCNT = 0x20005204 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FASTOPEN_NO_COOKIE = 0x11 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x11 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTC_AF = 0x20 - RTC_AIE_OFF = 0x20007002 - RTC_AIE_ON = 0x20007001 - RTC_ALM_READ = 0x40247008 - RTC_ALM_SET = 0x80247007 - RTC_EPOCH_READ = 0x4008700d - RTC_EPOCH_SET = 0x8008700e - RTC_IRQF = 0x80 - RTC_IRQP_READ = 0x4008700b - RTC_IRQP_SET = 0x8008700c - RTC_MAX_FREQ = 0x2000 - RTC_PF = 0x40 - RTC_PIE_OFF = 0x20007006 - RTC_PIE_ON = 0x20007005 - RTC_PLL_GET = 0x40207011 - RTC_PLL_SET = 0x80207012 - RTC_RD_TIME = 0x40247009 - RTC_SET_TIME = 0x8024700a - RTC_UF = 0x10 - RTC_UIE_OFF = 0x20007004 - RTC_UIE_ON = 0x20007003 - RTC_VL_CLR = 0x20007014 - RTC_VL_READ = 0x40047013 - RTC_WIE_OFF = 0x20007010 - RTC_WIE_ON = 0x2000700f - RTC_WKALM_RD = 0x40287010 - RTC_WKALM_SET = 0x8028700f - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELCHAIN = 0x65 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETCHAIN = 0x66 - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWCHAIN = 0x64 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BGP = 0xba - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_EIGRP = 0xc0 - RTPROT_GATED = 0x8 - RTPROT_ISIS = 0xbb - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_OSPF = 0xbc - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_RIP = 0xbd - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x23 - SCM_TIMESTAMPING_OPT_STATS = 0x38 - SCM_TIMESTAMPING_PKTINFO = 0x3c - SCM_TIMESTAMPNS = 0x21 - SCM_TXTIME = 0x3f - SCM_WIFI_STATUS = 0x25 - SC_LOG_FLUSH = 0x100000 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SECURITYFS_MAGIC = 0x73636673 - SELINUX_MAGIC = 0xf97cff8c - SFD_CLOEXEC = 0x400000 - SFD_NONBLOCK = 0x4000 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGPPPCSTATS = 0x89f2 - SIOCGPPPSTATS = 0x89f0 - SIOCGPPPVER = 0x89f1 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x4004667f - SIOCOUTQ = 0x40047473 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SMACK_MAGIC = 0x43415d53 - SMART_AUTOSAVE = 0xd2 - SMART_AUTO_OFFLINE = 0xdb - SMART_DISABLE = 0xd9 - SMART_ENABLE = 0xd8 - SMART_HCYL_PASS = 0xc2 - SMART_IMMEDIATE_OFFLINE = 0xd4 - SMART_LCYL_PASS = 0x4f - SMART_READ_LOG_SECTOR = 0xd5 - SMART_READ_THRESHOLDS = 0xd1 - SMART_READ_VALUES = 0xd0 - SMART_SAVE = 0xd3 - SMART_STATUS = 0xda - SMART_WRITE_LOG_SECTOR = 0xd6 - SMART_WRITE_THRESHOLDS = 0xd7 - SMB_SUPER_MAGIC = 0x517b - SOCKFS_MAGIC = 0x534f434b - SOCK_CLOEXEC = 0x400000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x4000 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_TLS = 0x11a - SOL_X25 = 0x106 - SOL_XDP = 0x11b - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x8000 - SO_ATTACH_BPF = 0x34 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x35 - SO_ATTACH_REUSEPORT_EBPF = 0x36 - SO_BINDTODEVICE = 0xd - SO_BINDTOIFINDEX = 0x41 - SO_BPF_EXTENSIONS = 0x32 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0x400 - SO_BUSY_POLL = 0x30 - SO_CNX_ADVICE = 0x37 - SO_COOKIE = 0x3b - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 - SO_EE_CODE_TXTIME_MISSED = 0x2 - SO_EE_CODE_ZEROCOPY_COPIED = 0x1 - SO_EE_ORIGIN_ICMP = 0x2 - SO_EE_ORIGIN_ICMP6 = 0x3 - SO_EE_ORIGIN_LOCAL = 0x1 - SO_EE_ORIGIN_NONE = 0x0 - SO_EE_ORIGIN_TIMESTAMPING = 0x4 - SO_EE_ORIGIN_TXSTATUS = 0x4 - SO_EE_ORIGIN_TXTIME = 0x6 - SO_EE_ORIGIN_ZEROCOPY = 0x5 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x33 - SO_INCOMING_NAPI_ID = 0x3a - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x28 - SO_MARK = 0x22 - SO_MAX_PACING_RATE = 0x31 - SO_MEMINFO = 0x39 - SO_NOFCS = 0x27 - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x2 - SO_PASSSEC = 0x1f - SO_PEEK_OFF = 0x26 - SO_PEERCRED = 0x40 - SO_PEERGROUPS = 0x3d - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x100b - SO_RCVLOWAT = 0x800 - SO_RCVTIMEO = 0x2000 - SO_RCVTIMEO_NEW = 0x44 - SO_RCVTIMEO_OLD = 0x2000 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x24 - SO_SECURITY_AUTHENTICATION = 0x5001 - SO_SECURITY_ENCRYPTION_NETWORK = 0x5004 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x5002 - SO_SELECT_ERR_QUEUE = 0x29 - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x100a - SO_SNDLOWAT = 0x1000 - SO_SNDTIMEO = 0x4000 - SO_SNDTIMEO_NEW = 0x45 - SO_SNDTIMEO_OLD = 0x4000 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x23 - SO_TIMESTAMPING_NEW = 0x43 - SO_TIMESTAMPING_OLD = 0x23 - SO_TIMESTAMPNS = 0x21 - SO_TIMESTAMPNS_NEW = 0x42 - SO_TIMESTAMPNS_OLD = 0x21 - SO_TIMESTAMP_NEW = 0x46 - SO_TIMESTAMP_OLD = 0x1d - SO_TXTIME = 0x3f - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x25 - SO_ZEROCOPY = 0x3e - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - SQUASHFS_MAGIC = 0x73717368 - STACK_END_MAGIC = 0x57ac6e9d - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - SYNC_FILE_RANGE_WAIT_AFTER = 0x4 - SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 - SYNC_FILE_RANGE_WRITE = 0x2 - SYSFS_MAGIC = 0x62656572 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x9 - TCFLSH = 0x20005407 - TCGETA = 0x40125401 - TCGETS = 0x40245408 - TCGETS2 = 0x402c540c - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_BPF_IW = 0x3e9 - TCP_BPF_SNDCWND_CLAMP = 0x3ea - TCP_CC_INFO = 0x1a - TCP_CM_INQ = 0x24 - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_FASTOPEN_KEY = 0x21 - TCP_FASTOPEN_NO_COOKIE = 0x22 - TCP_INFO = 0xb - TCP_INQ = 0x24 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_EXT = 0x20 - TCP_MD5SIG_FLAG_PREFIX = 0x1 - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OFF = 0x0 - TCP_REPAIR_OFF_NO_WP = -0x1 - TCP_REPAIR_ON = 0x1 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_ULP = 0x1f - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCP_ZEROCOPY_RECEIVE = 0x23 - TCSAFLUSH = 0x2 - TCSBRK = 0x20005405 - TCSBRKP = 0x5425 - TCSETA = 0x80125402 - TCSETAF = 0x80125404 - TCSETAW = 0x80125403 - TCSETS = 0x80245409 - TCSETS2 = 0x802c540d - TCSETSF = 0x8024540b - TCSETSF2 = 0x802c540f - TCSETSW = 0x8024540a - TCSETSW2 = 0x802c540e - TCXONC = 0x20005406 - TIMER_ABSTIME = 0x1 - TIOCCBRK = 0x2000747a - TIOCCONS = 0x20007424 - TIOCEXCL = 0x2000740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x40047400 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x545d - TIOCGISO7816 = 0x40285443 - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x40047483 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40047486 - TIOCGPTPEER = 0x20007489 - TIOCGRS485 = 0x40205441 - TIOCGSERIAL = 0x541e - TIOCGSID = 0x40047485 - TIOCGSOFTCAR = 0x40047464 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x4004667f - TIOCLINUX = 0x541c - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMIWAIT = 0x545c - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007484 - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSETD = 0x80047401 - TIOCSIG = 0x80047488 - TIOCSISO7816 = 0xc0285444 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x80047482 - TIOCSPTLCK = 0x80047487 - TIOCSRS485 = 0xc0205442 - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x80047465 - TIOCSTART = 0x2000746e - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x20005437 - TMPFS_MAGIC = 0x1021994 - TOSTOP = 0x100 - TPACKET_ALIGNMENT = 0x10 - TPACKET_HDRLEN = 0x34 - TP_STATUS_AVAILABLE = 0x0 - TP_STATUS_BLK_TMO = 0x20 - TP_STATUS_COPY = 0x2 - TP_STATUS_CSUMNOTREADY = 0x8 - TP_STATUS_CSUM_VALID = 0x80 - TP_STATUS_KERNEL = 0x0 - TP_STATUS_LOSING = 0x4 - TP_STATUS_SENDING = 0x2 - TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 - TP_STATUS_TS_SOFTWARE = 0x20000000 - TP_STATUS_TS_SYS_HARDWARE = 0x40000000 - TP_STATUS_USER = 0x1 - TP_STATUS_VLAN_TPID_VALID = 0x40 - TP_STATUS_VLAN_VALID = 0x10 - TP_STATUS_WRONG_FORMAT = 0x4 - TRACEFS_MAGIC = 0x74726163 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETCARRIER = 0x800454e2 - TUNSETDEBUG = 0x800454c9 - TUNSETFILTEREBPF = 0x400454e1 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETSTEERINGEBPF = 0x400454e0 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UBI_IOCATT = 0x80186f40 - UBI_IOCDET = 0x80046f41 - UBI_IOCEBCH = 0x80044f02 - UBI_IOCEBER = 0x80044f01 - UBI_IOCEBISMAP = 0x40044f05 - UBI_IOCEBMAP = 0x80084f03 - UBI_IOCEBUNMAP = 0x80044f04 - UBI_IOCMKVOL = 0x80986f00 - UBI_IOCRMVOL = 0x80046f01 - UBI_IOCRNVOL = 0x91106f03 - UBI_IOCRPEB = 0x80046f04 - UBI_IOCRSVOL = 0x800c6f02 - UBI_IOCSETVOLPROP = 0x80104f06 - UBI_IOCSPEB = 0x80046f05 - UBI_IOCVOLCRBLK = 0x80804f07 - UBI_IOCVOLRMBLK = 0x20004f08 - UBI_IOCVOLUP = 0x80084f00 - UDF_SUPER_MAGIC = 0x15013346 - UMOUNT_NOFOLLOW = 0x8 - USBDEVICE_SUPER_MAGIC = 0x9fa2 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - V9FS_MAGIC = 0x1021997 - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WIN_ACKMEDIACHANGE = 0xdb - WIN_CHECKPOWERMODE1 = 0xe5 - WIN_CHECKPOWERMODE2 = 0x98 - WIN_DEVICE_RESET = 0x8 - WIN_DIAGNOSE = 0x90 - WIN_DOORLOCK = 0xde - WIN_DOORUNLOCK = 0xdf - WIN_DOWNLOAD_MICROCODE = 0x92 - WIN_FLUSH_CACHE = 0xe7 - WIN_FLUSH_CACHE_EXT = 0xea - WIN_FORMAT = 0x50 - WIN_GETMEDIASTATUS = 0xda - WIN_IDENTIFY = 0xec - WIN_IDENTIFY_DMA = 0xee - WIN_IDLEIMMEDIATE = 0xe1 - WIN_INIT = 0x60 - WIN_MEDIAEJECT = 0xed - WIN_MULTREAD = 0xc4 - WIN_MULTREAD_EXT = 0x29 - WIN_MULTWRITE = 0xc5 - WIN_MULTWRITE_EXT = 0x39 - WIN_NOP = 0x0 - WIN_PACKETCMD = 0xa0 - WIN_PIDENTIFY = 0xa1 - WIN_POSTBOOT = 0xdc - WIN_PREBOOT = 0xdd - WIN_QUEUED_SERVICE = 0xa2 - WIN_READ = 0x20 - WIN_READDMA = 0xc8 - WIN_READDMA_EXT = 0x25 - WIN_READDMA_ONCE = 0xc9 - WIN_READDMA_QUEUED = 0xc7 - WIN_READDMA_QUEUED_EXT = 0x26 - WIN_READ_BUFFER = 0xe4 - WIN_READ_EXT = 0x24 - WIN_READ_LONG = 0x22 - WIN_READ_LONG_ONCE = 0x23 - WIN_READ_NATIVE_MAX = 0xf8 - WIN_READ_NATIVE_MAX_EXT = 0x27 - WIN_READ_ONCE = 0x21 - WIN_RECAL = 0x10 - WIN_RESTORE = 0x10 - WIN_SECURITY_DISABLE = 0xf6 - WIN_SECURITY_ERASE_PREPARE = 0xf3 - WIN_SECURITY_ERASE_UNIT = 0xf4 - WIN_SECURITY_FREEZE_LOCK = 0xf5 - WIN_SECURITY_SET_PASS = 0xf1 - WIN_SECURITY_UNLOCK = 0xf2 - WIN_SEEK = 0x70 - WIN_SETFEATURES = 0xef - WIN_SETIDLE1 = 0xe3 - WIN_SETIDLE2 = 0x97 - WIN_SETMULT = 0xc6 - WIN_SET_MAX = 0xf9 - WIN_SET_MAX_EXT = 0x37 - WIN_SLEEPNOW1 = 0xe6 - WIN_SLEEPNOW2 = 0x99 - WIN_SMART = 0xb0 - WIN_SPECIFY = 0x91 - WIN_SRST = 0x8 - WIN_STANDBY = 0xe2 - WIN_STANDBY2 = 0x96 - WIN_STANDBYNOW1 = 0xe0 - WIN_STANDBYNOW2 = 0x94 - WIN_VERIFY = 0x40 - WIN_VERIFY_EXT = 0x42 - WIN_VERIFY_ONCE = 0x41 - WIN_WRITE = 0x30 - WIN_WRITEDMA = 0xca - WIN_WRITEDMA_EXT = 0x35 - WIN_WRITEDMA_ONCE = 0xcb - WIN_WRITEDMA_QUEUED = 0xcc - WIN_WRITEDMA_QUEUED_EXT = 0x36 - WIN_WRITE_BUFFER = 0xe8 - WIN_WRITE_EXT = 0x34 - WIN_WRITE_LONG = 0x32 - WIN_WRITE_LONG_ONCE = 0x33 - WIN_WRITE_ONCE = 0x31 - WIN_WRITE_SAME = 0xe9 - WIN_WRITE_VERIFY = 0x3c - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XDP_COPY = 0x2 - XDP_FLAGS_DRV_MODE = 0x4 - XDP_FLAGS_HW_MODE = 0x8 - XDP_FLAGS_MASK = 0xf - XDP_FLAGS_MODES = 0xe - XDP_FLAGS_SKB_MODE = 0x2 - XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 - XDP_MMAP_OFFSETS = 0x1 - XDP_PACKET_HEADROOM = 0x100 - XDP_PGOFF_RX_RING = 0x0 - XDP_PGOFF_TX_RING = 0x80000000 - XDP_RX_RING = 0x2 - XDP_SHARED_UMEM = 0x1 - XDP_STATISTICS = 0x7 - XDP_TX_RING = 0x3 - XDP_UMEM_COMPLETION_RING = 0x6 - XDP_UMEM_FILL_RING = 0x5 - XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 - XDP_UMEM_PGOFF_FILL_RING = 0x100000000 - XDP_UMEM_REG = 0x4 - XDP_ZEROCOPY = 0x4 - XENFS_SUPER_MAGIC = 0xabba1974 - XFS_SUPER_MAGIC = 0x58465342 - XTABS = 0x1800 - ZSMALLOC_MAGIC = 0x58295829 - __TIOCFLUSH = 0x80047410 + ASI_LEON_DFLUSH = 0x11 + ASI_LEON_IFLUSH = 0x10 + ASI_LEON_MMUFLUSH = 0x18 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x400000 + EFD_NONBLOCK = 0x4000 + EMT_TAGOVF = 0x1 + EPOLL_CLOEXEC = 0x400000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FLUSHO = 0x1000 + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x7 + F_GETLK64 = 0x7 + F_GETOWN = 0x5 + F_RDLCK = 0x1 + F_SETLK = 0x8 + F_SETLK64 = 0x8 + F_SETLKW = 0x9 + F_SETLKW64 = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x3 + F_WRLCK = 0x2 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x400000 + IN_NONBLOCK = 0x4000 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x200 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x100 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x40 + MAP_POPULATE = 0x8000 + MAP_RENAME = 0x20 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x2000 + MCL_FUTURE = 0x4000 + MCL_ONFAULT = 0x8000 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x400000 + O_CREAT = 0x200 + O_DIRECT = 0x100000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x2000 + O_EXCL = 0x800 + O_FSYNC = 0x802000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x4004 + O_NOATIME = 0x200000 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x4000 + O_PATH = 0x1000000 + O_RSYNC = 0x802000 + O_SYNC = 0x802000 + O_TMPFILE = 0x2010000 + O_TRUNC = 0x400 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETFPAREGS = 0x14 + PTRACE_GETFPREGS = 0xe + PTRACE_GETFPREGS64 = 0x19 + PTRACE_GETREGS64 = 0x16 + PTRACE_READDATA = 0x10 + PTRACE_READTEXT = 0x12 + PTRACE_SETFPAREGS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETFPREGS64 = 0x1a + PTRACE_SETREGS64 = 0x17 + PTRACE_SPARC_DETACH = 0xb + PTRACE_WRITEDATA = 0x11 + PTRACE_WRITETEXT = 0x13 + PT_FP = 0x48 + PT_G0 = 0x10 + PT_G1 = 0x14 + PT_G2 = 0x18 + PT_G3 = 0x1c + PT_G4 = 0x20 + PT_G5 = 0x24 + PT_G6 = 0x28 + PT_G7 = 0x2c + PT_I0 = 0x30 + PT_I1 = 0x34 + PT_I2 = 0x38 + PT_I3 = 0x3c + PT_I4 = 0x40 + PT_I5 = 0x44 + PT_I6 = 0x48 + PT_I7 = 0x4c + PT_NPC = 0x8 + PT_PC = 0x4 + PT_PSR = 0x0 + PT_REGS_MAGIC = 0x57ac6c00 + PT_TNPC = 0x90 + PT_TPC = 0x88 + PT_TSTATE = 0x80 + PT_V9_FP = 0x70 + PT_V9_G0 = 0x0 + PT_V9_G1 = 0x8 + PT_V9_G2 = 0x10 + PT_V9_G3 = 0x18 + PT_V9_G4 = 0x20 + PT_V9_G5 = 0x28 + PT_V9_G6 = 0x30 + PT_V9_G7 = 0x38 + PT_V9_I0 = 0x40 + PT_V9_I1 = 0x48 + PT_V9_I2 = 0x50 + PT_V9_I3 = 0x58 + PT_V9_I4 = 0x60 + PT_V9_I5 = 0x68 + PT_V9_I6 = 0x70 + PT_V9_I7 = 0x78 + PT_V9_MAGIC = 0x9c + PT_V9_TNPC = 0x90 + PT_V9_TPC = 0x88 + PT_V9_TSTATE = 0x80 + PT_V9_Y = 0x98 + PT_WIM = 0x10 + PT_Y = 0xc + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x6 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x23 + SCM_TIMESTAMPING_OPT_STATS = 0x38 + SCM_TIMESTAMPING_PKTINFO = 0x3c + SCM_TIMESTAMPNS = 0x21 + SCM_TXTIME = 0x3f + SCM_WIFI_STATUS = 0x25 + SFD_CLOEXEC = 0x400000 + SFD_NONBLOCK = 0x4000 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x4004667f + SIOCOUTQ = 0x40047473 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x400000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x4000 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x8000 + SO_ATTACH_BPF = 0x34 + SO_ATTACH_REUSEPORT_CBPF = 0x35 + SO_ATTACH_REUSEPORT_EBPF = 0x36 + SO_BINDTODEVICE = 0xd + SO_BINDTOIFINDEX = 0x41 + SO_BPF_EXTENSIONS = 0x32 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0x400 + SO_BUSY_POLL = 0x30 + SO_CNX_ADVICE = 0x37 + SO_COOKIE = 0x3b + SO_DETACH_REUSEPORT_BPF = 0x47 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x33 + SO_INCOMING_NAPI_ID = 0x3a + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x28 + SO_MARK = 0x22 + SO_MAX_PACING_RATE = 0x31 + SO_MEMINFO = 0x39 + SO_NOFCS = 0x27 + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x2 + SO_PASSSEC = 0x1f + SO_PEEK_OFF = 0x26 + SO_PEERCRED = 0x40 + SO_PEERGROUPS = 0x3d + SO_PEERSEC = 0x1e + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x100b + SO_RCVLOWAT = 0x800 + SO_RCVTIMEO = 0x2000 + SO_RCVTIMEO_NEW = 0x44 + SO_RCVTIMEO_OLD = 0x2000 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x24 + SO_SECURITY_AUTHENTICATION = 0x5001 + SO_SECURITY_ENCRYPTION_NETWORK = 0x5004 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x5002 + SO_SELECT_ERR_QUEUE = 0x29 + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x100a + SO_SNDLOWAT = 0x1000 + SO_SNDTIMEO = 0x4000 + SO_SNDTIMEO_NEW = 0x45 + SO_SNDTIMEO_OLD = 0x4000 + SO_TIMESTAMPING = 0x23 + SO_TIMESTAMPING_NEW = 0x43 + SO_TIMESTAMPING_OLD = 0x23 + SO_TIMESTAMPNS = 0x21 + SO_TIMESTAMPNS_NEW = 0x42 + SO_TIMESTAMPNS_OLD = 0x21 + SO_TIMESTAMP_NEW = 0x46 + SO_TXTIME = 0x3f + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x25 + SO_ZEROCOPY = 0x3e + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x20005407 + TCGETA = 0x40125401 + TCGETS = 0x40245408 + TCGETS2 = 0x402c540c + TCSAFLUSH = 0x2 + TCSBRK = 0x20005405 + TCSBRKP = 0x5425 + TCSETA = 0x80125402 + TCSETAF = 0x80125404 + TCSETAW = 0x80125403 + TCSETS = 0x80245409 + TCSETS2 = 0x802c540d + TCSETSF = 0x8024540b + TCSETSF2 = 0x802c540f + TCSETSW = 0x8024540a + TCSETSW2 = 0x802c540e + TCXONC = 0x20005406 + TIOCCBRK = 0x2000747a + TIOCCONS = 0x20007424 + TIOCEXCL = 0x2000740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x40047400 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x40285443 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x40047483 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40047486 + TIOCGPTPEER = 0x20007489 + TIOCGRS485 = 0x40205441 + TIOCGSERIAL = 0x541e + TIOCGSID = 0x40047485 + TIOCGSOFTCAR = 0x40047464 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x4004667f + TIOCLINUX = 0x541c + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMIWAIT = 0x545c + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007484 + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSETD = 0x80047401 + TIOCSIG = 0x80047488 + TIOCSISO7816 = 0xc0285444 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x80047482 + TIOCSPTLCK = 0x80047487 + TIOCSRS485 = 0xc0205442 + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x80047465 + TIOCSTART = 0x2000746e + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x20005437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + __TIOCFLUSH = 0x80047410 ) // Errors const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x30) EADDRNOTAVAIL = syscall.Errno(0x31) EADV = syscall.Errno(0x53) EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0xb) EALREADY = syscall.Errno(0x25) EBADE = syscall.Errno(0x66) - EBADF = syscall.Errno(0x9) EBADFD = syscall.Errno(0x5d) EBADMSG = syscall.Errno(0x4c) EBADR = syscall.Errno(0x67) EBADRQC = syscall.Errno(0x6a) EBADSLT = syscall.Errno(0x6b) EBFONT = syscall.Errno(0x6d) - EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x7f) - ECHILD = syscall.Errno(0xa) ECHRNG = syscall.Errno(0x5e) ECOMM = syscall.Errno(0x55) ECONNABORTED = syscall.Errno(0x35) @@ -2708,23 +549,15 @@ const ( EDEADLK = syscall.Errno(0x4e) EDEADLOCK = syscall.Errno(0x6c) EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) EDOTDOT = syscall.Errno(0x58) EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) EHOSTDOWN = syscall.Errno(0x40) EHOSTUNREACH = syscall.Errno(0x41) EHWPOISON = syscall.Errno(0x87) EIDRM = syscall.Errno(0x4d) EILSEQ = syscall.Errno(0x7a) EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) EISNAM = syscall.Errno(0x78) EKEYEXPIRED = syscall.Errno(0x81) EKEYREJECTED = syscall.Errno(0x83) @@ -2741,8 +574,6 @@ const ( ELNRNG = syscall.Errno(0x62) ELOOP = syscall.Errno(0x3e) EMEDIUMTYPE = syscall.Errno(0x7e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x28) EMULTIHOP = syscall.Errno(0x57) ENAMETOOLONG = syscall.Errno(0x3f) @@ -2750,102 +581,70 @@ const ( ENETDOWN = syscall.Errno(0x32) ENETRESET = syscall.Errno(0x34) ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) ENOANO = syscall.Errno(0x69) ENOBUFS = syscall.Errno(0x37) ENOCSI = syscall.Errno(0x64) ENODATA = syscall.Errno(0x6f) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) ENOKEY = syscall.Errno(0x80) ENOLCK = syscall.Errno(0x4f) ENOLINK = syscall.Errno(0x52) ENOMEDIUM = syscall.Errno(0x7d) - ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x4b) ENONET = syscall.Errno(0x50) ENOPKG = syscall.Errno(0x71) ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x4a) ENOSTR = syscall.Errno(0x48) ENOSYS = syscall.Errno(0x5a) - ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x42) ENOTNAM = syscall.Errno(0x76) ENOTRECOVERABLE = syscall.Errno(0x85) ENOTSOCK = syscall.Errno(0x26) ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) ENOTUNIQ = syscall.Errno(0x73) - ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x2d) EOVERFLOW = syscall.Errno(0x5c) EOWNERDEAD = syscall.Errno(0x84) - EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) EPROCLIM = syscall.Errno(0x43) EPROTO = syscall.Errno(0x56) EPROTONOSUPPORT = syscall.Errno(0x2b) EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) EREMCHG = syscall.Errno(0x59) EREMOTE = syscall.Errno(0x47) EREMOTEIO = syscall.Errno(0x79) ERESTART = syscall.Errno(0x74) ERFKILL = syscall.Errno(0x86) - EROFS = syscall.Errno(0x1e) ERREMOTE = syscall.Errno(0x51) ESHUTDOWN = syscall.Errno(0x3a) ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) ESRMNT = syscall.Errno(0x54) ESTALE = syscall.Errno(0x46) ESTRPIPE = syscall.Errno(0x5b) ETIME = syscall.Errno(0x49) ETIMEDOUT = syscall.Errno(0x3c) ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) EUCLEAN = syscall.Errno(0x75) EUNATCH = syscall.Errno(0x63) EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) EXFULL = syscall.Errno(0x68) ) // Signals const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0xa) SIGCHLD = syscall.Signal(0x14) SIGCLD = syscall.Signal(0x14) SIGCONT = syscall.Signal(0x13) SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) SIGLOST = syscall.Signal(0x1d) - SIGPIPE = syscall.Signal(0xd) SIGPOLL = syscall.Signal(0x17) SIGPROF = syscall.Signal(0x1b) SIGPWR = syscall.Signal(0x1d) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) SIGSTOP = syscall.Signal(0x11) SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x12) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go index 78cc04ea6..96b9b8ab3 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go @@ -3,7 +3,7 @@ // +build 386,netbsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go package unix @@ -1085,6 +1085,7 @@ const ( NET_RT_MAXID = 0x6 NET_RT_OIFLIST = 0x4 NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go index 92185e693..ed522a84e 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go @@ -3,7 +3,7 @@ // +build amd64,netbsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -1075,6 +1075,7 @@ const ( NET_RT_MAXID = 0x6 NET_RT_OIFLIST = 0x4 NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go index 373ad4543..c8d36fe99 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go @@ -3,7 +3,7 @@ // +build arm,netbsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -marm _const.go package unix @@ -1065,6 +1065,7 @@ const ( NET_RT_MAXID = 0x6 NET_RT_OIFLIST = 0x4 NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go index fb6c60441..f1c146a74 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go @@ -3,7 +3,7 @@ // +build arm64,netbsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -1075,6 +1075,7 @@ const ( NET_RT_MAXID = 0x6 NET_RT_OIFLIST = 0x4 NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go index d8be04518..5402bd55c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go @@ -3,7 +3,7 @@ // +build 386,openbsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go package unix @@ -881,14 +881,15 @@ const ( MADV_SPACEAVAIL = 0x5 MADV_WILLNEED = 0x3 MAP_ANON = 0x1000 - MAP_COPY = 0x4 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 MAP_FILE = 0x0 MAP_FIXED = 0x10 - MAP_FLAGMASK = 0x1ff7 - MAP_HASSEMAPHORE = 0x200 - MAP_INHERIT = 0x80 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 MAP_INHERIT_COPY = 0x1 - MAP_INHERIT_DONATE_COPY = 0x3 MAP_INHERIT_NONE = 0x2 MAP_INHERIT_SHARE = 0x0 MAP_NOEXTEND = 0x100 @@ -896,7 +897,8 @@ const ( MAP_PRIVATE = 0x2 MAP_RENAME = 0x20 MAP_SHARED = 0x1 - MAP_TRYFIXED = 0x400 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 MCL_CURRENT = 0x1 MCL_FUTURE = 0x2 MNT_ASYNC = 0x40 @@ -946,6 +948,7 @@ const ( NET_RT_MAXID = 0x6 NET_RT_STATS = 0x4 NET_RT_TABLE = 0x5 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go index 1f9e8a29e..ffaf2d2f9 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go @@ -3,7 +3,7 @@ // +build amd64,openbsd -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -920,10 +920,11 @@ const ( MADV_WILLNEED = 0x3 MAP_ANON = 0x1000 MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 MAP_COPY = 0x2 MAP_FILE = 0x0 MAP_FIXED = 0x10 - MAP_FLAGMASK = 0x7ff7 + MAP_FLAGMASK = 0xfff7 MAP_HASSEMAPHORE = 0x0 MAP_INHERIT = 0x0 MAP_INHERIT_COPY = 0x1 @@ -990,6 +991,7 @@ const ( NET_RT_MAXID = 0x7 NET_RT_STATS = 0x4 NET_RT_TABLE = 0x5 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 NOTE_ATTRIB = 0x8 diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go index 79d5695c3..7aa796a64 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go @@ -1,11 +1,11 @@ // mkerrors.sh // Code generated by the command above; see README.md. DO NOT EDIT. -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- _const.go - // +build arm,openbsd +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- _const.go + package unix import "syscall" @@ -881,10 +881,11 @@ const ( MADV_WILLNEED = 0x3 MAP_ANON = 0x1000 MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 MAP_COPY = 0x2 MAP_FILE = 0x0 MAP_FIXED = 0x10 - MAP_FLAGMASK = 0x3ff7 + MAP_FLAGMASK = 0xfff7 MAP_HASSEMAPHORE = 0x0 MAP_INHERIT = 0x0 MAP_INHERIT_COPY = 0x1 @@ -896,6 +897,7 @@ const ( MAP_PRIVATE = 0x2 MAP_RENAME = 0x0 MAP_SHARED = 0x1 + MAP_STACK = 0x4000 MAP_TRYFIXED = 0x0 MCL_CURRENT = 0x1 MCL_FUTURE = 0x2 @@ -947,6 +949,7 @@ const ( NET_RT_MAXID = 0x6 NET_RT_STATS = 0x4 NET_RT_TABLE = 0x5 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOTE_ATTRIB = 0x8 NOTE_CHILD = 0x4 diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go index ec5f92de8..1792d3f13 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go @@ -996,6 +996,7 @@ const ( NET_RT_MAXID = 0x7 NET_RT_STATS = 0x4 NET_RT_TABLE = 0x5 + NFDBITS = 0x20 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 NOTE_ATTRIB = 0x8 diff --git a/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go index 22569db31..46e054ccb 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go @@ -3,7 +3,7 @@ // +build amd64,solaris -// Created by cgo -godefs - DO NOT EDIT +// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package unix @@ -666,6 +666,7 @@ const ( M_FLUSH = 0x86 NAME_MAX = 0xff NEWDEV = 0x1 + NFDBITS = 0x40 NL0 = 0x0 NL1 = 0x100 NLDLY = 0x100 diff --git a/vendor/golang.org/x/sys/unix/zptracearm_linux.go b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go similarity index 93% rename from vendor/golang.org/x/sys/unix/zptracearm_linux.go rename to vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go index faf23bbed..89c5920e0 100644 --- a/vendor/golang.org/x/sys/unix/zptracearm_linux.go +++ b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go @@ -1,4 +1,4 @@ -// Code generated by linux/mkall.go generatePtracePair(arm, arm64). DO NOT EDIT. +// Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT. // +build linux // +build arm arm64 diff --git a/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go b/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go new file mode 100644 index 000000000..6cb6d688a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go @@ -0,0 +1,17 @@ +// Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. + +package unix + +import "unsafe" + +// PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. +func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { + iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} + return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) +} + +// PtraceSetRegSetArm64 sets the registers used by arm64 binaries. +func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { + iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} + return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) +} diff --git a/vendor/golang.org/x/sys/unix/zptracemips_linux.go b/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go similarity index 93% rename from vendor/golang.org/x/sys/unix/zptracemips_linux.go rename to vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go index c431131e6..24b841eec 100644 --- a/vendor/golang.org/x/sys/unix/zptracemips_linux.go +++ b/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go @@ -1,4 +1,4 @@ -// Code generated by linux/mkall.go generatePtracePair(mips, mips64). DO NOT EDIT. +// Code generated by linux/mkall.go generatePtracePair("mips", "mips64"). DO NOT EDIT. // +build linux // +build mips mips64 diff --git a/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go similarity index 93% rename from vendor/golang.org/x/sys/unix/zptracemipsle_linux.go rename to vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go index dc3d6d373..47b048956 100644 --- a/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go +++ b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go @@ -1,4 +1,4 @@ -// Code generated by linux/mkall.go generatePtracePair(mipsle, mips64le). DO NOT EDIT. +// Code generated by linux/mkall.go generatePtracePair("mipsle", "mips64le"). DO NOT EDIT. // +build linux // +build mipsle mips64le diff --git a/vendor/golang.org/x/sys/unix/zptrace386_linux.go b/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go similarity index 95% rename from vendor/golang.org/x/sys/unix/zptrace386_linux.go rename to vendor/golang.org/x/sys/unix/zptrace_x86_linux.go index 2d21c49e1..ea5d9cb53 100644 --- a/vendor/golang.org/x/sys/unix/zptrace386_linux.go +++ b/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go @@ -1,4 +1,4 @@ -// Code generated by linux/mkall.go generatePtracePair(386, amd64). DO NOT EDIT. +// Code generated by linux/mkall.go generatePtracePair("386", "amd64"). DO NOT EDIT. // +build linux // +build 386 amd64 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go index c4ec7ff87..c1cc0a415 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go @@ -1,4 +1,4 @@ -// go run mksyscall.go -l32 -tags darwin,386,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go +// go run mksyscall.go -l32 -tags darwin,386,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_386.1_11.go syscall_darwin_386.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build darwin,386,!go1.12 @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,16 +350,6 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -553,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -573,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0) if e1 != 0 { @@ -1352,8 +1342,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1691,6 +1682,33 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) sec = int32(r0) @@ -1738,23 +1756,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(buf), uintptr(size), uintptr(flags)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.go new file mode 100644 index 000000000..e263fbdb8 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.go @@ -0,0 +1,41 @@ +// go run mksyscall.go -l32 -tags darwin,386,go1.13 syscall_darwin.1_13.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +// +build darwin,386,go1.13 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func closedir(dir uintptr) (err error) { + _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_closedir_trampoline() + +//go:linkname libc_closedir libc_closedir +//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { + r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) + res = Errno(r0) + return +} + +func libc_readdir_r_trampoline() + +//go:linkname libc_readdir_r libc_readdir_r +//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s new file mode 100644 index 000000000..00da1ebfc --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s @@ -0,0 +1,12 @@ +// go run mkasm_darwin.go 386 +// Code generated by the command above; DO NOT EDIT. + +// +build go1.13 + +#include "textflag.h" +TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fdopendir(SB) +TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_closedir(SB) +TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 + JMP libc_readdir_r(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go index 23346dc68..a3fc49004 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go @@ -304,27 +304,6 @@ func libc_kevent_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc___sysctl_trampoline() - -//go:linkname libc___sysctl libc___sysctl -//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -360,22 +339,6 @@ func libc_futimes_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_fcntl_trampoline() - -//go:linkname libc_fcntl libc_fcntl -//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -527,21 +490,6 @@ func libc_munlockall_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_ptrace_trampoline() - -//go:linkname libc_ptrace libc_ptrace -//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -763,6 +711,22 @@ func libc_setattrlist_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_fcntl_trampoline() + +//go:linkname libc_fcntl libc_fcntl +//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -793,6 +757,27 @@ func libc_ioctl_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_sysctl_trampoline() + +//go:linkname libc_sysctl libc_sysctl +//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := syscall_syscall9(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0) if e1 != 0 { @@ -943,6 +928,21 @@ func libc_chroot_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_clock_gettime_trampoline() + +//go:linkname libc_clock_gettime libc_clock_gettime +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Close(fd int) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0) if e1 != 0 { @@ -1872,8 +1872,9 @@ func libc_lseek_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2341,6 +2342,21 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_ptrace_trampoline() + +//go:linkname libc_ptrace libc_ptrace +//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) sec = int32(r0) @@ -2408,28 +2424,6 @@ func libc_fstatfs64_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := syscall_syscall6(funcPC(libc___getdirentries64_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc___getdirentries64_trampoline() - -//go:linkname libc___getdirentries64 libc___getdirentries64 -//go:cgo_import_dynamic libc___getdirentries64 __getdirentries64 "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat64_trampoline), uintptr(buf), uintptr(size), uintptr(flags)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s index 37b85b4f6..6836a4129 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s @@ -40,14 +40,10 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendmsg(SB) TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0 JMP libc_kevent(SB) -TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0 - JMP libc___sysctl(SB) TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_utimes(SB) TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_futimes(SB) -TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 - JMP libc_fcntl(SB) TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0 JMP libc_poll(SB) TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0 @@ -64,8 +60,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlock(SB) TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlockall(SB) -TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0 - JMP libc_ptrace(SB) TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_getattrlist(SB) TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 @@ -88,10 +82,14 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0 JMP libc_flistxattr(SB) TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_setattrlist(SB) +TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0 JMP libc_kill(SB) TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0 JMP libc_ioctl(SB) +TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0 @@ -108,6 +106,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0 JMP libc_chown(SB) TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0 JMP libc_chroot(SB) +TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0 JMP libc_close(SB) TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0 @@ -264,6 +264,8 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0 JMP libc_mmap(SB) TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0 JMP libc_munmap(SB) +TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0 + JMP libc_ptrace(SB) TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0 JMP libc_gettimeofday(SB) TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0 @@ -272,8 +274,6 @@ TEXT ·libc_fstatat64_trampoline(SB),NOSPLIT,$0-0 JMP libc_fstatat64(SB) TEXT ·libc_fstatfs64_trampoline(SB),NOSPLIT,$0-0 JMP libc_fstatfs64(SB) -TEXT ·libc___getdirentries64_trampoline(SB),NOSPLIT,$0-0 - JMP libc___getdirentries64(SB) TEXT ·libc_getfsstat64_trampoline(SB),NOSPLIT,$0-0 JMP libc_getfsstat64(SB) TEXT ·libc_lstat64_trampoline(SB),NOSPLIT,$0-0 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go index 2581e8960..f8e5c37c5 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go @@ -1,4 +1,4 @@ -// go run mksyscall.go -tags darwin,amd64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go +// go run mksyscall.go -tags darwin,amd64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.1_11.go syscall_darwin_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build darwin,amd64,!go1.12 @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,16 +350,6 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -553,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -573,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) if e1 != 0 { @@ -1352,8 +1342,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1691,6 +1682,33 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) sec = int64(r0) @@ -1738,23 +1756,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(buf), uintptr(size), uintptr(flags)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go new file mode 100644 index 000000000..314042a9d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go @@ -0,0 +1,41 @@ +// go run mksyscall.go -tags darwin,amd64,go1.13 syscall_darwin.1_13.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +// +build darwin,amd64,go1.13 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func closedir(dir uintptr) (err error) { + _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_closedir_trampoline() + +//go:linkname libc_closedir libc_closedir +//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { + r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) + res = Errno(r0) + return +} + +func libc_readdir_r_trampoline() + +//go:linkname libc_readdir_r libc_readdir_r +//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s new file mode 100644 index 000000000..d671e8311 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s @@ -0,0 +1,12 @@ +// go run mkasm_darwin.go amd64 +// Code generated by the command above; DO NOT EDIT. + +// +build go1.13 + +#include "textflag.h" +TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fdopendir(SB) +TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_closedir(SB) +TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 + JMP libc_readdir_r(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go index c142e33e9..50d6437e6 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go @@ -304,27 +304,6 @@ func libc_kevent_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc___sysctl_trampoline() - -//go:linkname libc___sysctl libc___sysctl -//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -360,22 +339,6 @@ func libc_futimes_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_fcntl_trampoline() - -//go:linkname libc_fcntl libc_fcntl -//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -527,21 +490,6 @@ func libc_munlockall_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_ptrace_trampoline() - -//go:linkname libc_ptrace libc_ptrace -//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -763,6 +711,22 @@ func libc_setattrlist_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_fcntl_trampoline() + +//go:linkname libc_fcntl libc_fcntl +//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -793,6 +757,27 @@ func libc_ioctl_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_sysctl_trampoline() + +//go:linkname libc_sysctl libc_sysctl +//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) if e1 != 0 { @@ -1887,8 +1872,9 @@ func libc_lseek_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2356,6 +2342,21 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_ptrace_trampoline() + +//go:linkname libc_ptrace libc_ptrace +//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) sec = int64(r0) @@ -2423,28 +2424,6 @@ func libc_fstatfs64_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := syscall_syscall6(funcPC(libc___getdirentries64_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc___getdirentries64_trampoline() - -//go:linkname libc___getdirentries64 libc___getdirentries64 -//go:cgo_import_dynamic libc___getdirentries64 __getdirentries64 "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat64_trampoline), uintptr(buf), uintptr(size), uintptr(flags)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s index 1a3915197..a3fdf099d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s @@ -40,14 +40,10 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendmsg(SB) TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0 JMP libc_kevent(SB) -TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0 - JMP libc___sysctl(SB) TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_utimes(SB) TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_futimes(SB) -TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 - JMP libc_fcntl(SB) TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0 JMP libc_poll(SB) TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0 @@ -64,8 +60,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlock(SB) TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlockall(SB) -TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0 - JMP libc_ptrace(SB) TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_getattrlist(SB) TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 @@ -88,10 +82,14 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0 JMP libc_flistxattr(SB) TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_setattrlist(SB) +TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0 JMP libc_kill(SB) TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0 JMP libc_ioctl(SB) +TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0 @@ -266,6 +264,8 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0 JMP libc_mmap(SB) TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0 JMP libc_munmap(SB) +TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0 + JMP libc_ptrace(SB) TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0 JMP libc_gettimeofday(SB) TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0 @@ -274,8 +274,6 @@ TEXT ·libc_fstatat64_trampoline(SB),NOSPLIT,$0-0 JMP libc_fstatat64(SB) TEXT ·libc_fstatfs64_trampoline(SB),NOSPLIT,$0-0 JMP libc_fstatfs64(SB) -TEXT ·libc___getdirentries64_trampoline(SB),NOSPLIT,$0-0 - JMP libc___getdirentries64(SB) TEXT ·libc_getfsstat64_trampoline(SB),NOSPLIT,$0-0 JMP libc_getfsstat64(SB) TEXT ·libc_lstat64_trampoline(SB),NOSPLIT,$0-0 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go index f8caecef0..cea04e041 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go @@ -1,4 +1,4 @@ -// go run mksyscall.go -l32 -tags darwin,arm,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go +// go run mksyscall.go -l32 -tags darwin,arm,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm.1_11.go syscall_darwin_arm.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build darwin,arm,!go1.12 @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,16 +350,6 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -553,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -573,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0) if e1 != 0 { @@ -1352,8 +1342,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.go new file mode 100644 index 000000000..f519ce9af --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.go @@ -0,0 +1,41 @@ +// go run mksyscall.go -l32 -tags darwin,arm,go1.13 syscall_darwin.1_13.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +// +build darwin,arm,go1.13 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func closedir(dir uintptr) (err error) { + _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_closedir_trampoline() + +//go:linkname libc_closedir libc_closedir +//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { + r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) + res = Errno(r0) + return +} + +func libc_readdir_r_trampoline() + +//go:linkname libc_readdir_r libc_readdir_r +//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s new file mode 100644 index 000000000..488e55707 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s @@ -0,0 +1,12 @@ +// go run mkasm_darwin.go arm +// Code generated by the command above; DO NOT EDIT. + +// +build go1.13 + +#include "textflag.h" +TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fdopendir(SB) +TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_closedir(SB) +TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 + JMP libc_readdir_r(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go index 01cffbf46..63103950c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go @@ -304,27 +304,6 @@ func libc_kevent_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc___sysctl_trampoline() - -//go:linkname libc___sysctl libc___sysctl -//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -360,22 +339,6 @@ func libc_futimes_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_fcntl_trampoline() - -//go:linkname libc_fcntl libc_fcntl -//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -527,21 +490,6 @@ func libc_munlockall_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_ptrace_trampoline() - -//go:linkname libc_ptrace libc_ptrace -//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -763,6 +711,22 @@ func libc_setattrlist_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_fcntl_trampoline() + +//go:linkname libc_fcntl libc_fcntl +//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -793,6 +757,27 @@ func libc_ioctl_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_sysctl_trampoline() + +//go:linkname libc_sysctl libc_sysctl +//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := syscall_syscall9(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0) if e1 != 0 { @@ -943,6 +928,21 @@ func libc_chroot_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_clock_gettime_trampoline() + +//go:linkname libc_clock_gettime libc_clock_gettime +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Close(fd int) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0) if e1 != 0 { @@ -1872,8 +1872,9 @@ func libc_lseek_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s index 994056f35..b67f518fa 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s @@ -40,14 +40,10 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendmsg(SB) TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0 JMP libc_kevent(SB) -TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0 - JMP libc___sysctl(SB) TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_utimes(SB) TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_futimes(SB) -TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 - JMP libc_fcntl(SB) TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0 JMP libc_poll(SB) TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0 @@ -64,8 +60,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlock(SB) TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlockall(SB) -TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0 - JMP libc_ptrace(SB) TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_getattrlist(SB) TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 @@ -88,10 +82,14 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0 JMP libc_flistxattr(SB) TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_setattrlist(SB) +TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0 JMP libc_kill(SB) TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0 JMP libc_ioctl(SB) +TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0 @@ -108,6 +106,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0 JMP libc_chown(SB) TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0 JMP libc_chroot(SB) +TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0 JMP libc_close(SB) TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go index 3fd0f3c85..8c3bb3a25 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go @@ -1,4 +1,4 @@ -// go run mksyscall.go -tags darwin,arm64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go +// go run mksyscall.go -tags darwin,arm64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.1_11.go syscall_darwin_arm64.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build darwin,arm64,!go1.12 @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,16 +350,6 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -553,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -573,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) if e1 != 0 { @@ -1352,8 +1342,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go new file mode 100644 index 000000000..d64e6c806 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go @@ -0,0 +1,41 @@ +// go run mksyscall.go -tags darwin,arm64,go1.13 syscall_darwin.1_13.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +// +build darwin,arm64,go1.13 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func closedir(dir uintptr) (err error) { + _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_closedir_trampoline() + +//go:linkname libc_closedir libc_closedir +//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { + r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) + res = Errno(r0) + return +} + +func libc_readdir_r_trampoline() + +//go:linkname libc_readdir_r libc_readdir_r +//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s new file mode 100644 index 000000000..b29dabb0f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s @@ -0,0 +1,12 @@ +// go run mkasm_darwin.go arm64 +// Code generated by the command above; DO NOT EDIT. + +// +build go1.13 + +#include "textflag.h" +TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fdopendir(SB) +TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 + JMP libc_closedir(SB) +TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 + JMP libc_readdir_r(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go index 8f2691dee..a8709f72d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go @@ -304,27 +304,6 @@ func libc_kevent_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc___sysctl_trampoline() - -//go:linkname libc___sysctl libc___sysctl -//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -360,22 +339,6 @@ func libc_futimes_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_fcntl_trampoline() - -//go:linkname libc_fcntl libc_fcntl -//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -527,21 +490,6 @@ func libc_munlockall_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -func libc_ptrace_trampoline() - -//go:linkname libc_ptrace libc_ptrace -//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) if e1 != 0 { @@ -763,6 +711,22 @@ func libc_setattrlist_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_fcntl_trampoline() + +//go:linkname libc_fcntl libc_fcntl +//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func kill(pid int, signum int, posix int) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) if e1 != 0 { @@ -793,6 +757,27 @@ func libc_ioctl_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_sysctl_trampoline() + +//go:linkname libc_sysctl libc_sysctl +//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) if e1 != 0 { @@ -943,6 +928,21 @@ func libc_chroot_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func libc_clock_gettime_trampoline() + +//go:linkname libc_clock_gettime libc_clock_gettime +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Close(fd int) (err error) { _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0) if e1 != 0 { @@ -1872,8 +1872,9 @@ func libc_lseek_trampoline() // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s index 61dc0d4c1..40cce1bb2 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s @@ -40,14 +40,10 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendmsg(SB) TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0 JMP libc_kevent(SB) -TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0 - JMP libc___sysctl(SB) TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_utimes(SB) TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0 JMP libc_futimes(SB) -TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 - JMP libc_fcntl(SB) TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0 JMP libc_poll(SB) TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0 @@ -64,8 +60,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlock(SB) TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 JMP libc_munlockall(SB) -TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0 - JMP libc_ptrace(SB) TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_getattrlist(SB) TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 @@ -88,10 +82,14 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0 JMP libc_flistxattr(SB) TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0 JMP libc_setattrlist(SB) +TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0 JMP libc_kill(SB) TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0 JMP libc_ioctl(SB) +TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0 @@ -108,6 +106,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0 JMP libc_chown(SB) TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0 JMP libc_chroot(SB) +TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0 JMP libc_close(SB) TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go index cdfe9318b..fe1fdd78d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go @@ -255,17 +255,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -1272,8 +1261,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go index a783306b2..600f1d26d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -387,8 +360,15 @@ func pipe2(p *[2]_C_int, flags int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data int) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -397,15 +377,24 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getcwd(buf []byte) (n int, err error) { +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) } else { _p0 = unsafe.Pointer(&_zero) } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) if e1 != 0 { err = errnoErr(e1) } @@ -414,8 +403,8 @@ func Getcwd(buf []byte) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1363,7 +1352,7 @@ func mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error) if err != nil { return } - _, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + _, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), uintptr(dev>>32), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1606,8 +1595,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go index f995520d3..064934b0d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -387,8 +360,15 @@ func pipe2(p *[2]_C_int, flags int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data int) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -397,15 +377,24 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getcwd(buf []byte) (n int, err error) { +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) } else { _p0 = unsafe.Pointer(&_zero) } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) if e1 != 0 { err = errnoErr(e1) } @@ -414,8 +403,8 @@ func Getcwd(buf []byte) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1606,8 +1595,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go index d681acd43..31d2c4616 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,8 +350,14 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) if e1 != 0 { err = errnoErr(e1) } @@ -387,8 +366,8 @@ func pipe2(p *[2]_C_int, flags int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data int) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) if e1 != 0 { err = errnoErr(e1) } @@ -424,6 +403,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Access(path string, mode uint32) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -1606,8 +1595,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go index 5049b2ede..4adaaa561 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go @@ -1,4 +1,4 @@ -// go run mksyscall.go -tags freebsd,arm64 -- syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go +// go run mksyscall.go -tags freebsd,arm64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build freebsd,arm64 @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -404,8 +377,8 @@ func Getcwd(buf []byte) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ptrace(request int, pid int, addr uintptr, data int) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { err = errnoErr(e1) } @@ -414,8 +387,24 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1606,8 +1595,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go new file mode 100644 index 000000000..92efa1da3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go @@ -0,0 +1,87 @@ +// go run mksyscall_solaris.go -illumos -tags illumos,amd64 syscall_illumos.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +// +build illumos,amd64 + +package unix + +import ( + "unsafe" +) + +//go:cgo_import_dynamic libc_readv readv "libc.so" +//go:cgo_import_dynamic libc_preadv preadv "libc.so" +//go:cgo_import_dynamic libc_writev writev "libc.so" +//go:cgo_import_dynamic libc_pwritev pwritev "libc.so" + +//go:linkname procreadv libc_readv +//go:linkname procpreadv libc_preadv +//go:linkname procwritev libc_writev +//go:linkname procpwritev libc_pwritev + +var ( + procreadv, + procpreadv, + procwritev, + procpwritev syscallFunc +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readv(fd int, iovs []Iovec) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func preadv(fd int, iovs []Iovec, off int64) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writev(fd int, iovs []Iovec) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vendor/golang.org/x/sys/unix/zsyscall_linux.go new file mode 100644 index 000000000..fd2dae8e5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux.go @@ -0,0 +1,1825 @@ +// Code generated by mkmerge.go; DO NOT EDIT. + +// +build linux + +package unix + +import ( + "syscall" + "unsafe" +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { + r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fchmodat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlJoin(cmd int, arg2 string) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(arg2) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(arg3) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(arg4) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { + var _p0 unsafe.Pointer + if len(payload) > 0 { + _p0 = unsafe.Pointer(&payload[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(keyType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(restriction) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlRestrictKeyring(cmd int, arg2 int) (err error) { + _, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(arg) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(source) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(target) + if err != nil { + return + } + var _p2 *byte + _p2, err = BytePtrFromString(fstype) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Acct(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(keyType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(description) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(payload) > 0 { + _p2 = unsafe.Pointer(&payload[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) + id = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtimex(buf *Timex) (state int, err error) { + r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) + state = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { + _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { + _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGetres(clockid int32, res *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { + _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { + r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func DeleteModule(name string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(oldfd int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(oldfd int, newfd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollCreate1(flag int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { + _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Eventfd(initval uint, flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fdatasync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FinitModule(fd int, params string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(params) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flistxattr(fd int, dest []byte) (sz int, err error) { + var _p0 unsafe.Pointer + if len(dest) > 0 { + _p0 = unsafe.Pointer(&dest[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fremovexattr(fd int, attr string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettid() (tid int) { + r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) + tid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getxattr(path string, attr string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(dest) > 0 { + _p2 = unsafe.Pointer(&dest[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InitModule(moduleImage []byte, params string) (err error) { + var _p0 unsafe.Pointer + if len(moduleImage) > 0 { + _p0 = unsafe.Pointer(&moduleImage[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + var _p1 *byte + _p1, err = BytePtrFromString(params) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(pathname) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) + watchdesc = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InotifyInit1(flags int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { + r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) + success = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, sig syscall.Signal) (err error) { + _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Klogctl(typ int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(dest) > 0 { + _p2 = unsafe.Pointer(&dest[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listxattr(path string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Llistxattr(path string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lremovexattr(path string, attr string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(data) > 0 { + _p2 = unsafe.Pointer(&data[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func MemfdCreate(name string, flags int) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func PivotRoot(newroot string, putold string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(newroot) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(putold) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { + _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { + _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Removexattr(path string, attr string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(keyType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(description) + if err != nil { + return + } + var _p2 *byte + _p2, err = BytePtrFromString(callback) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) + id = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setdomainname(p []byte) (err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sethostname(p []byte) (err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setns(fd int, nstype int) (err error) { + _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setxattr(path string, attr string, data []byte, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(data) > 0 { + _p2 = unsafe.Pointer(&data[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { + r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) + newfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() { + SyscallNoError(SYS_SYNC, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Syncfs(fd int) (err error) { + _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sysinfo(info *Sysinfo_t) (err error) { + _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { + _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Times(tms *Tms) (ticks uintptr, err error) { + r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) + ticks = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(mask int) (oldmask int) { + r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Uname(buf *Utsname) (err error) { + _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(target string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(target) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unshare(flags int) (err error) { + _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func exitThread(code int) (err error) { + _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, p *byte, np int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, p *byte, np int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readv(fd int, iovs []Iovec) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writev(fd int, iovs []Iovec) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, advice int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func faccessat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(pathname) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go index c5e46e4cf..ba63af7b0 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func pipe(p *[2]_C_int) (err error) { _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) if e1 != 0 { @@ -1739,16 +55,6 @@ func pipe(p *[2]_C_int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -2000,8 +306,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2010,8 +317,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go index da8819e48..f64adef41 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -2016,8 +332,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2026,8 +343,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2402,16 +720,6 @@ func pipe(p *[2]_C_int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go index 6ad9be6dd..ac19523e8 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func pipe(p *[2]_C_int) (err error) { _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) if e1 != 0 { @@ -1739,16 +55,6 @@ func pipe(p *[2]_C_int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) fd = int(r0) @@ -2136,8 +442,9 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2146,8 +453,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go index f88331782..f0d2890b1 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { var _p0 unsafe.Pointer if len(events) > 0 { @@ -1939,8 +255,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1949,8 +266,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2270,16 +588,6 @@ func Gettimeofday(tv *Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(cmdline) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go index 8eebc6c77..aecbbca75 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -1930,8 +246,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1940,8 +257,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2387,16 +705,6 @@ func Pause() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func pipe() (p1 int, p2 int, err error) { r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) p1 = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go index ecf62a677..424fb7fb6 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -1960,8 +276,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1970,8 +287,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2346,16 +664,6 @@ func utimes(path string, times *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func fstat(fd int, st *stat_t) (err error) { _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go index 1ba0f7b6f..28c7239cf 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -1960,8 +276,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1970,8 +287,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2346,16 +664,6 @@ func utimes(path string, times *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func fstat(fd int, st *stat_t) (err error) { _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go index 20012b2f0..84596b300 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -1930,8 +246,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1940,8 +257,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2387,16 +705,6 @@ func Pause() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func pipe() (p1 int, p2 int, err error) { r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) p1 = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go index 2b520deaa..de022639d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -2042,8 +358,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2052,8 +369,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2454,16 +772,6 @@ func pipe(p *[2]_C_int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go index d9f044c95..888f21d37 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -2042,8 +358,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2052,8 +369,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2454,16 +772,6 @@ func pipe(p *[2]_C_int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go index 9feed65eb..b76133447 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { var _p0 unsafe.Pointer if len(events) > 0 { @@ -1919,8 +235,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1929,8 +246,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2250,16 +568,6 @@ func Gettimeofday(tv *Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(cmdline) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go index 0a6515088..9bc353f0c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if e1 != 0 { @@ -2012,8 +328,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2022,8 +339,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2234,16 +552,6 @@ func utimes(path string, times *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go index e27f66930..854e816d6 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go @@ -14,1428 +14,8 @@ var _ syscall.Errno // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { - r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { - _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { - _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGetres(clockid int32, res *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { - _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func DeleteModule(name string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func FinitModule(fd int, params string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - var _p0 unsafe.Pointer - if len(dest) > 0 { - _p0 = unsafe.Pointer(&dest[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fremovexattr(fd int, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InitModule(moduleImage []byte, params string) (err error) { - var _p0 unsafe.Pointer - if len(moduleImage) > 0 { - _p0 = unsafe.Pointer(&moduleImage[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - var _p1 *byte - _p1, err = BytePtrFromString(params) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func MemfdCreate(name string, flags int) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { - r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) - newfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) if e1 != 0 { err = errnoErr(e1) } @@ -1444,8 +24,8 @@ func Syncfs(fd int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) if e1 != 0 { err = errnoErr(e1) } @@ -1465,270 +45,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func faccessat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { var _p0 unsafe.Pointer if len(events) > 0 { @@ -2011,8 +327,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2021,8 +338,9 @@ func Setfsgid(gid int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -2412,16 +730,6 @@ func pipe(p *[2]_C_int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go index 7e0582664..3bbd9e39c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Access(path string, mode uint32) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Fsync(fd int) (err error) { _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) if e1 != 0 { @@ -1498,8 +1507,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1634,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Symlink(path string, link string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go index d94d076aa..d8cf5012c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Access(path string, mode uint32) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Fsync(fd int) (err error) { _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) if e1 != 0 { @@ -1498,8 +1507,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1634,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Symlink(path string, link string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go index cf5bf3d05..1153fe69b 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Access(path string, mode uint32) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Fsync(fd int) (err error) { _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) if e1 != 0 { @@ -1498,8 +1507,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1634,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Symlink(path string, link string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go index 243a9317c..24b4ebb41 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Access(path string, mode uint32) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Fsync(fd int) (err error) { _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) if e1 != 0 { @@ -1498,8 +1507,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } @@ -1634,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Symlink(path string, link string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go index a9532d078..b44b31aeb 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,8 +350,8 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) if e1 != 0 { err = errnoErr(e1) } @@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -1304,8 +1303,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go index 0cb9f0177..67f93ee76 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,8 +350,8 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) if e1 != 0 { err = errnoErr(e1) } @@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -1304,8 +1303,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go index 6fc99b549..d7c878b1d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,8 +350,8 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) if e1 != 0 { err = errnoErr(e1) } @@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -1304,8 +1303,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go index 27878a72b..8facd695d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go @@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimes(path string, timeval *[2]Timeval) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) n = int(r0) @@ -377,8 +350,8 @@ func Munlockall() (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) if e1 != 0 { err = errnoErr(e1) } @@ -431,6 +404,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -573,6 +562,16 @@ func Dup2(from int, to int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Exit(code int) { Syscall(SYS_EXIT, uintptr(code), 0, 0) return @@ -1304,8 +1303,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = errnoErr(e1) } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go index 5f614760c..a96165d4b 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go @@ -1478,8 +1478,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) if e1 != 0 { err = e1 } diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index 33b6e4d1a..7aae554f2 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -423,4 +423,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index 9ba207847..7968439a9 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -345,4 +345,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index 94f68f101..3c663c69d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -387,4 +387,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index 15c413516..1f3b4d150 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -290,4 +290,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index 638465b14..00da3de90 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -408,4 +408,12 @@ const ( SYS_IO_URING_SETUP = 4425 SYS_IO_URING_ENTER = 4426 SYS_IO_URING_REGISTER = 4427 + SYS_OPEN_TREE = 4428 + SYS_MOVE_MOUNT = 4429 + SYS_FSOPEN = 4430 + SYS_FSCONFIG = 4431 + SYS_FSMOUNT = 4432 + SYS_FSPICK = 4433 + SYS_PIDFD_OPEN = 4434 + SYS_CLONE3 = 4435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index 57ec82aac..d404fbd4d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -338,4 +338,12 @@ const ( SYS_IO_URING_SETUP = 5425 SYS_IO_URING_ENTER = 5426 SYS_IO_URING_REGISTER = 5427 + SYS_OPEN_TREE = 5428 + SYS_MOVE_MOUNT = 5429 + SYS_FSOPEN = 5430 + SYS_FSCONFIG = 5431 + SYS_FSMOUNT = 5432 + SYS_FSPICK = 5433 + SYS_PIDFD_OPEN = 5434 + SYS_CLONE3 = 5435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index 825a3e3b0..bfbf242f3 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -338,4 +338,12 @@ const ( SYS_IO_URING_SETUP = 5425 SYS_IO_URING_ENTER = 5426 SYS_IO_URING_REGISTER = 5427 + SYS_OPEN_TREE = 5428 + SYS_MOVE_MOUNT = 5429 + SYS_FSOPEN = 5430 + SYS_FSCONFIG = 5431 + SYS_FSMOUNT = 5432 + SYS_FSPICK = 5433 + SYS_PIDFD_OPEN = 5434 + SYS_CLONE3 = 5435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index f152dfdd0..3826f497a 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -408,4 +408,12 @@ const ( SYS_IO_URING_SETUP = 4425 SYS_IO_URING_ENTER = 4426 SYS_IO_URING_REGISTER = 4427 + SYS_OPEN_TREE = 4428 + SYS_MOVE_MOUNT = 4429 + SYS_FSOPEN = 4430 + SYS_FSCONFIG = 4431 + SYS_FSMOUNT = 4432 + SYS_FSPICK = 4433 + SYS_PIDFD_OPEN = 4434 + SYS_CLONE3 = 4435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index 7cbe78b19..52e3da649 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -387,4 +387,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index 51a2f1236..6141f90a8 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -387,4 +387,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go index 323432ae3..4f7261a88 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -289,4 +289,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index 9dca97484..f47014ac0 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -352,4 +352,12 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index d3da46f0d..dd78abb0d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -367,4 +367,11 @@ const ( SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 ) diff --git a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go index c206f2b05..71ea1d6d2 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go @@ -467,3 +467,13 @@ type Utsname struct { Version [32]byte Machine [32]byte } + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go index 7312e95ff..2a3ec615f 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go @@ -128,9 +128,9 @@ type Statfs_t struct { Owner uint32 Fsid Fsid Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [1024]int8 - Mntonname [1024]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte } type statfs_freebsd11_t struct { @@ -153,9 +153,9 @@ type statfs_freebsd11_t struct { Owner uint32 Fsid Fsid Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [88]int8 - Mntonname [88]int8 + Fstypename [16]byte + Mntfromname [88]byte + Mntonname [88]byte } type Flock_t struct { @@ -375,15 +375,15 @@ type PtraceLwpInfoStruct struct { } type __Siginfo struct { - Signo int32 - Errno int32 - Code int32 - Pid int32 - Uid uint32 - Status int32 - Addr *byte - Value [4]byte - X_reason [32]byte + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr *byte + Value [4]byte + _ [32]byte } type Sigset_t struct { @@ -423,7 +423,7 @@ type PtraceIoDesc struct { Op int32 Offs *byte Addr *byte - Len uint + Len uint32 } type Kevent_t struct { @@ -458,7 +458,7 @@ type ifMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 Data ifData } @@ -469,7 +469,6 @@ type IfMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte Data IfData } @@ -536,7 +535,7 @@ type IfaMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 Metric int32 } @@ -547,7 +546,7 @@ type IfmaMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 } type IfAnnounceMsghdr struct { @@ -564,7 +563,7 @@ type RtMsghdr struct { Version uint8 Type uint8 Index uint16 - _ [2]byte + _ uint16 Flags int32 Addrs int32 Pid int32 @@ -698,3 +697,13 @@ type Utsname struct { Version [256]byte Machine [256]byte } + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go index 29ba2f5bf..e11e95499 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go @@ -123,9 +123,9 @@ type Statfs_t struct { Owner uint32 Fsid Fsid Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [1024]int8 - Mntonname [1024]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte } type statfs_freebsd11_t struct { @@ -148,9 +148,9 @@ type statfs_freebsd11_t struct { Owner uint32 Fsid Fsid Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [88]int8 - Mntonname [88]int8 + Fstypename [16]byte + Mntfromname [88]byte + Mntonname [88]byte } type Flock_t struct { @@ -275,10 +275,8 @@ type IPv6Mreq struct { type Msghdr struct { Name *byte Namelen uint32 - _ [4]byte Iov *Iovec Iovlen int32 - _ [4]byte Control *byte Controllen uint32 Flags int32 @@ -428,7 +426,7 @@ type PtraceIoDesc struct { Op int32 Offs *byte Addr *byte - Len uint + Len uint64 } type Kevent_t struct { @@ -463,7 +461,7 @@ type ifMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 Data ifData } @@ -474,7 +472,6 @@ type IfMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte Data IfData } @@ -541,7 +538,7 @@ type IfaMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 Metric int32 } @@ -552,7 +549,7 @@ type IfmaMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 } type IfAnnounceMsghdr struct { @@ -569,7 +566,7 @@ type RtMsghdr struct { Version uint8 Type uint8 Index uint16 - _ [2]byte + _ uint16 Flags int32 Addrs int32 Pid int32 @@ -623,7 +620,6 @@ type BpfZbuf struct { type BpfProgram struct { Len uint32 - _ [4]byte Insns *BpfInsn } @@ -704,3 +700,13 @@ type Utsname struct { Version [256]byte Machine [256]byte } + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go index b4090ef31..6f79227d7 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go @@ -405,7 +405,7 @@ type PtraceIoDesc struct { Op int32 Offs *byte Addr *byte - Len uint + Len uint32 } type Kevent_t struct { @@ -681,3 +681,13 @@ type Utsname struct { Version [256]byte Machine [256]byte } + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go index 1542a8773..c6fe1d097 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go @@ -1,4 +1,4 @@ -// cgo -godefs types_freebsd.go | go run mkpost.go +// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build arm64,freebsd @@ -123,9 +123,9 @@ type Statfs_t struct { Owner uint32 Fsid Fsid Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [1024]int8 - Mntonname [1024]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte } type statfs_freebsd11_t struct { @@ -148,9 +148,9 @@ type statfs_freebsd11_t struct { Owner uint32 Fsid Fsid Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [88]int8 - Mntonname [88]int8 + Fstypename [16]byte + Mntfromname [88]byte + Mntonname [88]byte } type Flock_t struct { @@ -275,10 +275,8 @@ type IPv6Mreq struct { type Msghdr struct { Name *byte Namelen uint32 - _ [4]byte Iov *Iovec Iovlen int32 - _ [4]byte Control *byte Controllen uint32 Flags int32 @@ -326,11 +324,9 @@ const ( PTRACE_CONT = 0x7 PTRACE_DETACH = 0xb PTRACE_GETFPREGS = 0x23 - PTRACE_GETFSBASE = 0x47 PTRACE_GETLWPLIST = 0xf PTRACE_GETNUMLWPS = 0xe PTRACE_GETREGS = 0x21 - PTRACE_GETXSTATE = 0x45 PTRACE_IO = 0xc PTRACE_KILL = 0x8 PTRACE_LWPEVENTS = 0x18 @@ -373,15 +369,15 @@ type PtraceLwpInfoStruct struct { } type __Siginfo struct { - Signo int32 - Errno int32 - Code int32 - Pid int32 - Uid uint32 - Status int32 - Addr *byte - Value [8]byte - X_reason [40]byte + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr *byte + Value [8]byte + _ [40]byte } type Sigset_t struct { @@ -394,19 +390,21 @@ type Reg struct { Sp uint64 Elr uint64 Spsr uint32 + _ [4]byte } type FpReg struct { - Fp_q [32]uint128 - Fp_sr uint32 - Fp_cr uint32 + Q [32][16]uint8 + Sr uint32 + Cr uint32 + _ [8]byte } type PtraceIoDesc struct { Op int32 Offs *byte Addr *byte - Len uint + Len uint64 } type Kevent_t struct { @@ -441,7 +439,7 @@ type ifMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 Data ifData } @@ -452,7 +450,6 @@ type IfMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte Data IfData } @@ -519,7 +516,7 @@ type IfaMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 Metric int32 } @@ -530,7 +527,7 @@ type IfmaMsghdr struct { Addrs int32 Flags int32 Index uint16 - _ [2]byte + _ uint16 } type IfAnnounceMsghdr struct { @@ -547,7 +544,7 @@ type RtMsghdr struct { Version uint8 Type uint8 Index uint16 - _ [2]byte + _ uint16 Flags int32 Addrs int32 Pid int32 @@ -601,7 +598,6 @@ type BpfZbuf struct { type BpfProgram struct { Len uint32 - _ [4]byte Insns *BpfInsn } @@ -682,3 +678,13 @@ type Utsname struct { Version [256]byte Machine [256]byte } + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go new file mode 100644 index 000000000..cb5e06c60 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -0,0 +1,2293 @@ +// Code generated by mkmerge.go; DO NOT EDIT. + +// +build linux + +package unix + +const ( + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLongLong = 0x8 + PathMax = 0x1000 +) + +type ( + _C_short int16 + _C_int int32 + + _C_long_long int64 +) + +const ( + TIME_OK = 0x0 + TIME_INS = 0x1 + TIME_DEL = 0x2 + TIME_OOP = 0x3 + TIME_WAIT = 0x4 + TIME_ERROR = 0x5 + TIME_BAD = 0x5 +) + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type StatxTimestamp struct { + Sec int64 + Nsec uint32 + _ int32 +} + +type Statx_t struct { + Mask uint32 + Blksize uint32 + Attributes uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Mode uint16 + _ [1]uint16 + Ino uint64 + Size uint64 + Blocks uint64 + Attributes_mask uint64 + Atime StatxTimestamp + Btime StatxTimestamp + Ctime StatxTimestamp + Mtime StatxTimestamp + Rdev_major uint32 + Rdev_minor uint32 + Dev_major uint32 + Dev_minor uint32 + _ [14]uint64 +} + +type Fsid struct { + Val [2]int32 +} + +type FscryptPolicy struct { + Version uint8 + Contents_encryption_mode uint8 + Filenames_encryption_mode uint8 + Flags uint8 + Master_key_descriptor [8]uint8 +} + +type FscryptKey struct { + Mode uint32 + Raw [64]uint8 + Size uint32 +} + +type FscryptPolicyV1 struct { + Version uint8 + Contents_encryption_mode uint8 + Filenames_encryption_mode uint8 + Flags uint8 + Master_key_descriptor [8]uint8 +} + +type FscryptPolicyV2 struct { + Version uint8 + Contents_encryption_mode uint8 + Filenames_encryption_mode uint8 + Flags uint8 + _ [4]uint8 + Master_key_identifier [16]uint8 +} + +type FscryptGetPolicyExArg struct { + Size uint64 + Policy [24]byte +} + +type FscryptKeySpecifier struct { + Type uint32 + _ uint32 + U [32]byte +} + +type FscryptAddKeyArg struct { + Key_spec FscryptKeySpecifier + Raw_size uint32 + _ [9]uint32 +} + +type FscryptRemoveKeyArg struct { + Key_spec FscryptKeySpecifier + Removal_status_flags uint32 + _ [5]uint32 +} + +type FscryptGetKeyStatusArg struct { + Key_spec FscryptKeySpecifier + _ [6]uint32 + Status uint32 + Status_flags uint32 + User_count uint32 + _ [13]uint32 +} + +type KeyctlDHParams struct { + Private int32 + Prime int32 + Base int32 +} + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 +) + +type RawSockaddrInet4 struct { + Family uint16 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]uint8 +} + +type RawSockaddrInet6 struct { + Family uint16 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Family uint16 + Path [108]int8 +} + +type RawSockaddrLinklayer struct { + Family uint16 + Protocol uint16 + Ifindex int32 + Hatype uint16 + Pkttype uint8 + Halen uint8 + Addr [8]uint8 +} + +type RawSockaddrNetlink struct { + Family uint16 + Pad uint16 + Pid uint32 + Groups uint32 +} + +type RawSockaddrHCI struct { + Family uint16 + Dev uint16 + Channel uint16 +} + +type RawSockaddrL2 struct { + Family uint16 + Psm uint16 + Bdaddr [6]uint8 + Cid uint16 + Bdaddr_type uint8 + _ [1]byte +} + +type RawSockaddrRFCOMM struct { + Family uint16 + Bdaddr [6]uint8 + Channel uint8 + _ [1]byte +} + +type RawSockaddrCAN struct { + Family uint16 + Ifindex int32 + Addr [16]byte +} + +type RawSockaddrALG struct { + Family uint16 + Type [14]uint8 + Feat uint32 + Mask uint32 + Name [64]uint8 +} + +type RawSockaddrVM struct { + Family uint16 + Reserved1 uint16 + Port uint32 + Cid uint32 + Zero [4]uint8 +} + +type RawSockaddrXDP struct { + Family uint16 + Flags uint16 + Ifindex uint32 + Queue_id uint32 + Shared_umem_fd uint32 +} + +type RawSockaddrPPPoX [0x1e]byte + +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + +type RawSockaddrL2TPIP struct { + Family uint16 + Unused uint16 + Addr [4]byte /* in_addr */ + Conn_id uint32 + _ [4]uint8 +} + +type RawSockaddrL2TPIP6 struct { + Family uint16 + Unused uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 + Conn_id uint32 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type PacketMreq struct { + Ifindex int32 + Type uint16 + Alen uint16 + Address [8]uint8 +} + +type Inet4Pktinfo struct { + Ifindex int32 + Spec_dst [4]byte /* in_addr */ + Addr [4]byte /* in_addr */ +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Data [8]uint32 +} + +type Ucred struct { + Pid int32 + Uid uint32 + Gid uint32 +} + +type TCPInfo struct { + State uint8 + Ca_state uint8 + Retransmits uint8 + Probes uint8 + Backoff uint8 + Options uint8 + Rto uint32 + Ato uint32 + Snd_mss uint32 + Rcv_mss uint32 + Unacked uint32 + Sacked uint32 + Lost uint32 + Retrans uint32 + Fackets uint32 + Last_data_sent uint32 + Last_ack_sent uint32 + Last_data_recv uint32 + Last_ack_recv uint32 + Pmtu uint32 + Rcv_ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Snd_ssthresh uint32 + Snd_cwnd uint32 + Advmss uint32 + Reordering uint32 + Rcv_rtt uint32 + Rcv_space uint32 + Total_retrans uint32 +} + +type CanFilter struct { + Id uint32 + Mask uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x70 + SizeofSockaddrUnix = 0x6e + SizeofSockaddrLinklayer = 0x14 + SizeofSockaddrNetlink = 0xc + SizeofSockaddrHCI = 0x6 + SizeofSockaddrL2 = 0xe + SizeofSockaddrRFCOMM = 0xa + SizeofSockaddrCAN = 0x18 + SizeofSockaddrALG = 0x58 + SizeofSockaddrVM = 0x10 + SizeofSockaddrXDP = 0x10 + SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 + SizeofSockaddrL2TPIP = 0x10 + SizeofSockaddrL2TPIP6 = 0x20 + SizeofLinger = 0x8 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofPacketMreq = 0x10 + SizeofInet4Pktinfo = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 + SizeofUcred = 0xc + SizeofTCPInfo = 0x68 + SizeofCanFilter = 0x8 +) + +const ( + NDA_UNSPEC = 0x0 + NDA_DST = 0x1 + NDA_LLADDR = 0x2 + NDA_CACHEINFO = 0x3 + NDA_PROBES = 0x4 + NDA_VLAN = 0x5 + NDA_PORT = 0x6 + NDA_VNI = 0x7 + NDA_IFINDEX = 0x8 + NDA_MASTER = 0x9 + NDA_LINK_NETNSID = 0xa + NDA_SRC_VNI = 0xb + NTF_USE = 0x1 + NTF_SELF = 0x2 + NTF_MASTER = 0x4 + NTF_PROXY = 0x8 + NTF_EXT_LEARNED = 0x10 + NTF_OFFLOADED = 0x20 + NTF_ROUTER = 0x80 + NUD_INCOMPLETE = 0x1 + NUD_REACHABLE = 0x2 + NUD_STALE = 0x4 + NUD_DELAY = 0x8 + NUD_PROBE = 0x10 + NUD_FAILED = 0x20 + NUD_NOARP = 0x40 + NUD_PERMANENT = 0x80 + NUD_NONE = 0x0 + IFA_UNSPEC = 0x0 + IFA_ADDRESS = 0x1 + IFA_LOCAL = 0x2 + IFA_LABEL = 0x3 + IFA_BROADCAST = 0x4 + IFA_ANYCAST = 0x5 + IFA_CACHEINFO = 0x6 + IFA_MULTICAST = 0x7 + IFA_FLAGS = 0x8 + IFA_RT_PRIORITY = 0x9 + IFA_TARGET_NETNSID = 0xa + IFLA_UNSPEC = 0x0 + IFLA_ADDRESS = 0x1 + IFLA_BROADCAST = 0x2 + IFLA_IFNAME = 0x3 + IFLA_MTU = 0x4 + IFLA_LINK = 0x5 + IFLA_QDISC = 0x6 + IFLA_STATS = 0x7 + IFLA_COST = 0x8 + IFLA_PRIORITY = 0x9 + IFLA_MASTER = 0xa + IFLA_WIRELESS = 0xb + IFLA_PROTINFO = 0xc + IFLA_TXQLEN = 0xd + IFLA_MAP = 0xe + IFLA_WEIGHT = 0xf + IFLA_OPERSTATE = 0x10 + IFLA_LINKMODE = 0x11 + IFLA_LINKINFO = 0x12 + IFLA_NET_NS_PID = 0x13 + IFLA_IFALIAS = 0x14 + IFLA_NUM_VF = 0x15 + IFLA_VFINFO_LIST = 0x16 + IFLA_STATS64 = 0x17 + IFLA_VF_PORTS = 0x18 + IFLA_PORT_SELF = 0x19 + IFLA_AF_SPEC = 0x1a + IFLA_GROUP = 0x1b + IFLA_NET_NS_FD = 0x1c + IFLA_EXT_MASK = 0x1d + IFLA_PROMISCUITY = 0x1e + IFLA_NUM_TX_QUEUES = 0x1f + IFLA_NUM_RX_QUEUES = 0x20 + IFLA_CARRIER = 0x21 + IFLA_PHYS_PORT_ID = 0x22 + IFLA_CARRIER_CHANGES = 0x23 + IFLA_PHYS_SWITCH_ID = 0x24 + IFLA_LINK_NETNSID = 0x25 + IFLA_PHYS_PORT_NAME = 0x26 + IFLA_PROTO_DOWN = 0x27 + IFLA_GSO_MAX_SEGS = 0x28 + IFLA_GSO_MAX_SIZE = 0x29 + IFLA_PAD = 0x2a + IFLA_XDP = 0x2b + IFLA_EVENT = 0x2c + IFLA_NEW_NETNSID = 0x2d + IFLA_IF_NETNSID = 0x2e + IFLA_TARGET_NETNSID = 0x2e + IFLA_CARRIER_UP_COUNT = 0x2f + IFLA_CARRIER_DOWN_COUNT = 0x30 + IFLA_NEW_IFINDEX = 0x31 + IFLA_MIN_MTU = 0x32 + IFLA_MAX_MTU = 0x33 + IFLA_MAX = 0x35 + IFLA_INFO_KIND = 0x1 + IFLA_INFO_DATA = 0x2 + IFLA_INFO_XSTATS = 0x3 + IFLA_INFO_SLAVE_KIND = 0x4 + IFLA_INFO_SLAVE_DATA = 0x5 + RT_SCOPE_UNIVERSE = 0x0 + RT_SCOPE_SITE = 0xc8 + RT_SCOPE_LINK = 0xfd + RT_SCOPE_HOST = 0xfe + RT_SCOPE_NOWHERE = 0xff + RT_TABLE_UNSPEC = 0x0 + RT_TABLE_COMPAT = 0xfc + RT_TABLE_DEFAULT = 0xfd + RT_TABLE_MAIN = 0xfe + RT_TABLE_LOCAL = 0xff + RT_TABLE_MAX = 0xffffffff + RTA_UNSPEC = 0x0 + RTA_DST = 0x1 + RTA_SRC = 0x2 + RTA_IIF = 0x3 + RTA_OIF = 0x4 + RTA_GATEWAY = 0x5 + RTA_PRIORITY = 0x6 + RTA_PREFSRC = 0x7 + RTA_METRICS = 0x8 + RTA_MULTIPATH = 0x9 + RTA_FLOW = 0xb + RTA_CACHEINFO = 0xc + RTA_TABLE = 0xf + RTA_MARK = 0x10 + RTA_MFC_STATS = 0x11 + RTA_VIA = 0x12 + RTA_NEWDST = 0x13 + RTA_PREF = 0x14 + RTA_ENCAP_TYPE = 0x15 + RTA_ENCAP = 0x16 + RTA_EXPIRES = 0x17 + RTA_PAD = 0x18 + RTA_UID = 0x19 + RTA_TTL_PROPAGATE = 0x1a + RTA_IP_PROTO = 0x1b + RTA_SPORT = 0x1c + RTA_DPORT = 0x1d + RTN_UNSPEC = 0x0 + RTN_UNICAST = 0x1 + RTN_LOCAL = 0x2 + RTN_BROADCAST = 0x3 + RTN_ANYCAST = 0x4 + RTN_MULTICAST = 0x5 + RTN_BLACKHOLE = 0x6 + RTN_UNREACHABLE = 0x7 + RTN_PROHIBIT = 0x8 + RTN_THROW = 0x9 + RTN_NAT = 0xa + RTN_XRESOLVE = 0xb + SizeofNlMsghdr = 0x10 + SizeofNlMsgerr = 0x14 + SizeofRtGenmsg = 0x1 + SizeofNlAttr = 0x4 + SizeofRtAttr = 0x4 + SizeofIfInfomsg = 0x10 + SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 + SizeofRtMsg = 0xc + SizeofRtNexthop = 0x8 + SizeofNdUseroptmsg = 0x10 + SizeofNdMsg = 0xc +) + +type NlMsghdr struct { + Len uint32 + Type uint16 + Flags uint16 + Seq uint32 + Pid uint32 +} + +type NlMsgerr struct { + Error int32 + Msg NlMsghdr +} + +type RtGenmsg struct { + Family uint8 +} + +type NlAttr struct { + Len uint16 + Type uint16 +} + +type RtAttr struct { + Len uint16 + Type uint16 +} + +type IfInfomsg struct { + Family uint8 + _ uint8 + Type uint16 + Index int32 + Flags uint32 + Change uint32 +} + +type IfAddrmsg struct { + Family uint8 + Prefixlen uint8 + Flags uint8 + Scope uint8 + Index uint32 +} + +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + +type RtMsg struct { + Family uint8 + Dst_len uint8 + Src_len uint8 + Tos uint8 + Table uint8 + Protocol uint8 + Scope uint8 + Type uint8 + Flags uint32 +} + +type RtNexthop struct { + Len uint16 + Flags uint8 + Hops uint8 + Ifindex int32 +} + +type NdUseroptmsg struct { + Family uint8 + Pad1 uint8 + Opts_len uint16 + Ifindex int32 + Icmp_type uint8 + Icmp_code uint8 + Pad2 uint16 + Pad3 uint32 +} + +type NdMsg struct { + Family uint8 + Pad1 uint8 + Pad2 uint16 + Ifindex int32 + State uint16 + Flags uint8 + Type uint8 +} + +const ( + SizeofSockFilter = 0x8 +) + +type SockFilter struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type SockFprog struct { + Len uint16 + Filter *SockFilter +} + +type InotifyEvent struct { + Wd int32 + Mask uint32 + Cookie uint32 + Len uint32 +} + +const SizeofInotifyEvent = 0x10 + +type Utsname struct { + Sysname [65]byte + Nodename [65]byte + Release [65]byte + Version [65]byte + Machine [65]byte + Domainname [65]byte +} + +const ( + AT_EMPTY_PATH = 0x1000 + AT_FDCWD = -0x64 + AT_NO_AUTOMOUNT = 0x800 + AT_REMOVEDIR = 0x200 + + AT_STATX_SYNC_AS_STAT = 0x0 + AT_STATX_FORCE_SYNC = 0x2000 + AT_STATX_DONT_SYNC = 0x4000 + + AT_SYMLINK_FOLLOW = 0x400 + AT_SYMLINK_NOFOLLOW = 0x100 + + AT_EACCESS = 0x200 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLIN = 0x1 + POLLPRI = 0x2 + POLLOUT = 0x4 + POLLERR = 0x8 + POLLHUP = 0x10 + POLLNVAL = 0x20 +) + +type SignalfdSiginfo struct { + Signo uint32 + Errno int32 + Code int32 + Pid uint32 + Uid uint32 + Fd int32 + Tid uint32 + Band uint32 + Overrun uint32 + Trapno uint32 + Status int32 + Int int32 + Ptr uint64 + Utime uint64 + Stime uint64 + Addr uint64 + Addr_lsb uint16 + _ uint16 + Syscall int32 + Call_addr uint64 + Arch uint32 + _ [28]uint8 +} + +const PERF_IOC_FLAG_GROUP = 0x1 + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + TASKSTATS_CMD_UNSPEC = 0x0 + TASKSTATS_CMD_GET = 0x1 + TASKSTATS_CMD_NEW = 0x2 + TASKSTATS_TYPE_UNSPEC = 0x0 + TASKSTATS_TYPE_PID = 0x1 + TASKSTATS_TYPE_TGID = 0x2 + TASKSTATS_TYPE_STATS = 0x3 + TASKSTATS_TYPE_AGGR_PID = 0x4 + TASKSTATS_TYPE_AGGR_TGID = 0x5 + TASKSTATS_TYPE_NULL = 0x6 + TASKSTATS_CMD_ATTR_UNSPEC = 0x0 + TASKSTATS_CMD_ATTR_PID = 0x1 + TASKSTATS_CMD_ATTR_TGID = 0x2 + TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 + TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 +) + +type CGroupStats struct { + Sleeping uint64 + Running uint64 + Stopped uint64 + Uninterruptible uint64 + Io_wait uint64 +} + +const ( + CGROUPSTATS_CMD_UNSPEC = 0x3 + CGROUPSTATS_CMD_GET = 0x4 + CGROUPSTATS_CMD_NEW = 0x5 + CGROUPSTATS_TYPE_UNSPEC = 0x0 + CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 + CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 + CGROUPSTATS_CMD_ATTR_FD = 0x1 +) + +type Genlmsghdr struct { + Cmd uint8 + Version uint8 + Reserved uint16 +} + +const ( + CTRL_CMD_UNSPEC = 0x0 + CTRL_CMD_NEWFAMILY = 0x1 + CTRL_CMD_DELFAMILY = 0x2 + CTRL_CMD_GETFAMILY = 0x3 + CTRL_CMD_NEWOPS = 0x4 + CTRL_CMD_DELOPS = 0x5 + CTRL_CMD_GETOPS = 0x6 + CTRL_CMD_NEWMCAST_GRP = 0x7 + CTRL_CMD_DELMCAST_GRP = 0x8 + CTRL_CMD_GETMCAST_GRP = 0x9 + CTRL_ATTR_UNSPEC = 0x0 + CTRL_ATTR_FAMILY_ID = 0x1 + CTRL_ATTR_FAMILY_NAME = 0x2 + CTRL_ATTR_VERSION = 0x3 + CTRL_ATTR_HDRSIZE = 0x4 + CTRL_ATTR_MAXATTR = 0x5 + CTRL_ATTR_OPS = 0x6 + CTRL_ATTR_MCAST_GROUPS = 0x7 + CTRL_ATTR_OP_UNSPEC = 0x0 + CTRL_ATTR_OP_ID = 0x1 + CTRL_ATTR_OP_FLAGS = 0x2 + CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 + CTRL_ATTR_MCAST_GRP_NAME = 0x1 + CTRL_ATTR_MCAST_GRP_ID = 0x2 +) + +const ( + _CPU_SETSIZE = 0x400 +) + +const ( + BDADDR_BREDR = 0x0 + BDADDR_LE_PUBLIC = 0x1 + BDADDR_LE_RANDOM = 0x2 +) + +type PerfEventAttr struct { + Type uint32 + Size uint32 + Config uint64 + Sample uint64 + Sample_type uint64 + Read_format uint64 + Bits uint64 + Wakeup uint32 + Bp_type uint32 + Ext1 uint64 + Ext2 uint64 + Branch_sample_type uint64 + Sample_regs_user uint64 + Sample_stack_user uint32 + Clockid int32 + Sample_regs_intr uint64 + Aux_watermark uint32 + Sample_max_stack uint16 + _ uint16 +} + +type PerfEventMmapPage struct { + Version uint32 + Compat_version uint32 + Lock uint32 + Index uint32 + Offset int64 + Time_enabled uint64 + Time_running uint64 + Capabilities uint64 + Pmc_width uint16 + Time_shift uint16 + Time_mult uint32 + Time_offset uint64 + Time_zero uint64 + Size uint32 + _ [948]uint8 + Data_head uint64 + Data_tail uint64 + Data_offset uint64 + Data_size uint64 + Aux_head uint64 + Aux_tail uint64 + Aux_offset uint64 + Aux_size uint64 +} + +const ( + PerfBitDisabled uint64 = CBitFieldMaskBit0 + PerfBitInherit = CBitFieldMaskBit1 + PerfBitPinned = CBitFieldMaskBit2 + PerfBitExclusive = CBitFieldMaskBit3 + PerfBitExcludeUser = CBitFieldMaskBit4 + PerfBitExcludeKernel = CBitFieldMaskBit5 + PerfBitExcludeHv = CBitFieldMaskBit6 + PerfBitExcludeIdle = CBitFieldMaskBit7 + PerfBitMmap = CBitFieldMaskBit8 + PerfBitComm = CBitFieldMaskBit9 + PerfBitFreq = CBitFieldMaskBit10 + PerfBitInheritStat = CBitFieldMaskBit11 + PerfBitEnableOnExec = CBitFieldMaskBit12 + PerfBitTask = CBitFieldMaskBit13 + PerfBitWatermark = CBitFieldMaskBit14 + PerfBitPreciseIPBit1 = CBitFieldMaskBit15 + PerfBitPreciseIPBit2 = CBitFieldMaskBit16 + PerfBitMmapData = CBitFieldMaskBit17 + PerfBitSampleIDAll = CBitFieldMaskBit18 + PerfBitExcludeHost = CBitFieldMaskBit19 + PerfBitExcludeGuest = CBitFieldMaskBit20 + PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 + PerfBitExcludeCallchainUser = CBitFieldMaskBit22 + PerfBitMmap2 = CBitFieldMaskBit23 + PerfBitCommExec = CBitFieldMaskBit24 + PerfBitUseClockID = CBitFieldMaskBit25 + PerfBitContextSwitch = CBitFieldMaskBit26 +) + +const ( + PERF_TYPE_HARDWARE = 0x0 + PERF_TYPE_SOFTWARE = 0x1 + PERF_TYPE_TRACEPOINT = 0x2 + PERF_TYPE_HW_CACHE = 0x3 + PERF_TYPE_RAW = 0x4 + PERF_TYPE_BREAKPOINT = 0x5 + + PERF_COUNT_HW_CPU_CYCLES = 0x0 + PERF_COUNT_HW_INSTRUCTIONS = 0x1 + PERF_COUNT_HW_CACHE_REFERENCES = 0x2 + PERF_COUNT_HW_CACHE_MISSES = 0x3 + PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 + PERF_COUNT_HW_BRANCH_MISSES = 0x5 + PERF_COUNT_HW_BUS_CYCLES = 0x6 + PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 + PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 + PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 + + PERF_COUNT_HW_CACHE_L1D = 0x0 + PERF_COUNT_HW_CACHE_L1I = 0x1 + PERF_COUNT_HW_CACHE_LL = 0x2 + PERF_COUNT_HW_CACHE_DTLB = 0x3 + PERF_COUNT_HW_CACHE_ITLB = 0x4 + PERF_COUNT_HW_CACHE_BPU = 0x5 + PERF_COUNT_HW_CACHE_NODE = 0x6 + + PERF_COUNT_HW_CACHE_OP_READ = 0x0 + PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 + PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 + + PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 + PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 + + PERF_COUNT_SW_CPU_CLOCK = 0x0 + PERF_COUNT_SW_TASK_CLOCK = 0x1 + PERF_COUNT_SW_PAGE_FAULTS = 0x2 + PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 + PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 + PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 + PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 + PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 + PERF_COUNT_SW_EMULATION_FAULTS = 0x8 + PERF_COUNT_SW_DUMMY = 0x9 + PERF_COUNT_SW_BPF_OUTPUT = 0xa + + PERF_SAMPLE_IP = 0x1 + PERF_SAMPLE_TID = 0x2 + PERF_SAMPLE_TIME = 0x4 + PERF_SAMPLE_ADDR = 0x8 + PERF_SAMPLE_READ = 0x10 + PERF_SAMPLE_CALLCHAIN = 0x20 + PERF_SAMPLE_ID = 0x40 + PERF_SAMPLE_CPU = 0x80 + PERF_SAMPLE_PERIOD = 0x100 + PERF_SAMPLE_STREAM_ID = 0x200 + PERF_SAMPLE_RAW = 0x400 + PERF_SAMPLE_BRANCH_STACK = 0x800 + + PERF_SAMPLE_BRANCH_USER = 0x1 + PERF_SAMPLE_BRANCH_KERNEL = 0x2 + PERF_SAMPLE_BRANCH_HV = 0x4 + PERF_SAMPLE_BRANCH_ANY = 0x8 + PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 + PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 + PERF_SAMPLE_BRANCH_IND_CALL = 0x40 + PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 + PERF_SAMPLE_BRANCH_IN_TX = 0x100 + PERF_SAMPLE_BRANCH_NO_TX = 0x200 + PERF_SAMPLE_BRANCH_COND = 0x400 + PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 + PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 + PERF_SAMPLE_BRANCH_CALL = 0x2000 + PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 + PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 + PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 + + PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 + PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 + PERF_FORMAT_ID = 0x4 + PERF_FORMAT_GROUP = 0x8 + + PERF_RECORD_MMAP = 0x1 + PERF_RECORD_LOST = 0x2 + PERF_RECORD_COMM = 0x3 + PERF_RECORD_EXIT = 0x4 + PERF_RECORD_THROTTLE = 0x5 + PERF_RECORD_UNTHROTTLE = 0x6 + PERF_RECORD_FORK = 0x7 + PERF_RECORD_READ = 0x8 + PERF_RECORD_SAMPLE = 0x9 + PERF_RECORD_MMAP2 = 0xa + PERF_RECORD_AUX = 0xb + PERF_RECORD_ITRACE_START = 0xc + PERF_RECORD_LOST_SAMPLES = 0xd + PERF_RECORD_SWITCH = 0xe + PERF_RECORD_SWITCH_CPU_WIDE = 0xf + PERF_RECORD_NAMESPACES = 0x10 + + PERF_CONTEXT_HV = -0x20 + PERF_CONTEXT_KERNEL = -0x80 + PERF_CONTEXT_USER = -0x200 + + PERF_CONTEXT_GUEST = -0x800 + PERF_CONTEXT_GUEST_KERNEL = -0x880 + PERF_CONTEXT_GUEST_USER = -0xa00 + + PERF_FLAG_FD_NO_GROUP = 0x1 + PERF_FLAG_FD_OUTPUT = 0x2 + PERF_FLAG_PID_CGROUP = 0x4 + PERF_FLAG_FD_CLOEXEC = 0x8 +) + +type TCPMD5Sig struct { + Addr SockaddrStorage + Flags uint8 + Prefixlen uint8 + Keylen uint16 + _ uint32 + Key [80]uint8 +} + +type HDDriveCmdHdr struct { + Command uint8 + Number uint8 + Feature uint8 + Count uint8 +} + +type HDDriveID struct { + Config uint16 + Cyls uint16 + Reserved2 uint16 + Heads uint16 + Track_bytes uint16 + Sector_bytes uint16 + Sectors uint16 + Vendor0 uint16 + Vendor1 uint16 + Vendor2 uint16 + Serial_no [20]uint8 + Buf_type uint16 + Buf_size uint16 + Ecc_bytes uint16 + Fw_rev [8]uint8 + Model [40]uint8 + Max_multsect uint8 + Vendor3 uint8 + Dword_io uint16 + Vendor4 uint8 + Capability uint8 + Reserved50 uint16 + Vendor5 uint8 + TPIO uint8 + Vendor6 uint8 + TDMA uint8 + Field_valid uint16 + Cur_cyls uint16 + Cur_heads uint16 + Cur_sectors uint16 + Cur_capacity0 uint16 + Cur_capacity1 uint16 + Multsect uint8 + Multsect_valid uint8 + Lba_capacity uint32 + Dma_1word uint16 + Dma_mword uint16 + Eide_pio_modes uint16 + Eide_dma_min uint16 + Eide_dma_time uint16 + Eide_pio uint16 + Eide_pio_iordy uint16 + Words69_70 [2]uint16 + Words71_74 [4]uint16 + Queue_depth uint16 + Words76_79 [4]uint16 + Major_rev_num uint16 + Minor_rev_num uint16 + Command_set_1 uint16 + Command_set_2 uint16 + Cfsse uint16 + Cfs_enable_1 uint16 + Cfs_enable_2 uint16 + Csf_default uint16 + Dma_ultra uint16 + Trseuc uint16 + TrsEuc uint16 + CurAPMvalues uint16 + Mprc uint16 + Hw_config uint16 + Acoustic uint16 + Msrqs uint16 + Sxfert uint16 + Sal uint16 + Spg uint32 + Lba_capacity_2 uint64 + Words104_125 [22]uint16 + Last_lun uint16 + Word127 uint16 + Dlf uint16 + Csfo uint16 + Words130_155 [26]uint16 + Word156 uint16 + Words157_159 [3]uint16 + Cfa_power uint16 + Words161_175 [15]uint16 + Words176_205 [30]uint16 + Words206_254 [49]uint16 + Integrity_word uint16 +} + +const ( + ST_MANDLOCK = 0x40 + ST_NOATIME = 0x400 + ST_NODEV = 0x4 + ST_NODIRATIME = 0x800 + ST_NOEXEC = 0x8 + ST_NOSUID = 0x2 + ST_RDONLY = 0x1 + ST_RELATIME = 0x1000 + ST_SYNCHRONOUS = 0x10 +) + +type Tpacket2Hdr struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Nsec uint32 + Vlan_tci uint16 + Vlan_tpid uint16 + _ [4]uint8 +} + +type Tpacket3Hdr struct { + Next_offset uint32 + Sec uint32 + Nsec uint32 + Snaplen uint32 + Len uint32 + Status uint32 + Mac uint16 + Net uint16 + Hv1 TpacketHdrVariant1 + _ [8]uint8 +} + +type TpacketHdrVariant1 struct { + Rxhash uint32 + Vlan_tci uint32 + Vlan_tpid uint16 + _ uint16 +} + +type TpacketBlockDesc struct { + Version uint32 + To_priv uint32 + Hdr [40]byte +} + +type TpacketBDTS struct { + Sec uint32 + Usec uint32 +} + +type TpacketHdrV1 struct { + Block_status uint32 + Num_pkts uint32 + Offset_to_first_pkt uint32 + Blk_len uint32 + Seq_num uint64 + Ts_first_pkt TpacketBDTS + Ts_last_pkt TpacketBDTS +} + +type TpacketReq struct { + Block_size uint32 + Block_nr uint32 + Frame_size uint32 + Frame_nr uint32 +} + +type TpacketReq3 struct { + Block_size uint32 + Block_nr uint32 + Frame_size uint32 + Frame_nr uint32 + Retire_blk_tov uint32 + Sizeof_priv uint32 + Feature_req_word uint32 +} + +type TpacketStats struct { + Packets uint32 + Drops uint32 +} + +type TpacketStatsV3 struct { + Packets uint32 + Drops uint32 + Freeze_q_cnt uint32 +} + +type TpacketAuxdata struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Vlan_tci uint16 + Vlan_tpid uint16 +} + +const ( + TPACKET_V1 = 0x0 + TPACKET_V2 = 0x1 + TPACKET_V3 = 0x2 +) + +const ( + SizeofTpacket2Hdr = 0x20 + SizeofTpacket3Hdr = 0x30 + + SizeofTpacketStats = 0x8 + SizeofTpacketStatsV3 = 0xc +) + +const ( + NF_INET_PRE_ROUTING = 0x0 + NF_INET_LOCAL_IN = 0x1 + NF_INET_FORWARD = 0x2 + NF_INET_LOCAL_OUT = 0x3 + NF_INET_POST_ROUTING = 0x4 + NF_INET_NUMHOOKS = 0x5 +) + +const ( + NF_NETDEV_INGRESS = 0x0 + NF_NETDEV_NUMHOOKS = 0x1 +) + +const ( + NFPROTO_UNSPEC = 0x0 + NFPROTO_INET = 0x1 + NFPROTO_IPV4 = 0x2 + NFPROTO_ARP = 0x3 + NFPROTO_NETDEV = 0x5 + NFPROTO_BRIDGE = 0x7 + NFPROTO_IPV6 = 0xa + NFPROTO_DECNET = 0xc + NFPROTO_NUMPROTO = 0xd +) + +type Nfgenmsg struct { + Nfgen_family uint8 + Version uint8 + Res_id uint16 +} + +const ( + NFNL_BATCH_UNSPEC = 0x0 + NFNL_BATCH_GENID = 0x1 +) + +const ( + NFT_REG_VERDICT = 0x0 + NFT_REG_1 = 0x1 + NFT_REG_2 = 0x2 + NFT_REG_3 = 0x3 + NFT_REG_4 = 0x4 + NFT_REG32_00 = 0x8 + NFT_REG32_01 = 0x9 + NFT_REG32_02 = 0xa + NFT_REG32_03 = 0xb + NFT_REG32_04 = 0xc + NFT_REG32_05 = 0xd + NFT_REG32_06 = 0xe + NFT_REG32_07 = 0xf + NFT_REG32_08 = 0x10 + NFT_REG32_09 = 0x11 + NFT_REG32_10 = 0x12 + NFT_REG32_11 = 0x13 + NFT_REG32_12 = 0x14 + NFT_REG32_13 = 0x15 + NFT_REG32_14 = 0x16 + NFT_REG32_15 = 0x17 + NFT_CONTINUE = -0x1 + NFT_BREAK = -0x2 + NFT_JUMP = -0x3 + NFT_GOTO = -0x4 + NFT_RETURN = -0x5 + NFT_MSG_NEWTABLE = 0x0 + NFT_MSG_GETTABLE = 0x1 + NFT_MSG_DELTABLE = 0x2 + NFT_MSG_NEWCHAIN = 0x3 + NFT_MSG_GETCHAIN = 0x4 + NFT_MSG_DELCHAIN = 0x5 + NFT_MSG_NEWRULE = 0x6 + NFT_MSG_GETRULE = 0x7 + NFT_MSG_DELRULE = 0x8 + NFT_MSG_NEWSET = 0x9 + NFT_MSG_GETSET = 0xa + NFT_MSG_DELSET = 0xb + NFT_MSG_NEWSETELEM = 0xc + NFT_MSG_GETSETELEM = 0xd + NFT_MSG_DELSETELEM = 0xe + NFT_MSG_NEWGEN = 0xf + NFT_MSG_GETGEN = 0x10 + NFT_MSG_TRACE = 0x11 + NFT_MSG_NEWOBJ = 0x12 + NFT_MSG_GETOBJ = 0x13 + NFT_MSG_DELOBJ = 0x14 + NFT_MSG_GETOBJ_RESET = 0x15 + NFT_MSG_MAX = 0x19 + NFTA_LIST_UNPEC = 0x0 + NFTA_LIST_ELEM = 0x1 + NFTA_HOOK_UNSPEC = 0x0 + NFTA_HOOK_HOOKNUM = 0x1 + NFTA_HOOK_PRIORITY = 0x2 + NFTA_HOOK_DEV = 0x3 + NFT_TABLE_F_DORMANT = 0x1 + NFTA_TABLE_UNSPEC = 0x0 + NFTA_TABLE_NAME = 0x1 + NFTA_TABLE_FLAGS = 0x2 + NFTA_TABLE_USE = 0x3 + NFTA_CHAIN_UNSPEC = 0x0 + NFTA_CHAIN_TABLE = 0x1 + NFTA_CHAIN_HANDLE = 0x2 + NFTA_CHAIN_NAME = 0x3 + NFTA_CHAIN_HOOK = 0x4 + NFTA_CHAIN_POLICY = 0x5 + NFTA_CHAIN_USE = 0x6 + NFTA_CHAIN_TYPE = 0x7 + NFTA_CHAIN_COUNTERS = 0x8 + NFTA_CHAIN_PAD = 0x9 + NFTA_RULE_UNSPEC = 0x0 + NFTA_RULE_TABLE = 0x1 + NFTA_RULE_CHAIN = 0x2 + NFTA_RULE_HANDLE = 0x3 + NFTA_RULE_EXPRESSIONS = 0x4 + NFTA_RULE_COMPAT = 0x5 + NFTA_RULE_POSITION = 0x6 + NFTA_RULE_USERDATA = 0x7 + NFTA_RULE_PAD = 0x8 + NFTA_RULE_ID = 0x9 + NFT_RULE_COMPAT_F_INV = 0x2 + NFT_RULE_COMPAT_F_MASK = 0x2 + NFTA_RULE_COMPAT_UNSPEC = 0x0 + NFTA_RULE_COMPAT_PROTO = 0x1 + NFTA_RULE_COMPAT_FLAGS = 0x2 + NFT_SET_ANONYMOUS = 0x1 + NFT_SET_CONSTANT = 0x2 + NFT_SET_INTERVAL = 0x4 + NFT_SET_MAP = 0x8 + NFT_SET_TIMEOUT = 0x10 + NFT_SET_EVAL = 0x20 + NFT_SET_OBJECT = 0x40 + NFT_SET_POL_PERFORMANCE = 0x0 + NFT_SET_POL_MEMORY = 0x1 + NFTA_SET_DESC_UNSPEC = 0x0 + NFTA_SET_DESC_SIZE = 0x1 + NFTA_SET_UNSPEC = 0x0 + NFTA_SET_TABLE = 0x1 + NFTA_SET_NAME = 0x2 + NFTA_SET_FLAGS = 0x3 + NFTA_SET_KEY_TYPE = 0x4 + NFTA_SET_KEY_LEN = 0x5 + NFTA_SET_DATA_TYPE = 0x6 + NFTA_SET_DATA_LEN = 0x7 + NFTA_SET_POLICY = 0x8 + NFTA_SET_DESC = 0x9 + NFTA_SET_ID = 0xa + NFTA_SET_TIMEOUT = 0xb + NFTA_SET_GC_INTERVAL = 0xc + NFTA_SET_USERDATA = 0xd + NFTA_SET_PAD = 0xe + NFTA_SET_OBJ_TYPE = 0xf + NFT_SET_ELEM_INTERVAL_END = 0x1 + NFTA_SET_ELEM_UNSPEC = 0x0 + NFTA_SET_ELEM_KEY = 0x1 + NFTA_SET_ELEM_DATA = 0x2 + NFTA_SET_ELEM_FLAGS = 0x3 + NFTA_SET_ELEM_TIMEOUT = 0x4 + NFTA_SET_ELEM_EXPIRATION = 0x5 + NFTA_SET_ELEM_USERDATA = 0x6 + NFTA_SET_ELEM_EXPR = 0x7 + NFTA_SET_ELEM_PAD = 0x8 + NFTA_SET_ELEM_OBJREF = 0x9 + NFTA_SET_ELEM_LIST_UNSPEC = 0x0 + NFTA_SET_ELEM_LIST_TABLE = 0x1 + NFTA_SET_ELEM_LIST_SET = 0x2 + NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 + NFTA_SET_ELEM_LIST_SET_ID = 0x4 + NFT_DATA_VALUE = 0x0 + NFT_DATA_VERDICT = 0xffffff00 + NFTA_DATA_UNSPEC = 0x0 + NFTA_DATA_VALUE = 0x1 + NFTA_DATA_VERDICT = 0x2 + NFTA_VERDICT_UNSPEC = 0x0 + NFTA_VERDICT_CODE = 0x1 + NFTA_VERDICT_CHAIN = 0x2 + NFTA_EXPR_UNSPEC = 0x0 + NFTA_EXPR_NAME = 0x1 + NFTA_EXPR_DATA = 0x2 + NFTA_IMMEDIATE_UNSPEC = 0x0 + NFTA_IMMEDIATE_DREG = 0x1 + NFTA_IMMEDIATE_DATA = 0x2 + NFTA_BITWISE_UNSPEC = 0x0 + NFTA_BITWISE_SREG = 0x1 + NFTA_BITWISE_DREG = 0x2 + NFTA_BITWISE_LEN = 0x3 + NFTA_BITWISE_MASK = 0x4 + NFTA_BITWISE_XOR = 0x5 + NFT_BYTEORDER_NTOH = 0x0 + NFT_BYTEORDER_HTON = 0x1 + NFTA_BYTEORDER_UNSPEC = 0x0 + NFTA_BYTEORDER_SREG = 0x1 + NFTA_BYTEORDER_DREG = 0x2 + NFTA_BYTEORDER_OP = 0x3 + NFTA_BYTEORDER_LEN = 0x4 + NFTA_BYTEORDER_SIZE = 0x5 + NFT_CMP_EQ = 0x0 + NFT_CMP_NEQ = 0x1 + NFT_CMP_LT = 0x2 + NFT_CMP_LTE = 0x3 + NFT_CMP_GT = 0x4 + NFT_CMP_GTE = 0x5 + NFTA_CMP_UNSPEC = 0x0 + NFTA_CMP_SREG = 0x1 + NFTA_CMP_OP = 0x2 + NFTA_CMP_DATA = 0x3 + NFT_RANGE_EQ = 0x0 + NFT_RANGE_NEQ = 0x1 + NFTA_RANGE_UNSPEC = 0x0 + NFTA_RANGE_SREG = 0x1 + NFTA_RANGE_OP = 0x2 + NFTA_RANGE_FROM_DATA = 0x3 + NFTA_RANGE_TO_DATA = 0x4 + NFT_LOOKUP_F_INV = 0x1 + NFTA_LOOKUP_UNSPEC = 0x0 + NFTA_LOOKUP_SET = 0x1 + NFTA_LOOKUP_SREG = 0x2 + NFTA_LOOKUP_DREG = 0x3 + NFTA_LOOKUP_SET_ID = 0x4 + NFTA_LOOKUP_FLAGS = 0x5 + NFT_DYNSET_OP_ADD = 0x0 + NFT_DYNSET_OP_UPDATE = 0x1 + NFT_DYNSET_F_INV = 0x1 + NFTA_DYNSET_UNSPEC = 0x0 + NFTA_DYNSET_SET_NAME = 0x1 + NFTA_DYNSET_SET_ID = 0x2 + NFTA_DYNSET_OP = 0x3 + NFTA_DYNSET_SREG_KEY = 0x4 + NFTA_DYNSET_SREG_DATA = 0x5 + NFTA_DYNSET_TIMEOUT = 0x6 + NFTA_DYNSET_EXPR = 0x7 + NFTA_DYNSET_PAD = 0x8 + NFTA_DYNSET_FLAGS = 0x9 + NFT_PAYLOAD_LL_HEADER = 0x0 + NFT_PAYLOAD_NETWORK_HEADER = 0x1 + NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 + NFT_PAYLOAD_CSUM_NONE = 0x0 + NFT_PAYLOAD_CSUM_INET = 0x1 + NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 + NFTA_PAYLOAD_UNSPEC = 0x0 + NFTA_PAYLOAD_DREG = 0x1 + NFTA_PAYLOAD_BASE = 0x2 + NFTA_PAYLOAD_OFFSET = 0x3 + NFTA_PAYLOAD_LEN = 0x4 + NFTA_PAYLOAD_SREG = 0x5 + NFTA_PAYLOAD_CSUM_TYPE = 0x6 + NFTA_PAYLOAD_CSUM_OFFSET = 0x7 + NFTA_PAYLOAD_CSUM_FLAGS = 0x8 + NFT_EXTHDR_F_PRESENT = 0x1 + NFT_EXTHDR_OP_IPV6 = 0x0 + NFT_EXTHDR_OP_TCPOPT = 0x1 + NFTA_EXTHDR_UNSPEC = 0x0 + NFTA_EXTHDR_DREG = 0x1 + NFTA_EXTHDR_TYPE = 0x2 + NFTA_EXTHDR_OFFSET = 0x3 + NFTA_EXTHDR_LEN = 0x4 + NFTA_EXTHDR_FLAGS = 0x5 + NFTA_EXTHDR_OP = 0x6 + NFTA_EXTHDR_SREG = 0x7 + NFT_META_LEN = 0x0 + NFT_META_PROTOCOL = 0x1 + NFT_META_PRIORITY = 0x2 + NFT_META_MARK = 0x3 + NFT_META_IIF = 0x4 + NFT_META_OIF = 0x5 + NFT_META_IIFNAME = 0x6 + NFT_META_OIFNAME = 0x7 + NFT_META_IIFTYPE = 0x8 + NFT_META_OIFTYPE = 0x9 + NFT_META_SKUID = 0xa + NFT_META_SKGID = 0xb + NFT_META_NFTRACE = 0xc + NFT_META_RTCLASSID = 0xd + NFT_META_SECMARK = 0xe + NFT_META_NFPROTO = 0xf + NFT_META_L4PROTO = 0x10 + NFT_META_BRI_IIFNAME = 0x11 + NFT_META_BRI_OIFNAME = 0x12 + NFT_META_PKTTYPE = 0x13 + NFT_META_CPU = 0x14 + NFT_META_IIFGROUP = 0x15 + NFT_META_OIFGROUP = 0x16 + NFT_META_CGROUP = 0x17 + NFT_META_PRANDOM = 0x18 + NFT_RT_CLASSID = 0x0 + NFT_RT_NEXTHOP4 = 0x1 + NFT_RT_NEXTHOP6 = 0x2 + NFT_RT_TCPMSS = 0x3 + NFT_HASH_JENKINS = 0x0 + NFT_HASH_SYM = 0x1 + NFTA_HASH_UNSPEC = 0x0 + NFTA_HASH_SREG = 0x1 + NFTA_HASH_DREG = 0x2 + NFTA_HASH_LEN = 0x3 + NFTA_HASH_MODULUS = 0x4 + NFTA_HASH_SEED = 0x5 + NFTA_HASH_OFFSET = 0x6 + NFTA_HASH_TYPE = 0x7 + NFTA_META_UNSPEC = 0x0 + NFTA_META_DREG = 0x1 + NFTA_META_KEY = 0x2 + NFTA_META_SREG = 0x3 + NFTA_RT_UNSPEC = 0x0 + NFTA_RT_DREG = 0x1 + NFTA_RT_KEY = 0x2 + NFT_CT_STATE = 0x0 + NFT_CT_DIRECTION = 0x1 + NFT_CT_STATUS = 0x2 + NFT_CT_MARK = 0x3 + NFT_CT_SECMARK = 0x4 + NFT_CT_EXPIRATION = 0x5 + NFT_CT_HELPER = 0x6 + NFT_CT_L3PROTOCOL = 0x7 + NFT_CT_SRC = 0x8 + NFT_CT_DST = 0x9 + NFT_CT_PROTOCOL = 0xa + NFT_CT_PROTO_SRC = 0xb + NFT_CT_PROTO_DST = 0xc + NFT_CT_LABELS = 0xd + NFT_CT_PKTS = 0xe + NFT_CT_BYTES = 0xf + NFT_CT_AVGPKT = 0x10 + NFT_CT_ZONE = 0x11 + NFT_CT_EVENTMASK = 0x12 + NFTA_CT_UNSPEC = 0x0 + NFTA_CT_DREG = 0x1 + NFTA_CT_KEY = 0x2 + NFTA_CT_DIRECTION = 0x3 + NFTA_CT_SREG = 0x4 + NFT_LIMIT_PKTS = 0x0 + NFT_LIMIT_PKT_BYTES = 0x1 + NFT_LIMIT_F_INV = 0x1 + NFTA_LIMIT_UNSPEC = 0x0 + NFTA_LIMIT_RATE = 0x1 + NFTA_LIMIT_UNIT = 0x2 + NFTA_LIMIT_BURST = 0x3 + NFTA_LIMIT_TYPE = 0x4 + NFTA_LIMIT_FLAGS = 0x5 + NFTA_LIMIT_PAD = 0x6 + NFTA_COUNTER_UNSPEC = 0x0 + NFTA_COUNTER_BYTES = 0x1 + NFTA_COUNTER_PACKETS = 0x2 + NFTA_COUNTER_PAD = 0x3 + NFTA_LOG_UNSPEC = 0x0 + NFTA_LOG_GROUP = 0x1 + NFTA_LOG_PREFIX = 0x2 + NFTA_LOG_SNAPLEN = 0x3 + NFTA_LOG_QTHRESHOLD = 0x4 + NFTA_LOG_LEVEL = 0x5 + NFTA_LOG_FLAGS = 0x6 + NFTA_QUEUE_UNSPEC = 0x0 + NFTA_QUEUE_NUM = 0x1 + NFTA_QUEUE_TOTAL = 0x2 + NFTA_QUEUE_FLAGS = 0x3 + NFTA_QUEUE_SREG_QNUM = 0x4 + NFT_QUOTA_F_INV = 0x1 + NFT_QUOTA_F_DEPLETED = 0x2 + NFTA_QUOTA_UNSPEC = 0x0 + NFTA_QUOTA_BYTES = 0x1 + NFTA_QUOTA_FLAGS = 0x2 + NFTA_QUOTA_PAD = 0x3 + NFTA_QUOTA_CONSUMED = 0x4 + NFT_REJECT_ICMP_UNREACH = 0x0 + NFT_REJECT_TCP_RST = 0x1 + NFT_REJECT_ICMPX_UNREACH = 0x2 + NFT_REJECT_ICMPX_NO_ROUTE = 0x0 + NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 + NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 + NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 + NFTA_REJECT_UNSPEC = 0x0 + NFTA_REJECT_TYPE = 0x1 + NFTA_REJECT_ICMP_CODE = 0x2 + NFT_NAT_SNAT = 0x0 + NFT_NAT_DNAT = 0x1 + NFTA_NAT_UNSPEC = 0x0 + NFTA_NAT_TYPE = 0x1 + NFTA_NAT_FAMILY = 0x2 + NFTA_NAT_REG_ADDR_MIN = 0x3 + NFTA_NAT_REG_ADDR_MAX = 0x4 + NFTA_NAT_REG_PROTO_MIN = 0x5 + NFTA_NAT_REG_PROTO_MAX = 0x6 + NFTA_NAT_FLAGS = 0x7 + NFTA_MASQ_UNSPEC = 0x0 + NFTA_MASQ_FLAGS = 0x1 + NFTA_MASQ_REG_PROTO_MIN = 0x2 + NFTA_MASQ_REG_PROTO_MAX = 0x3 + NFTA_REDIR_UNSPEC = 0x0 + NFTA_REDIR_REG_PROTO_MIN = 0x1 + NFTA_REDIR_REG_PROTO_MAX = 0x2 + NFTA_REDIR_FLAGS = 0x3 + NFTA_DUP_UNSPEC = 0x0 + NFTA_DUP_SREG_ADDR = 0x1 + NFTA_DUP_SREG_DEV = 0x2 + NFTA_FWD_UNSPEC = 0x0 + NFTA_FWD_SREG_DEV = 0x1 + NFTA_OBJREF_UNSPEC = 0x0 + NFTA_OBJREF_IMM_TYPE = 0x1 + NFTA_OBJREF_IMM_NAME = 0x2 + NFTA_OBJREF_SET_SREG = 0x3 + NFTA_OBJREF_SET_NAME = 0x4 + NFTA_OBJREF_SET_ID = 0x5 + NFTA_GEN_UNSPEC = 0x0 + NFTA_GEN_ID = 0x1 + NFTA_GEN_PROC_PID = 0x2 + NFTA_GEN_PROC_NAME = 0x3 + NFTA_FIB_UNSPEC = 0x0 + NFTA_FIB_DREG = 0x1 + NFTA_FIB_RESULT = 0x2 + NFTA_FIB_FLAGS = 0x3 + NFT_FIB_RESULT_UNSPEC = 0x0 + NFT_FIB_RESULT_OIF = 0x1 + NFT_FIB_RESULT_OIFNAME = 0x2 + NFT_FIB_RESULT_ADDRTYPE = 0x3 + NFTA_FIB_F_SADDR = 0x1 + NFTA_FIB_F_DADDR = 0x2 + NFTA_FIB_F_MARK = 0x4 + NFTA_FIB_F_IIF = 0x8 + NFTA_FIB_F_OIF = 0x10 + NFTA_FIB_F_PRESENT = 0x20 + NFTA_CT_HELPER_UNSPEC = 0x0 + NFTA_CT_HELPER_NAME = 0x1 + NFTA_CT_HELPER_L3PROTO = 0x2 + NFTA_CT_HELPER_L4PROTO = 0x3 + NFTA_OBJ_UNSPEC = 0x0 + NFTA_OBJ_TABLE = 0x1 + NFTA_OBJ_NAME = 0x2 + NFTA_OBJ_TYPE = 0x3 + NFTA_OBJ_DATA = 0x4 + NFTA_OBJ_USE = 0x5 + NFTA_TRACE_UNSPEC = 0x0 + NFTA_TRACE_TABLE = 0x1 + NFTA_TRACE_CHAIN = 0x2 + NFTA_TRACE_RULE_HANDLE = 0x3 + NFTA_TRACE_TYPE = 0x4 + NFTA_TRACE_VERDICT = 0x5 + NFTA_TRACE_ID = 0x6 + NFTA_TRACE_LL_HEADER = 0x7 + NFTA_TRACE_NETWORK_HEADER = 0x8 + NFTA_TRACE_TRANSPORT_HEADER = 0x9 + NFTA_TRACE_IIF = 0xa + NFTA_TRACE_IIFTYPE = 0xb + NFTA_TRACE_OIF = 0xc + NFTA_TRACE_OIFTYPE = 0xd + NFTA_TRACE_MARK = 0xe + NFTA_TRACE_NFPROTO = 0xf + NFTA_TRACE_POLICY = 0x10 + NFTA_TRACE_PAD = 0x11 + NFT_TRACETYPE_UNSPEC = 0x0 + NFT_TRACETYPE_POLICY = 0x1 + NFT_TRACETYPE_RETURN = 0x2 + NFT_TRACETYPE_RULE = 0x3 + NFTA_NG_UNSPEC = 0x0 + NFTA_NG_DREG = 0x1 + NFTA_NG_MODULUS = 0x2 + NFTA_NG_TYPE = 0x3 + NFTA_NG_OFFSET = 0x4 + NFT_NG_INCREMENTAL = 0x0 + NFT_NG_RANDOM = 0x1 +) + +type RTCTime struct { + Sec int32 + Min int32 + Hour int32 + Mday int32 + Mon int32 + Year int32 + Wday int32 + Yday int32 + Isdst int32 +} + +type RTCWkAlrm struct { + Enabled uint8 + Pending uint8 + Time RTCTime +} + +type BlkpgIoctlArg struct { + Op int32 + Flags int32 + Datalen int32 + Data *byte +} + +const ( + BLKPG_ADD_PARTITION = 0x1 + BLKPG_DEL_PARTITION = 0x2 + BLKPG_RESIZE_PARTITION = 0x3 +) + +const ( + NETNSA_NONE = 0x0 + NETNSA_NSID = 0x1 + NETNSA_PID = 0x2 + NETNSA_FD = 0x3 +) + +type XDPRingOffset struct { + Producer uint64 + Consumer uint64 + Desc uint64 + Flags uint64 +} + +type XDPMmapOffsets struct { + Rx XDPRingOffset + Tx XDPRingOffset + Fr XDPRingOffset + Cr XDPRingOffset +} + +type XDPStatistics struct { + Rx_dropped uint64 + Rx_invalid_descs uint64 + Tx_invalid_descs uint64 +} + +type XDPDesc struct { + Addr uint64 + Len uint32 + Options uint32 +} + +const ( + NCSI_CMD_UNSPEC = 0x0 + NCSI_CMD_PKG_INFO = 0x1 + NCSI_CMD_SET_INTERFACE = 0x2 + NCSI_CMD_CLEAR_INTERFACE = 0x3 + NCSI_ATTR_UNSPEC = 0x0 + NCSI_ATTR_IFINDEX = 0x1 + NCSI_ATTR_PACKAGE_LIST = 0x2 + NCSI_ATTR_PACKAGE_ID = 0x3 + NCSI_ATTR_CHANNEL_ID = 0x4 + NCSI_PKG_ATTR_UNSPEC = 0x0 + NCSI_PKG_ATTR = 0x1 + NCSI_PKG_ATTR_ID = 0x2 + NCSI_PKG_ATTR_FORCED = 0x3 + NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 + NCSI_CHANNEL_ATTR_UNSPEC = 0x0 + NCSI_CHANNEL_ATTR = 0x1 + NCSI_CHANNEL_ATTR_ID = 0x2 + NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 + NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 + NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 + NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 + NCSI_CHANNEL_ATTR_ACTIVE = 0x7 + NCSI_CHANNEL_ATTR_FORCED = 0x8 + NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 + NCSI_CHANNEL_ATTR_VLAN_ID = 0xa +) + +type ScmTimestamping struct { + Ts [3]Timespec +} + +const ( + SOF_TIMESTAMPING_TX_HARDWARE = 0x1 + SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 + SOF_TIMESTAMPING_RX_HARDWARE = 0x4 + SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 + SOF_TIMESTAMPING_SOFTWARE = 0x10 + SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 + SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 + SOF_TIMESTAMPING_OPT_ID = 0x80 + SOF_TIMESTAMPING_TX_SCHED = 0x100 + SOF_TIMESTAMPING_TX_ACK = 0x200 + SOF_TIMESTAMPING_OPT_CMSG = 0x400 + SOF_TIMESTAMPING_OPT_TSONLY = 0x800 + SOF_TIMESTAMPING_OPT_STATS = 0x1000 + SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 + SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 + + SOF_TIMESTAMPING_LAST = 0x4000 + SOF_TIMESTAMPING_MASK = 0x7fff + + SCM_TSTAMP_SND = 0x0 + SCM_TSTAMP_SCHED = 0x1 + SCM_TSTAMP_ACK = 0x2 +) + +type SockExtendedErr struct { + Errno uint32 + Origin uint8 + Type uint8 + Code uint8 + Pad uint8 + Info uint32 + Data uint32 +} + +type FanotifyEventMetadata struct { + Event_len uint32 + Vers uint8 + Reserved uint8 + Metadata_len uint16 + Mask uint64 + Fd int32 + Pid int32 +} + +type FanotifyResponse struct { + Fd int32 + Response uint32 +} + +const ( + CRYPTO_MSG_BASE = 0x10 + CRYPTO_MSG_NEWALG = 0x10 + CRYPTO_MSG_DELALG = 0x11 + CRYPTO_MSG_UPDATEALG = 0x12 + CRYPTO_MSG_GETALG = 0x13 + CRYPTO_MSG_DELRNG = 0x14 + CRYPTO_MSG_GETSTAT = 0x15 +) + +const ( + CRYPTOCFGA_UNSPEC = 0x0 + CRYPTOCFGA_PRIORITY_VAL = 0x1 + CRYPTOCFGA_REPORT_LARVAL = 0x2 + CRYPTOCFGA_REPORT_HASH = 0x3 + CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 + CRYPTOCFGA_REPORT_AEAD = 0x5 + CRYPTOCFGA_REPORT_COMPRESS = 0x6 + CRYPTOCFGA_REPORT_RNG = 0x7 + CRYPTOCFGA_REPORT_CIPHER = 0x8 + CRYPTOCFGA_REPORT_AKCIPHER = 0x9 + CRYPTOCFGA_REPORT_KPP = 0xa + CRYPTOCFGA_REPORT_ACOMP = 0xb + CRYPTOCFGA_STAT_LARVAL = 0xc + CRYPTOCFGA_STAT_HASH = 0xd + CRYPTOCFGA_STAT_BLKCIPHER = 0xe + CRYPTOCFGA_STAT_AEAD = 0xf + CRYPTOCFGA_STAT_COMPRESS = 0x10 + CRYPTOCFGA_STAT_RNG = 0x11 + CRYPTOCFGA_STAT_CIPHER = 0x12 + CRYPTOCFGA_STAT_AKCIPHER = 0x13 + CRYPTOCFGA_STAT_KPP = 0x14 + CRYPTOCFGA_STAT_ACOMP = 0x15 +) + +const ( + BPF_REG_0 = 0x0 + BPF_REG_1 = 0x1 + BPF_REG_2 = 0x2 + BPF_REG_3 = 0x3 + BPF_REG_4 = 0x4 + BPF_REG_5 = 0x5 + BPF_REG_6 = 0x6 + BPF_REG_7 = 0x7 + BPF_REG_8 = 0x8 + BPF_REG_9 = 0x9 + BPF_REG_10 = 0xa + BPF_MAP_CREATE = 0x0 + BPF_MAP_LOOKUP_ELEM = 0x1 + BPF_MAP_UPDATE_ELEM = 0x2 + BPF_MAP_DELETE_ELEM = 0x3 + BPF_MAP_GET_NEXT_KEY = 0x4 + BPF_PROG_LOAD = 0x5 + BPF_OBJ_PIN = 0x6 + BPF_OBJ_GET = 0x7 + BPF_PROG_ATTACH = 0x8 + BPF_PROG_DETACH = 0x9 + BPF_PROG_TEST_RUN = 0xa + BPF_PROG_GET_NEXT_ID = 0xb + BPF_MAP_GET_NEXT_ID = 0xc + BPF_PROG_GET_FD_BY_ID = 0xd + BPF_MAP_GET_FD_BY_ID = 0xe + BPF_OBJ_GET_INFO_BY_FD = 0xf + BPF_PROG_QUERY = 0x10 + BPF_RAW_TRACEPOINT_OPEN = 0x11 + BPF_BTF_LOAD = 0x12 + BPF_BTF_GET_FD_BY_ID = 0x13 + BPF_TASK_FD_QUERY = 0x14 + BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 + BPF_MAP_FREEZE = 0x16 + BPF_BTF_GET_NEXT_ID = 0x17 + BPF_MAP_TYPE_UNSPEC = 0x0 + BPF_MAP_TYPE_HASH = 0x1 + BPF_MAP_TYPE_ARRAY = 0x2 + BPF_MAP_TYPE_PROG_ARRAY = 0x3 + BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 + BPF_MAP_TYPE_PERCPU_HASH = 0x5 + BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 + BPF_MAP_TYPE_STACK_TRACE = 0x7 + BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 + BPF_MAP_TYPE_LRU_HASH = 0x9 + BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa + BPF_MAP_TYPE_LPM_TRIE = 0xb + BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc + BPF_MAP_TYPE_HASH_OF_MAPS = 0xd + BPF_MAP_TYPE_DEVMAP = 0xe + BPF_MAP_TYPE_SOCKMAP = 0xf + BPF_MAP_TYPE_CPUMAP = 0x10 + BPF_MAP_TYPE_XSKMAP = 0x11 + BPF_MAP_TYPE_SOCKHASH = 0x12 + BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 + BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 + BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 + BPF_MAP_TYPE_QUEUE = 0x16 + BPF_MAP_TYPE_STACK = 0x17 + BPF_MAP_TYPE_SK_STORAGE = 0x18 + BPF_MAP_TYPE_DEVMAP_HASH = 0x19 + BPF_PROG_TYPE_UNSPEC = 0x0 + BPF_PROG_TYPE_SOCKET_FILTER = 0x1 + BPF_PROG_TYPE_KPROBE = 0x2 + BPF_PROG_TYPE_SCHED_CLS = 0x3 + BPF_PROG_TYPE_SCHED_ACT = 0x4 + BPF_PROG_TYPE_TRACEPOINT = 0x5 + BPF_PROG_TYPE_XDP = 0x6 + BPF_PROG_TYPE_PERF_EVENT = 0x7 + BPF_PROG_TYPE_CGROUP_SKB = 0x8 + BPF_PROG_TYPE_CGROUP_SOCK = 0x9 + BPF_PROG_TYPE_LWT_IN = 0xa + BPF_PROG_TYPE_LWT_OUT = 0xb + BPF_PROG_TYPE_LWT_XMIT = 0xc + BPF_PROG_TYPE_SOCK_OPS = 0xd + BPF_PROG_TYPE_SK_SKB = 0xe + BPF_PROG_TYPE_CGROUP_DEVICE = 0xf + BPF_PROG_TYPE_SK_MSG = 0x10 + BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 + BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 + BPF_PROG_TYPE_LIRC_MODE2 = 0x14 + BPF_PROG_TYPE_SK_REUSEPORT = 0x15 + BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 + BPF_PROG_TYPE_CGROUP_SYSCTL = 0x17 + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 0x18 + BPF_PROG_TYPE_CGROUP_SOCKOPT = 0x19 + BPF_PROG_TYPE_TRACING = 0x1a + BPF_CGROUP_INET_INGRESS = 0x0 + BPF_CGROUP_INET_EGRESS = 0x1 + BPF_CGROUP_INET_SOCK_CREATE = 0x2 + BPF_CGROUP_SOCK_OPS = 0x3 + BPF_SK_SKB_STREAM_PARSER = 0x4 + BPF_SK_SKB_STREAM_VERDICT = 0x5 + BPF_CGROUP_DEVICE = 0x6 + BPF_SK_MSG_VERDICT = 0x7 + BPF_CGROUP_INET4_BIND = 0x8 + BPF_CGROUP_INET6_BIND = 0x9 + BPF_CGROUP_INET4_CONNECT = 0xa + BPF_CGROUP_INET6_CONNECT = 0xb + BPF_CGROUP_INET4_POST_BIND = 0xc + BPF_CGROUP_INET6_POST_BIND = 0xd + BPF_CGROUP_UDP4_SENDMSG = 0xe + BPF_CGROUP_UDP6_SENDMSG = 0xf + BPF_LIRC_MODE2 = 0x10 + BPF_FLOW_DISSECTOR = 0x11 + BPF_CGROUP_SYSCTL = 0x12 + BPF_CGROUP_UDP4_RECVMSG = 0x13 + BPF_CGROUP_UDP6_RECVMSG = 0x14 + BPF_CGROUP_GETSOCKOPT = 0x15 + BPF_CGROUP_SETSOCKOPT = 0x16 + BPF_TRACE_RAW_TP = 0x17 + BPF_TRACE_FENTRY = 0x18 + BPF_TRACE_FEXIT = 0x19 + BPF_STACK_BUILD_ID_EMPTY = 0x0 + BPF_STACK_BUILD_ID_VALID = 0x1 + BPF_STACK_BUILD_ID_IP = 0x2 + BPF_ADJ_ROOM_NET = 0x0 + BPF_ADJ_ROOM_MAC = 0x1 + BPF_HDR_START_MAC = 0x0 + BPF_HDR_START_NET = 0x1 + BPF_LWT_ENCAP_SEG6 = 0x0 + BPF_LWT_ENCAP_SEG6_INLINE = 0x1 + BPF_LWT_ENCAP_IP = 0x2 + BPF_OK = 0x0 + BPF_DROP = 0x2 + BPF_REDIRECT = 0x7 + BPF_LWT_REROUTE = 0x80 + BPF_SOCK_OPS_VOID = 0x0 + BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 + BPF_SOCK_OPS_RWND_INIT = 0x2 + BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 + BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 + BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 + BPF_SOCK_OPS_NEEDS_ECN = 0x6 + BPF_SOCK_OPS_BASE_RTT = 0x7 + BPF_SOCK_OPS_RTO_CB = 0x8 + BPF_SOCK_OPS_RETRANS_CB = 0x9 + BPF_SOCK_OPS_STATE_CB = 0xa + BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb + BPF_SOCK_OPS_RTT_CB = 0xc + BPF_TCP_ESTABLISHED = 0x1 + BPF_TCP_SYN_SENT = 0x2 + BPF_TCP_SYN_RECV = 0x3 + BPF_TCP_FIN_WAIT1 = 0x4 + BPF_TCP_FIN_WAIT2 = 0x5 + BPF_TCP_TIME_WAIT = 0x6 + BPF_TCP_CLOSE = 0x7 + BPF_TCP_CLOSE_WAIT = 0x8 + BPF_TCP_LAST_ACK = 0x9 + BPF_TCP_LISTEN = 0xa + BPF_TCP_CLOSING = 0xb + BPF_TCP_NEW_SYN_RECV = 0xc + BPF_TCP_MAX_STATES = 0xd + BPF_FIB_LKUP_RET_SUCCESS = 0x0 + BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 + BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 + BPF_FIB_LKUP_RET_PROHIBIT = 0x3 + BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 + BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 + BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 + BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 + BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 + BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 + BPF_FD_TYPE_TRACEPOINT = 0x1 + BPF_FD_TYPE_KPROBE = 0x2 + BPF_FD_TYPE_KRETPROBE = 0x3 + BPF_FD_TYPE_UPROBE = 0x4 + BPF_FD_TYPE_URETPROBE = 0x5 +) + +const ( + RTNLGRP_NONE = 0x0 + RTNLGRP_LINK = 0x1 + RTNLGRP_NOTIFY = 0x2 + RTNLGRP_NEIGH = 0x3 + RTNLGRP_TC = 0x4 + RTNLGRP_IPV4_IFADDR = 0x5 + RTNLGRP_IPV4_MROUTE = 0x6 + RTNLGRP_IPV4_ROUTE = 0x7 + RTNLGRP_IPV4_RULE = 0x8 + RTNLGRP_IPV6_IFADDR = 0x9 + RTNLGRP_IPV6_MROUTE = 0xa + RTNLGRP_IPV6_ROUTE = 0xb + RTNLGRP_IPV6_IFINFO = 0xc + RTNLGRP_DECnet_IFADDR = 0xd + RTNLGRP_NOP2 = 0xe + RTNLGRP_DECnet_ROUTE = 0xf + RTNLGRP_DECnet_RULE = 0x10 + RTNLGRP_NOP4 = 0x11 + RTNLGRP_IPV6_PREFIX = 0x12 + RTNLGRP_IPV6_RULE = 0x13 + RTNLGRP_ND_USEROPT = 0x14 + RTNLGRP_PHONET_IFADDR = 0x15 + RTNLGRP_PHONET_ROUTE = 0x16 + RTNLGRP_DCB = 0x17 + RTNLGRP_IPV4_NETCONF = 0x18 + RTNLGRP_IPV6_NETCONF = 0x19 + RTNLGRP_MDB = 0x1a + RTNLGRP_MPLS_ROUTE = 0x1b + RTNLGRP_NSID = 0x1c + RTNLGRP_MPLS_NETCONF = 0x1d + RTNLGRP_IPV4_MROUTE_R = 0x1e + RTNLGRP_IPV6_MROUTE_R = 0x1f + RTNLGRP_NEXTHOP = 0x20 +) + +type CapUserHeader struct { + Version uint32 + Pid int32 +} + +type CapUserData struct { + Effective uint32 + Permitted uint32 + Inheritable uint32 +} + +const ( + LINUX_CAPABILITY_VERSION_1 = 0x19980330 + LINUX_CAPABILITY_VERSION_2 = 0x20071026 + LINUX_CAPABILITY_VERSION_3 = 0x20080522 +) + +const ( + LO_FLAGS_READ_ONLY = 0x1 + LO_FLAGS_AUTOCLEAR = 0x4 + LO_FLAGS_PARTSCAN = 0x8 + LO_FLAGS_DIRECT_IO = 0x10 +) + +type LoopInfo64 struct { + Device uint64 + Inode uint64 + Rdevice uint64 + Offset uint64 + Sizelimit uint64 + Number uint32 + Encrypt_type uint32 + Encrypt_key_size uint32 + Flags uint32 + File_name [64]uint8 + Crypt_name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 +} + +type TIPCSocketAddr struct { + Ref uint32 + Node uint32 +} + +type TIPCServiceRange struct { + Type uint32 + Lower uint32 + Upper uint32 +} + +type TIPCServiceName struct { + Type uint32 + Instance uint32 + Domain uint32 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +const ( + TIPC_CLUSTER_SCOPE = 0x2 + TIPC_NODE_SCOPE = 0x3 +) + +const ( + SYSLOG_ACTION_CLOSE = 0 + SYSLOG_ACTION_OPEN = 1 + SYSLOG_ACTION_READ = 2 + SYSLOG_ACTION_READ_ALL = 3 + SYSLOG_ACTION_READ_CLEAR = 4 + SYSLOG_ACTION_CLEAR = 5 + SYSLOG_ACTION_CONSOLE_OFF = 6 + SYSLOG_ACTION_CONSOLE_ON = 7 + SYSLOG_ACTION_CONSOLE_LEVEL = 8 + SYSLOG_ACTION_SIZE_UNREAD = 9 + SYSLOG_ACTION_SIZE_BUFFER = 10 +) + +const ( + DEVLINK_CMD_UNSPEC = 0x0 + DEVLINK_CMD_GET = 0x1 + DEVLINK_CMD_SET = 0x2 + DEVLINK_CMD_NEW = 0x3 + DEVLINK_CMD_DEL = 0x4 + DEVLINK_CMD_PORT_GET = 0x5 + DEVLINK_CMD_PORT_SET = 0x6 + DEVLINK_CMD_PORT_NEW = 0x7 + DEVLINK_CMD_PORT_DEL = 0x8 + DEVLINK_CMD_PORT_SPLIT = 0x9 + DEVLINK_CMD_PORT_UNSPLIT = 0xa + DEVLINK_CMD_SB_GET = 0xb + DEVLINK_CMD_SB_SET = 0xc + DEVLINK_CMD_SB_NEW = 0xd + DEVLINK_CMD_SB_DEL = 0xe + DEVLINK_CMD_SB_POOL_GET = 0xf + DEVLINK_CMD_SB_POOL_SET = 0x10 + DEVLINK_CMD_SB_POOL_NEW = 0x11 + DEVLINK_CMD_SB_POOL_DEL = 0x12 + DEVLINK_CMD_SB_PORT_POOL_GET = 0x13 + DEVLINK_CMD_SB_PORT_POOL_SET = 0x14 + DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15 + DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16 + DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17 + DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18 + DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19 + DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a + DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b + DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c + DEVLINK_CMD_ESWITCH_GET = 0x1d + DEVLINK_CMD_ESWITCH_SET = 0x1e + DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f + DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20 + DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21 + DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22 + DEVLINK_CMD_MAX = 0x44 + DEVLINK_PORT_TYPE_NOTSET = 0x0 + DEVLINK_PORT_TYPE_AUTO = 0x1 + DEVLINK_PORT_TYPE_ETH = 0x2 + DEVLINK_PORT_TYPE_IB = 0x3 + DEVLINK_SB_POOL_TYPE_INGRESS = 0x0 + DEVLINK_SB_POOL_TYPE_EGRESS = 0x1 + DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0 + DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1 + DEVLINK_ESWITCH_MODE_LEGACY = 0x0 + DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1 + DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0 + DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1 + DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2 + DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3 + DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0 + DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1 + DEVLINK_ATTR_UNSPEC = 0x0 + DEVLINK_ATTR_BUS_NAME = 0x1 + DEVLINK_ATTR_DEV_NAME = 0x2 + DEVLINK_ATTR_PORT_INDEX = 0x3 + DEVLINK_ATTR_PORT_TYPE = 0x4 + DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5 + DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6 + DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7 + DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8 + DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9 + DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa + DEVLINK_ATTR_SB_INDEX = 0xb + DEVLINK_ATTR_SB_SIZE = 0xc + DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd + DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe + DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf + DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10 + DEVLINK_ATTR_SB_POOL_INDEX = 0x11 + DEVLINK_ATTR_SB_POOL_TYPE = 0x12 + DEVLINK_ATTR_SB_POOL_SIZE = 0x13 + DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14 + DEVLINK_ATTR_SB_THRESHOLD = 0x15 + DEVLINK_ATTR_SB_TC_INDEX = 0x16 + DEVLINK_ATTR_SB_OCC_CUR = 0x17 + DEVLINK_ATTR_SB_OCC_MAX = 0x18 + DEVLINK_ATTR_ESWITCH_MODE = 0x19 + DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a + DEVLINK_ATTR_DPIPE_TABLES = 0x1b + DEVLINK_ATTR_DPIPE_TABLE = 0x1c + DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d + DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e + DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f + DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20 + DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21 + DEVLINK_ATTR_DPIPE_ENTRIES = 0x22 + DEVLINK_ATTR_DPIPE_ENTRY = 0x23 + DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24 + DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25 + DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26 + DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27 + DEVLINK_ATTR_DPIPE_MATCH = 0x28 + DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29 + DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a + DEVLINK_ATTR_DPIPE_ACTION = 0x2b + DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c + DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d + DEVLINK_ATTR_DPIPE_VALUE = 0x2e + DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f + DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30 + DEVLINK_ATTR_DPIPE_HEADERS = 0x31 + DEVLINK_ATTR_DPIPE_HEADER = 0x32 + DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33 + DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34 + DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35 + DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36 + DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37 + DEVLINK_ATTR_DPIPE_FIELD = 0x38 + DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39 + DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a + DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b + DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c + DEVLINK_ATTR_PAD = 0x3d + DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e + DEVLINK_ATTR_MAX = 0x8c + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0 + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1 + DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0 + DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0 + DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0 + DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0 + DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0 + DEVLINK_DPIPE_HEADER_ETHERNET = 0x0 + DEVLINK_DPIPE_HEADER_IPV4 = 0x1 + DEVLINK_DPIPE_HEADER_IPV6 = 0x2 +) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go index 5492b9666..fc6b3fb5c 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x4 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x4 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x4 + SizeofLong = 0x4 ) type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 + _C_long int32 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int32 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 _ uint16 @@ -114,36 +100,6 @@ type Stat_t struct { Ino uint64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -153,10 +109,6 @@ type Dirent struct { _ [1]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -165,126 +117,11 @@ type Flock_t struct { Pid int32 } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -295,41 +132,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint32 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -346,390 +153,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x8 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Ebx int32 Ecx int32 @@ -771,15 +204,6 @@ type Sysinfo_t struct { _ [8]int8 } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint32 @@ -794,35 +218,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -831,33 +227,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -869,13 +238,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -927,277 +289,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint32 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x20 ) const ( @@ -1273,22 +368,6 @@ type SockaddrStorage struct { _ uint32 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1296,88 +375,6 @@ type HDGeometry struct { Start uint32 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int32 Bsize int32 @@ -1393,18 +390,6 @@ type Statfs_t struct { Spare [4]int32 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint32 Len uint32 @@ -1415,589 +400,10 @@ type TpacketHdr struct { Usec uint32 } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x18 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - -const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 -) - -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 + SizeofTpacketHdr = 0x18 ) -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2008,13 +414,6 @@ type RTCPLLInfo struct { Clock int32 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2024,168 +423,17 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x1269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x1269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2316,171 +564,35 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint16 + Inode uint32 + Rdevice uint16 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]int8 +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go index caf33b2c5..26c30b84d 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 Ino uint64 @@ -113,36 +99,6 @@ type Stat_t struct { _ [3]int64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -152,10 +108,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -165,126 +117,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -295,41 +132,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -347,390 +154,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { R15 uint64 R14 uint64 @@ -783,15 +216,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -807,35 +231,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -844,33 +240,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -882,13 +251,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -938,277 +300,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1284,22 +379,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1307,88 +386,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1404,18 +401,6 @@ type Statfs_t struct { Spare [4]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1427,589 +412,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2020,13 +426,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2037,168 +436,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x1269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x1269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2329,171 +578,36 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint64 + Inode uint64 + Rdevice uint64 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go index 93aec7e22..814d42d54 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x4 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x4 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x4 + SizeofLong = 0x4 ) type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 + _C_long int32 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int32 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 _ uint16 @@ -116,36 +102,6 @@ type Stat_t struct { Ino uint64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -155,10 +111,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -169,126 +121,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -299,41 +136,11 @@ type RawSockaddrAny struct { Pad [96]uint8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint32 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -350,390 +157,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x8 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Uregs [18]uint32 } @@ -759,15 +192,6 @@ type Sysinfo_t struct { _ [8]uint8 } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint32 @@ -783,35 +207,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -820,33 +216,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -858,13 +227,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -916,277 +278,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint32 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x20 ) const ( @@ -1262,22 +357,6 @@ type SockaddrStorage struct { _ uint32 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1285,88 +364,6 @@ type HDGeometry struct { Start uint32 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int32 Bsize int32 @@ -1383,18 +380,6 @@ type Statfs_t struct { _ [4]byte } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint32 Len uint32 @@ -1405,589 +390,10 @@ type TpacketHdr struct { Usec uint32 } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x18 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - -const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 -) - -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 + SizeofTpacketHdr = 0x18 ) -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -1998,13 +404,6 @@ type RTCPLLInfo struct { Clock int32 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2015,168 +414,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x1269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x1269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]uint8 Driver_name [64]uint8 @@ -2307,171 +556,35 @@ type CryptoReportAcomp struct { Type [64]uint8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint16 + Inode uint32 + Rdevice uint16 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]uint8 +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go index 0a038436d..d9664c713 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 Ino uint64 @@ -114,36 +100,6 @@ type Stat_t struct { _ [2]int32 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -153,10 +109,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -166,126 +118,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -296,41 +133,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -348,390 +155,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Regs [31]uint64 Sp uint64 @@ -761,15 +194,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -786,35 +210,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -823,33 +219,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -861,13 +230,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -917,277 +279,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1263,22 +358,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1286,88 +365,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1383,18 +380,6 @@ type Statfs_t struct { Spare [4]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1406,589 +391,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -1999,13 +405,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2016,168 +415,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x1269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x1269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2308,171 +557,36 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go index 2de0e5800..0d721454f 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x4 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x4 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x4 + SizeofLong = 0x4 ) type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 + _C_long int32 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int32 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint32 Pad1 [3]int32 @@ -115,36 +101,6 @@ type Stat_t struct { Pad5 [14]int32 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -154,10 +110,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -168,126 +120,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -298,41 +135,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint32 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -349,390 +156,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x8 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Regs [32]uint64 Lo uint64 @@ -764,15 +197,6 @@ type Sysinfo_t struct { _ [8]int8 } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint32 @@ -788,35 +212,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -825,33 +221,6 @@ type Sigset_t struct { const _C__NSIG = 0x80 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -863,13 +232,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -921,277 +283,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint32 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x20 ) const ( @@ -1267,22 +362,6 @@ type SockaddrStorage struct { _ uint32 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1290,88 +369,6 @@ type HDGeometry struct { Start uint32 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int32 Bsize int32 @@ -1389,18 +386,6 @@ type Statfs_t struct { _ [4]byte } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint32 Len uint32 @@ -1411,589 +396,10 @@ type TpacketHdr struct { Usec uint32 } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x18 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - -const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 -) - -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 + SizeofTpacketHdr = 0x18 ) -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2004,13 +410,6 @@ type RTCPLLInfo struct { Clock int32 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2021,168 +420,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x20001269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x20001269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2313,171 +562,35 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint32 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]int8 +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go index 3735eb42e..ef697684d 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint32 Pad1 [3]uint32 @@ -114,36 +100,6 @@ type Stat_t struct { Blocks int64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -153,10 +109,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -166,126 +118,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -296,41 +133,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -348,390 +155,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Regs [32]uint64 Lo uint64 @@ -764,15 +197,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -783,40 +207,13 @@ type Ustat_t struct { type EpollEvent struct { Events uint32 + _ int32 Fd int32 Pad int32 } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -825,33 +222,6 @@ type Sigset_t struct { const _C__NSIG = 0x80 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -863,13 +233,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -919,277 +282,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1265,22 +361,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1288,88 +368,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1385,18 +383,6 @@ type Statfs_t struct { Spare [5]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1408,589 +394,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2001,13 +408,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2018,168 +418,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x20001269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x20001269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2310,171 +560,36 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go index 073c29939..485fda70b 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint32 Pad1 [3]uint32 @@ -114,36 +100,6 @@ type Stat_t struct { Blocks int64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -153,10 +109,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -166,126 +118,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -296,41 +133,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -348,390 +155,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Regs [32]uint64 Lo uint64 @@ -764,15 +197,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -783,40 +207,13 @@ type Ustat_t struct { type EpollEvent struct { Events uint32 + _ int32 Fd int32 Pad int32 } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -825,33 +222,6 @@ type Sigset_t struct { const _C__NSIG = 0x80 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -863,13 +233,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -919,277 +282,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1265,22 +361,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1288,88 +368,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1385,18 +383,6 @@ type Statfs_t struct { Spare [5]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1408,589 +394,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2001,13 +408,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2018,168 +418,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x20001269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x20001269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2310,171 +560,36 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go index 58d09f75e..569477eef 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x4 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x4 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x4 + SizeofLong = 0x4 ) type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 + _C_long int32 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int32 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint32 Pad1 [3]int32 @@ -115,36 +101,6 @@ type Stat_t struct { Pad5 [14]int32 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -154,10 +110,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -168,126 +120,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -298,41 +135,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint32 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -349,390 +156,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x8 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Regs [32]uint64 Lo uint64 @@ -764,15 +197,6 @@ type Sysinfo_t struct { _ [8]int8 } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint32 @@ -788,35 +212,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -825,33 +221,6 @@ type Sigset_t struct { const _C__NSIG = 0x80 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -863,13 +232,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -921,277 +283,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint32 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x20 ) const ( @@ -1267,22 +362,6 @@ type SockaddrStorage struct { _ uint32 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1290,88 +369,6 @@ type HDGeometry struct { Start uint32 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int32 Bsize int32 @@ -1389,18 +386,6 @@ type Statfs_t struct { _ [4]byte } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint32 Len uint32 @@ -1411,589 +396,10 @@ type TpacketHdr struct { Usec uint32 } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x18 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - -const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 -) - -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 + SizeofTpacketHdr = 0x18 ) -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2004,13 +410,6 @@ type RTCPLLInfo struct { Clock int32 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2021,168 +420,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x20001269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x20001269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2313,171 +562,35 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint32 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]int8 +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go index 3f1e62e03..602d8b4ee 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 Ino uint64 @@ -115,36 +101,6 @@ type Stat_t struct { _ uint64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -154,10 +110,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -167,126 +119,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -297,41 +134,11 @@ type RawSockaddrAny struct { Pad [96]uint8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -349,390 +156,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Gpr [32]uint64 Nip uint64 @@ -771,15 +204,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -796,35 +220,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -833,33 +229,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -871,13 +240,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -927,277 +289,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1273,22 +368,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1296,88 +375,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1393,18 +390,6 @@ type Statfs_t struct { Spare [4]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1416,589 +401,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2009,13 +415,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2026,168 +425,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x20001269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x20001269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]uint8 Driver_name [64]uint8 @@ -2318,171 +567,36 @@ type CryptoReportAcomp struct { Type [64]uint8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint64 + Inode uint64 + Rdevice uint64 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]uint8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go index e67be11eb..6db9a7b73 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 Ino uint64 @@ -115,36 +101,6 @@ type Stat_t struct { _ uint64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -154,10 +110,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -167,126 +119,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -297,41 +134,11 @@ type RawSockaddrAny struct { Pad [96]uint8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -349,390 +156,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Gpr [32]uint64 Nip uint64 @@ -771,15 +204,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -796,35 +220,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -833,33 +229,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -871,13 +240,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -927,277 +289,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1273,22 +368,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1296,88 +375,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1393,18 +390,6 @@ type Statfs_t struct { Spare [4]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1416,589 +401,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2009,13 +415,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2026,168 +425,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x20001269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x20001269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]uint8 Driver_name [64]uint8 @@ -2318,171 +567,36 @@ type CryptoReportAcomp struct { Type [64]uint8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint64 + Inode uint64 + Rdevice uint64 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]uint8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go index f44f29403..52b5348c2 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 Ino uint64 @@ -114,36 +100,6 @@ type Stat_t struct { _ [2]int32 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -153,10 +109,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -166,126 +118,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -296,41 +133,11 @@ type RawSockaddrAny struct { Pad [96]uint8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -348,390 +155,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Pc uint64 Ra uint64 @@ -789,15 +222,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -808,40 +232,13 @@ type Ustat_t struct { type EpollEvent struct { Events uint32 + _ int32 Fd int32 Pad int32 } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -850,33 +247,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -888,13 +258,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -944,277 +307,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1290,22 +386,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1313,88 +393,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1410,18 +408,6 @@ type Statfs_t struct { Spare [4]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1433,589 +419,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2026,13 +433,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2043,168 +443,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x1269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x1269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]uint8 Driver_name [64]uint8 @@ -2335,171 +585,36 @@ type CryptoReportAcomp struct { Type [64]uint8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]uint8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go index 90bf5dcc7..a111387b3 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -88,13 +81,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 Ino uint64 @@ -113,36 +99,6 @@ type Stat_t struct { _ [3]int64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -152,10 +108,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -165,126 +117,11 @@ type Flock_t struct { _ [4]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x6 - FADV_NOREUSE = 0x7 + FADV_DONTNEED = 0x6 + FADV_NOREUSE = 0x7 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -295,41 +132,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -347,390 +154,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Psw PtracePsw Gprs [16]uint64 @@ -784,15 +217,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -809,35 +233,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -846,33 +242,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -884,13 +253,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -940,277 +302,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1286,22 +381,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1309,88 +388,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type uint32 Bsize uint32 @@ -1407,18 +404,6 @@ type Statfs_t struct { _ [4]byte } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1430,589 +415,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2023,13 +429,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2040,168 +439,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x1269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x1269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2332,171 +581,36 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint16 + Inode uint64 + Rdevice uint16 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go index 4f054dcbb..8153af181 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go @@ -6,19 +6,12 @@ package unix const ( - SizeofPtr = 0x8 - SizeofShort = 0x2 - SizeofInt = 0x4 - SizeofLong = 0x8 - SizeofLongLong = 0x8 - PathMax = 0x1000 + SizeofPtr = 0x8 + SizeofLong = 0x8 ) type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 + _C_long int64 ) type Timespec struct { @@ -89,13 +82,6 @@ type Rusage struct { Nivcsw int64 } -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - type Stat_t struct { Dev uint64 _ uint16 @@ -116,36 +102,6 @@ type Stat_t struct { _ uint64 } -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - type Dirent struct { Ino uint64 Off int64 @@ -155,10 +111,6 @@ type Dirent struct { _ [5]byte } -type Fsid struct { - Val [2]int32 -} - type Flock_t struct { Type int16 Whence int16 @@ -169,126 +121,11 @@ type Flock_t struct { _ [2]byte } -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 ) -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrRFCOMM struct { - Family uint16 - Bdaddr [6]uint8 - Channel uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddrXDP struct { - Family uint16 - Flags uint16 - Ifindex uint32 - Queue_id uint32 - Shared_umem_fd uint32 -} - -type RawSockaddrPPPoX [0x1e]byte - type RawSockaddr struct { Family uint16 Data [14]int8 @@ -299,41 +136,11 @@ type RawSockaddrAny struct { Pad [96]int8 } -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - type Iovec struct { Base *byte Len uint64 } -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - type Msghdr struct { Name *byte Namelen uint32 @@ -351,390 +158,16 @@ type Cmsghdr struct { Type int32 } -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -type CanFilter struct { - Id uint32 - Mask uint32 -} - const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrRFCOMM = 0xa - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofSockaddrXDP = 0x10 - SizeofSockaddrPPPoX = 0x1e - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 - SizeofCanFilter = 0x8 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 ) const ( - NDA_UNSPEC = 0x0 - NDA_DST = 0x1 - NDA_LLADDR = 0x2 - NDA_CACHEINFO = 0x3 - NDA_PROBES = 0x4 - NDA_VLAN = 0x5 - NDA_PORT = 0x6 - NDA_VNI = 0x7 - NDA_IFINDEX = 0x8 - NDA_MASTER = 0x9 - NDA_LINK_NETNSID = 0xa - NDA_SRC_VNI = 0xb - NTF_USE = 0x1 - NTF_SELF = 0x2 - NTF_MASTER = 0x4 - NTF_PROXY = 0x8 - NTF_EXT_LEARNED = 0x10 - NTF_OFFLOADED = 0x20 - NTF_ROUTER = 0x80 - NUD_INCOMPLETE = 0x1 - NUD_REACHABLE = 0x2 - NUD_STALE = 0x4 - NUD_DELAY = 0x8 - NUD_PROBE = 0x10 - NUD_FAILED = 0x20 - NUD_NOARP = 0x40 - NUD_PERMANENT = 0x80 - NUD_NONE = 0x0 - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFA_FLAGS = 0x8 - IFA_RT_PRIORITY = 0x9 - IFA_TARGET_NETNSID = 0xa - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_NUM_VF = 0x15 - IFLA_VFINFO_LIST = 0x16 - IFLA_STATS64 = 0x17 - IFLA_VF_PORTS = 0x18 - IFLA_PORT_SELF = 0x19 - IFLA_AF_SPEC = 0x1a - IFLA_GROUP = 0x1b - IFLA_NET_NS_FD = 0x1c - IFLA_EXT_MASK = 0x1d - IFLA_PROMISCUITY = 0x1e - IFLA_NUM_TX_QUEUES = 0x1f - IFLA_NUM_RX_QUEUES = 0x20 - IFLA_CARRIER = 0x21 - IFLA_PHYS_PORT_ID = 0x22 - IFLA_CARRIER_CHANGES = 0x23 - IFLA_PHYS_SWITCH_ID = 0x24 - IFLA_LINK_NETNSID = 0x25 - IFLA_PHYS_PORT_NAME = 0x26 - IFLA_PROTO_DOWN = 0x27 - IFLA_GSO_MAX_SEGS = 0x28 - IFLA_GSO_MAX_SIZE = 0x29 - IFLA_PAD = 0x2a - IFLA_XDP = 0x2b - IFLA_EVENT = 0x2c - IFLA_NEW_NETNSID = 0x2d - IFLA_IF_NETNSID = 0x2e - IFLA_TARGET_NETNSID = 0x2e - IFLA_CARRIER_UP_COUNT = 0x2f - IFLA_CARRIER_DOWN_COUNT = 0x30 - IFLA_NEW_IFINDEX = 0x31 - IFLA_MIN_MTU = 0x32 - IFLA_MAX_MTU = 0x33 - IFLA_MAX = 0x33 - IFLA_INFO_KIND = 0x1 - IFLA_INFO_DATA = 0x2 - IFLA_INFO_XSTATS = 0x3 - IFLA_INFO_SLAVE_KIND = 0x4 - IFLA_INFO_SLAVE_DATA = 0x5 - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTA_MARK = 0x10 - RTA_MFC_STATS = 0x11 - RTA_VIA = 0x12 - RTA_NEWDST = 0x13 - RTA_PREF = 0x14 - RTA_ENCAP_TYPE = 0x15 - RTA_ENCAP = 0x16 - RTA_EXPIRES = 0x17 - RTA_PAD = 0x18 - RTA_UID = 0x19 - RTA_TTL_PROPAGATE = 0x1a - RTA_IP_PROTO = 0x1b - RTA_SPORT = 0x1c - RTA_DPORT = 0x1d - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 - SizeofNdUseroptmsg = 0x10 - SizeofNdMsg = 0xc + SizeofSockFprog = 0x10 ) -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -type NdUseroptmsg struct { - Family uint8 - Pad1 uint8 - Opts_len uint16 - Ifindex int32 - Icmp_type uint8 - Icmp_code uint8 - Pad2 uint16 - Pad3 uint32 -} - -type NdMsg struct { - Family uint8 - Pad1 uint8 - Pad2 uint16 - Ifindex int32 - State uint16 - Flags uint8 - Type uint8 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - type PtraceRegs struct { Regs [16]uint64 Tstate uint64 @@ -766,15 +199,6 @@ type Sysinfo_t struct { _ [4]byte } -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - type Ustat_t struct { Tfree int32 Tinode uint64 @@ -791,35 +215,7 @@ type EpollEvent struct { } const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 - - AT_EACCESS = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 POLLRDHUP = 0x800 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 ) type Sigset_t struct { @@ -828,33 +224,6 @@ type Sigset_t struct { const _C__NSIG = 0x41 -type SignalfdSiginfo struct { - Signo uint32 - Errno int32 - Code int32 - Pid uint32 - Uid uint32 - Fd int32 - Tid uint32 - Band uint32 - Overrun uint32 - Trapno uint32 - Status int32 - Int int32 - Ptr uint64 - Utime uint64 - Stime uint64 - Addr uint64 - Addr_lsb uint16 - _ uint16 - Syscall int32 - Call_addr uint64 - Arch uint32 - _ [28]uint8 -} - -const PERF_IOC_FLAG_GROUP = 0x1 - type Termios struct { Iflag uint32 Oflag uint32 @@ -866,13 +235,6 @@ type Termios struct { Ospeed uint32 } -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - type Taskstats struct { Version uint16 Ac_exitcode uint32 @@ -922,277 +284,10 @@ type Taskstats struct { Thrashing_delay_total uint64 } -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - type cpuMask uint64 const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) - -type PerfEventAttr struct { - Type uint32 - Size uint32 - Config uint64 - Sample uint64 - Sample_type uint64 - Read_format uint64 - Bits uint64 - Wakeup uint32 - Bp_type uint32 - Ext1 uint64 - Ext2 uint64 - Branch_sample_type uint64 - Sample_regs_user uint64 - Sample_stack_user uint32 - Clockid int32 - Sample_regs_intr uint64 - Aux_watermark uint32 - Sample_max_stack uint16 - _ uint16 -} - -type PerfEventMmapPage struct { - Version uint32 - Compat_version uint32 - Lock uint32 - Index uint32 - Offset int64 - Time_enabled uint64 - Time_running uint64 - Capabilities uint64 - Pmc_width uint16 - Time_shift uint16 - Time_mult uint32 - Time_offset uint64 - Time_zero uint64 - Size uint32 - _ [948]uint8 - Data_head uint64 - Data_tail uint64 - Data_offset uint64 - Data_size uint64 - Aux_head uint64 - Aux_tail uint64 - Aux_offset uint64 - Aux_size uint64 -} - -const ( - PerfBitDisabled uint64 = CBitFieldMaskBit0 - PerfBitInherit = CBitFieldMaskBit1 - PerfBitPinned = CBitFieldMaskBit2 - PerfBitExclusive = CBitFieldMaskBit3 - PerfBitExcludeUser = CBitFieldMaskBit4 - PerfBitExcludeKernel = CBitFieldMaskBit5 - PerfBitExcludeHv = CBitFieldMaskBit6 - PerfBitExcludeIdle = CBitFieldMaskBit7 - PerfBitMmap = CBitFieldMaskBit8 - PerfBitComm = CBitFieldMaskBit9 - PerfBitFreq = CBitFieldMaskBit10 - PerfBitInheritStat = CBitFieldMaskBit11 - PerfBitEnableOnExec = CBitFieldMaskBit12 - PerfBitTask = CBitFieldMaskBit13 - PerfBitWatermark = CBitFieldMaskBit14 - PerfBitPreciseIPBit1 = CBitFieldMaskBit15 - PerfBitPreciseIPBit2 = CBitFieldMaskBit16 - PerfBitMmapData = CBitFieldMaskBit17 - PerfBitSampleIDAll = CBitFieldMaskBit18 - PerfBitExcludeHost = CBitFieldMaskBit19 - PerfBitExcludeGuest = CBitFieldMaskBit20 - PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 - PerfBitExcludeCallchainUser = CBitFieldMaskBit22 - PerfBitMmap2 = CBitFieldMaskBit23 - PerfBitCommExec = CBitFieldMaskBit24 - PerfBitUseClockID = CBitFieldMaskBit25 - PerfBitContextSwitch = CBitFieldMaskBit26 -) - -const ( - PERF_TYPE_HARDWARE = 0x0 - PERF_TYPE_SOFTWARE = 0x1 - PERF_TYPE_TRACEPOINT = 0x2 - PERF_TYPE_HW_CACHE = 0x3 - PERF_TYPE_RAW = 0x4 - PERF_TYPE_BREAKPOINT = 0x5 - - PERF_COUNT_HW_CPU_CYCLES = 0x0 - PERF_COUNT_HW_INSTRUCTIONS = 0x1 - PERF_COUNT_HW_CACHE_REFERENCES = 0x2 - PERF_COUNT_HW_CACHE_MISSES = 0x3 - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 - PERF_COUNT_HW_BRANCH_MISSES = 0x5 - PERF_COUNT_HW_BUS_CYCLES = 0x6 - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 - PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 - - PERF_COUNT_HW_CACHE_L1D = 0x0 - PERF_COUNT_HW_CACHE_L1I = 0x1 - PERF_COUNT_HW_CACHE_LL = 0x2 - PERF_COUNT_HW_CACHE_DTLB = 0x3 - PERF_COUNT_HW_CACHE_ITLB = 0x4 - PERF_COUNT_HW_CACHE_BPU = 0x5 - PERF_COUNT_HW_CACHE_NODE = 0x6 - - PERF_COUNT_HW_CACHE_OP_READ = 0x0 - PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 - PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 - - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 - PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 - - PERF_COUNT_SW_CPU_CLOCK = 0x0 - PERF_COUNT_SW_TASK_CLOCK = 0x1 - PERF_COUNT_SW_PAGE_FAULTS = 0x2 - PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 - PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 - PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 - PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 - PERF_COUNT_SW_EMULATION_FAULTS = 0x8 - PERF_COUNT_SW_DUMMY = 0x9 - PERF_COUNT_SW_BPF_OUTPUT = 0xa - - PERF_SAMPLE_IP = 0x1 - PERF_SAMPLE_TID = 0x2 - PERF_SAMPLE_TIME = 0x4 - PERF_SAMPLE_ADDR = 0x8 - PERF_SAMPLE_READ = 0x10 - PERF_SAMPLE_CALLCHAIN = 0x20 - PERF_SAMPLE_ID = 0x40 - PERF_SAMPLE_CPU = 0x80 - PERF_SAMPLE_PERIOD = 0x100 - PERF_SAMPLE_STREAM_ID = 0x200 - PERF_SAMPLE_RAW = 0x400 - PERF_SAMPLE_BRANCH_STACK = 0x800 - - PERF_SAMPLE_BRANCH_USER = 0x1 - PERF_SAMPLE_BRANCH_KERNEL = 0x2 - PERF_SAMPLE_BRANCH_HV = 0x4 - PERF_SAMPLE_BRANCH_ANY = 0x8 - PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 - PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 - PERF_SAMPLE_BRANCH_IND_CALL = 0x40 - PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 - PERF_SAMPLE_BRANCH_IN_TX = 0x100 - PERF_SAMPLE_BRANCH_NO_TX = 0x200 - PERF_SAMPLE_BRANCH_COND = 0x400 - PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 - PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 - PERF_SAMPLE_BRANCH_CALL = 0x2000 - PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 - PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 - PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 - - PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 - PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 - PERF_FORMAT_ID = 0x4 - PERF_FORMAT_GROUP = 0x8 - - PERF_RECORD_MMAP = 0x1 - PERF_RECORD_LOST = 0x2 - PERF_RECORD_COMM = 0x3 - PERF_RECORD_EXIT = 0x4 - PERF_RECORD_THROTTLE = 0x5 - PERF_RECORD_UNTHROTTLE = 0x6 - PERF_RECORD_FORK = 0x7 - PERF_RECORD_READ = 0x8 - PERF_RECORD_SAMPLE = 0x9 - PERF_RECORD_MMAP2 = 0xa - PERF_RECORD_AUX = 0xb - PERF_RECORD_ITRACE_START = 0xc - PERF_RECORD_LOST_SAMPLES = 0xd - PERF_RECORD_SWITCH = 0xe - PERF_RECORD_SWITCH_CPU_WIDE = 0xf - PERF_RECORD_NAMESPACES = 0x10 - - PERF_CONTEXT_HV = -0x20 - PERF_CONTEXT_KERNEL = -0x80 - PERF_CONTEXT_USER = -0x200 - - PERF_CONTEXT_GUEST = -0x800 - PERF_CONTEXT_GUEST_KERNEL = -0x880 - PERF_CONTEXT_GUEST_USER = -0xa00 - - PERF_FLAG_FD_NO_GROUP = 0x1 - PERF_FLAG_FD_OUTPUT = 0x2 - PERF_FLAG_PID_CGROUP = 0x4 - PERF_FLAG_FD_CLOEXEC = 0x8 + _NCPUBITS = 0x40 ) const ( @@ -1268,22 +363,6 @@ type SockaddrStorage struct { _ uint64 } -type TCPMD5Sig struct { - Addr SockaddrStorage - Flags uint8 - Prefixlen uint8 - Keylen uint16 - _ uint32 - Key [80]uint8 -} - -type HDDriveCmdHdr struct { - Command uint8 - Number uint8 - Feature uint8 - Count uint8 -} - type HDGeometry struct { Heads uint8 Sectors uint8 @@ -1291,88 +370,6 @@ type HDGeometry struct { Start uint64 } -type HDDriveID struct { - Config uint16 - Cyls uint16 - Reserved2 uint16 - Heads uint16 - Track_bytes uint16 - Sector_bytes uint16 - Sectors uint16 - Vendor0 uint16 - Vendor1 uint16 - Vendor2 uint16 - Serial_no [20]uint8 - Buf_type uint16 - Buf_size uint16 - Ecc_bytes uint16 - Fw_rev [8]uint8 - Model [40]uint8 - Max_multsect uint8 - Vendor3 uint8 - Dword_io uint16 - Vendor4 uint8 - Capability uint8 - Reserved50 uint16 - Vendor5 uint8 - TPIO uint8 - Vendor6 uint8 - TDMA uint8 - Field_valid uint16 - Cur_cyls uint16 - Cur_heads uint16 - Cur_sectors uint16 - Cur_capacity0 uint16 - Cur_capacity1 uint16 - Multsect uint8 - Multsect_valid uint8 - Lba_capacity uint32 - Dma_1word uint16 - Dma_mword uint16 - Eide_pio_modes uint16 - Eide_dma_min uint16 - Eide_dma_time uint16 - Eide_pio uint16 - Eide_pio_iordy uint16 - Words69_70 [2]uint16 - Words71_74 [4]uint16 - Queue_depth uint16 - Words76_79 [4]uint16 - Major_rev_num uint16 - Minor_rev_num uint16 - Command_set_1 uint16 - Command_set_2 uint16 - Cfsse uint16 - Cfs_enable_1 uint16 - Cfs_enable_2 uint16 - Csf_default uint16 - Dma_ultra uint16 - Trseuc uint16 - TrsEuc uint16 - CurAPMvalues uint16 - Mprc uint16 - Hw_config uint16 - Acoustic uint16 - Msrqs uint16 - Sxfert uint16 - Sal uint16 - Spg uint32 - Lba_capacity_2 uint64 - Words104_125 [22]uint16 - Last_lun uint16 - Word127 uint16 - Dlf uint16 - Csfo uint16 - Words130_155 [26]uint16 - Word156 uint16 - Words157_159 [3]uint16 - Cfa_power uint16 - Words161_175 [15]uint16 - Words176_205 [30]uint16 - Words206_254 [49]uint16 - Integrity_word uint16 -} - type Statfs_t struct { Type int64 Bsize int64 @@ -1388,18 +385,6 @@ type Statfs_t struct { Spare [4]int64 } -const ( - ST_MANDLOCK = 0x40 - ST_NOATIME = 0x400 - ST_NODEV = 0x4 - ST_NODIRATIME = 0x800 - ST_NOEXEC = 0x8 - ST_NOSUID = 0x2 - ST_RDONLY = 0x1 - ST_RELATIME = 0x1000 - ST_SYNCHRONOUS = 0x10 -) - type TpacketHdr struct { Status uint64 Len uint32 @@ -1411,589 +396,10 @@ type TpacketHdr struct { _ [4]byte } -type Tpacket2Hdr struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Sec uint32 - Nsec uint32 - Vlan_tci uint16 - Vlan_tpid uint16 - _ [4]uint8 -} - -type Tpacket3Hdr struct { - Next_offset uint32 - Sec uint32 - Nsec uint32 - Snaplen uint32 - Len uint32 - Status uint32 - Mac uint16 - Net uint16 - Hv1 TpacketHdrVariant1 - _ [8]uint8 -} - -type TpacketHdrVariant1 struct { - Rxhash uint32 - Vlan_tci uint32 - Vlan_tpid uint16 - _ uint16 -} - -type TpacketBlockDesc struct { - Version uint32 - To_priv uint32 - Hdr [40]byte -} - -type TpacketBDTS struct { - Sec uint32 - Usec uint32 -} - -type TpacketHdrV1 struct { - Block_status uint32 - Num_pkts uint32 - Offset_to_first_pkt uint32 - Blk_len uint32 - Seq_num uint64 - Ts_first_pkt TpacketBDTS - Ts_last_pkt TpacketBDTS -} - -type TpacketReq struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 -} - -type TpacketReq3 struct { - Block_size uint32 - Block_nr uint32 - Frame_size uint32 - Frame_nr uint32 - Retire_blk_tov uint32 - Sizeof_priv uint32 - Feature_req_word uint32 -} - -type TpacketStats struct { - Packets uint32 - Drops uint32 -} - -type TpacketStatsV3 struct { - Packets uint32 - Drops uint32 - Freeze_q_cnt uint32 -} - -type TpacketAuxdata struct { - Status uint32 - Len uint32 - Snaplen uint32 - Mac uint16 - Net uint16 - Vlan_tci uint16 - Vlan_tpid uint16 -} - -const ( - TPACKET_V1 = 0x0 - TPACKET_V2 = 0x1 - TPACKET_V3 = 0x2 -) - -const ( - SizeofTpacketHdr = 0x20 - SizeofTpacket2Hdr = 0x20 - SizeofTpacket3Hdr = 0x30 - - SizeofTpacketStats = 0x8 - SizeofTpacketStatsV3 = 0xc -) - const ( - NF_INET_PRE_ROUTING = 0x0 - NF_INET_LOCAL_IN = 0x1 - NF_INET_FORWARD = 0x2 - NF_INET_LOCAL_OUT = 0x3 - NF_INET_POST_ROUTING = 0x4 - NF_INET_NUMHOOKS = 0x5 + SizeofTpacketHdr = 0x20 ) -const ( - NF_NETDEV_INGRESS = 0x0 - NF_NETDEV_NUMHOOKS = 0x1 -) - -const ( - NFPROTO_UNSPEC = 0x0 - NFPROTO_INET = 0x1 - NFPROTO_IPV4 = 0x2 - NFPROTO_ARP = 0x3 - NFPROTO_NETDEV = 0x5 - NFPROTO_BRIDGE = 0x7 - NFPROTO_IPV6 = 0xa - NFPROTO_DECNET = 0xc - NFPROTO_NUMPROTO = 0xd -) - -type Nfgenmsg struct { - Nfgen_family uint8 - Version uint8 - Res_id uint16 -} - -const ( - NFNL_BATCH_UNSPEC = 0x0 - NFNL_BATCH_GENID = 0x1 -) - -const ( - NFT_REG_VERDICT = 0x0 - NFT_REG_1 = 0x1 - NFT_REG_2 = 0x2 - NFT_REG_3 = 0x3 - NFT_REG_4 = 0x4 - NFT_REG32_00 = 0x8 - NFT_REG32_01 = 0x9 - NFT_REG32_02 = 0xa - NFT_REG32_03 = 0xb - NFT_REG32_04 = 0xc - NFT_REG32_05 = 0xd - NFT_REG32_06 = 0xe - NFT_REG32_07 = 0xf - NFT_REG32_08 = 0x10 - NFT_REG32_09 = 0x11 - NFT_REG32_10 = 0x12 - NFT_REG32_11 = 0x13 - NFT_REG32_12 = 0x14 - NFT_REG32_13 = 0x15 - NFT_REG32_14 = 0x16 - NFT_REG32_15 = 0x17 - NFT_CONTINUE = -0x1 - NFT_BREAK = -0x2 - NFT_JUMP = -0x3 - NFT_GOTO = -0x4 - NFT_RETURN = -0x5 - NFT_MSG_NEWTABLE = 0x0 - NFT_MSG_GETTABLE = 0x1 - NFT_MSG_DELTABLE = 0x2 - NFT_MSG_NEWCHAIN = 0x3 - NFT_MSG_GETCHAIN = 0x4 - NFT_MSG_DELCHAIN = 0x5 - NFT_MSG_NEWRULE = 0x6 - NFT_MSG_GETRULE = 0x7 - NFT_MSG_DELRULE = 0x8 - NFT_MSG_NEWSET = 0x9 - NFT_MSG_GETSET = 0xa - NFT_MSG_DELSET = 0xb - NFT_MSG_NEWSETELEM = 0xc - NFT_MSG_GETSETELEM = 0xd - NFT_MSG_DELSETELEM = 0xe - NFT_MSG_NEWGEN = 0xf - NFT_MSG_GETGEN = 0x10 - NFT_MSG_TRACE = 0x11 - NFT_MSG_NEWOBJ = 0x12 - NFT_MSG_GETOBJ = 0x13 - NFT_MSG_DELOBJ = 0x14 - NFT_MSG_GETOBJ_RESET = 0x15 - NFT_MSG_MAX = 0x19 - NFTA_LIST_UNPEC = 0x0 - NFTA_LIST_ELEM = 0x1 - NFTA_HOOK_UNSPEC = 0x0 - NFTA_HOOK_HOOKNUM = 0x1 - NFTA_HOOK_PRIORITY = 0x2 - NFTA_HOOK_DEV = 0x3 - NFT_TABLE_F_DORMANT = 0x1 - NFTA_TABLE_UNSPEC = 0x0 - NFTA_TABLE_NAME = 0x1 - NFTA_TABLE_FLAGS = 0x2 - NFTA_TABLE_USE = 0x3 - NFTA_CHAIN_UNSPEC = 0x0 - NFTA_CHAIN_TABLE = 0x1 - NFTA_CHAIN_HANDLE = 0x2 - NFTA_CHAIN_NAME = 0x3 - NFTA_CHAIN_HOOK = 0x4 - NFTA_CHAIN_POLICY = 0x5 - NFTA_CHAIN_USE = 0x6 - NFTA_CHAIN_TYPE = 0x7 - NFTA_CHAIN_COUNTERS = 0x8 - NFTA_CHAIN_PAD = 0x9 - NFTA_RULE_UNSPEC = 0x0 - NFTA_RULE_TABLE = 0x1 - NFTA_RULE_CHAIN = 0x2 - NFTA_RULE_HANDLE = 0x3 - NFTA_RULE_EXPRESSIONS = 0x4 - NFTA_RULE_COMPAT = 0x5 - NFTA_RULE_POSITION = 0x6 - NFTA_RULE_USERDATA = 0x7 - NFTA_RULE_PAD = 0x8 - NFTA_RULE_ID = 0x9 - NFT_RULE_COMPAT_F_INV = 0x2 - NFT_RULE_COMPAT_F_MASK = 0x2 - NFTA_RULE_COMPAT_UNSPEC = 0x0 - NFTA_RULE_COMPAT_PROTO = 0x1 - NFTA_RULE_COMPAT_FLAGS = 0x2 - NFT_SET_ANONYMOUS = 0x1 - NFT_SET_CONSTANT = 0x2 - NFT_SET_INTERVAL = 0x4 - NFT_SET_MAP = 0x8 - NFT_SET_TIMEOUT = 0x10 - NFT_SET_EVAL = 0x20 - NFT_SET_OBJECT = 0x40 - NFT_SET_POL_PERFORMANCE = 0x0 - NFT_SET_POL_MEMORY = 0x1 - NFTA_SET_DESC_UNSPEC = 0x0 - NFTA_SET_DESC_SIZE = 0x1 - NFTA_SET_UNSPEC = 0x0 - NFTA_SET_TABLE = 0x1 - NFTA_SET_NAME = 0x2 - NFTA_SET_FLAGS = 0x3 - NFTA_SET_KEY_TYPE = 0x4 - NFTA_SET_KEY_LEN = 0x5 - NFTA_SET_DATA_TYPE = 0x6 - NFTA_SET_DATA_LEN = 0x7 - NFTA_SET_POLICY = 0x8 - NFTA_SET_DESC = 0x9 - NFTA_SET_ID = 0xa - NFTA_SET_TIMEOUT = 0xb - NFTA_SET_GC_INTERVAL = 0xc - NFTA_SET_USERDATA = 0xd - NFTA_SET_PAD = 0xe - NFTA_SET_OBJ_TYPE = 0xf - NFT_SET_ELEM_INTERVAL_END = 0x1 - NFTA_SET_ELEM_UNSPEC = 0x0 - NFTA_SET_ELEM_KEY = 0x1 - NFTA_SET_ELEM_DATA = 0x2 - NFTA_SET_ELEM_FLAGS = 0x3 - NFTA_SET_ELEM_TIMEOUT = 0x4 - NFTA_SET_ELEM_EXPIRATION = 0x5 - NFTA_SET_ELEM_USERDATA = 0x6 - NFTA_SET_ELEM_EXPR = 0x7 - NFTA_SET_ELEM_PAD = 0x8 - NFTA_SET_ELEM_OBJREF = 0x9 - NFTA_SET_ELEM_LIST_UNSPEC = 0x0 - NFTA_SET_ELEM_LIST_TABLE = 0x1 - NFTA_SET_ELEM_LIST_SET = 0x2 - NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 - NFTA_SET_ELEM_LIST_SET_ID = 0x4 - NFT_DATA_VALUE = 0x0 - NFT_DATA_VERDICT = 0xffffff00 - NFTA_DATA_UNSPEC = 0x0 - NFTA_DATA_VALUE = 0x1 - NFTA_DATA_VERDICT = 0x2 - NFTA_VERDICT_UNSPEC = 0x0 - NFTA_VERDICT_CODE = 0x1 - NFTA_VERDICT_CHAIN = 0x2 - NFTA_EXPR_UNSPEC = 0x0 - NFTA_EXPR_NAME = 0x1 - NFTA_EXPR_DATA = 0x2 - NFTA_IMMEDIATE_UNSPEC = 0x0 - NFTA_IMMEDIATE_DREG = 0x1 - NFTA_IMMEDIATE_DATA = 0x2 - NFTA_BITWISE_UNSPEC = 0x0 - NFTA_BITWISE_SREG = 0x1 - NFTA_BITWISE_DREG = 0x2 - NFTA_BITWISE_LEN = 0x3 - NFTA_BITWISE_MASK = 0x4 - NFTA_BITWISE_XOR = 0x5 - NFT_BYTEORDER_NTOH = 0x0 - NFT_BYTEORDER_HTON = 0x1 - NFTA_BYTEORDER_UNSPEC = 0x0 - NFTA_BYTEORDER_SREG = 0x1 - NFTA_BYTEORDER_DREG = 0x2 - NFTA_BYTEORDER_OP = 0x3 - NFTA_BYTEORDER_LEN = 0x4 - NFTA_BYTEORDER_SIZE = 0x5 - NFT_CMP_EQ = 0x0 - NFT_CMP_NEQ = 0x1 - NFT_CMP_LT = 0x2 - NFT_CMP_LTE = 0x3 - NFT_CMP_GT = 0x4 - NFT_CMP_GTE = 0x5 - NFTA_CMP_UNSPEC = 0x0 - NFTA_CMP_SREG = 0x1 - NFTA_CMP_OP = 0x2 - NFTA_CMP_DATA = 0x3 - NFT_RANGE_EQ = 0x0 - NFT_RANGE_NEQ = 0x1 - NFTA_RANGE_UNSPEC = 0x0 - NFTA_RANGE_SREG = 0x1 - NFTA_RANGE_OP = 0x2 - NFTA_RANGE_FROM_DATA = 0x3 - NFTA_RANGE_TO_DATA = 0x4 - NFT_LOOKUP_F_INV = 0x1 - NFTA_LOOKUP_UNSPEC = 0x0 - NFTA_LOOKUP_SET = 0x1 - NFTA_LOOKUP_SREG = 0x2 - NFTA_LOOKUP_DREG = 0x3 - NFTA_LOOKUP_SET_ID = 0x4 - NFTA_LOOKUP_FLAGS = 0x5 - NFT_DYNSET_OP_ADD = 0x0 - NFT_DYNSET_OP_UPDATE = 0x1 - NFT_DYNSET_F_INV = 0x1 - NFTA_DYNSET_UNSPEC = 0x0 - NFTA_DYNSET_SET_NAME = 0x1 - NFTA_DYNSET_SET_ID = 0x2 - NFTA_DYNSET_OP = 0x3 - NFTA_DYNSET_SREG_KEY = 0x4 - NFTA_DYNSET_SREG_DATA = 0x5 - NFTA_DYNSET_TIMEOUT = 0x6 - NFTA_DYNSET_EXPR = 0x7 - NFTA_DYNSET_PAD = 0x8 - NFTA_DYNSET_FLAGS = 0x9 - NFT_PAYLOAD_LL_HEADER = 0x0 - NFT_PAYLOAD_NETWORK_HEADER = 0x1 - NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 - NFT_PAYLOAD_CSUM_NONE = 0x0 - NFT_PAYLOAD_CSUM_INET = 0x1 - NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 - NFTA_PAYLOAD_UNSPEC = 0x0 - NFTA_PAYLOAD_DREG = 0x1 - NFTA_PAYLOAD_BASE = 0x2 - NFTA_PAYLOAD_OFFSET = 0x3 - NFTA_PAYLOAD_LEN = 0x4 - NFTA_PAYLOAD_SREG = 0x5 - NFTA_PAYLOAD_CSUM_TYPE = 0x6 - NFTA_PAYLOAD_CSUM_OFFSET = 0x7 - NFTA_PAYLOAD_CSUM_FLAGS = 0x8 - NFT_EXTHDR_F_PRESENT = 0x1 - NFT_EXTHDR_OP_IPV6 = 0x0 - NFT_EXTHDR_OP_TCPOPT = 0x1 - NFTA_EXTHDR_UNSPEC = 0x0 - NFTA_EXTHDR_DREG = 0x1 - NFTA_EXTHDR_TYPE = 0x2 - NFTA_EXTHDR_OFFSET = 0x3 - NFTA_EXTHDR_LEN = 0x4 - NFTA_EXTHDR_FLAGS = 0x5 - NFTA_EXTHDR_OP = 0x6 - NFTA_EXTHDR_SREG = 0x7 - NFT_META_LEN = 0x0 - NFT_META_PROTOCOL = 0x1 - NFT_META_PRIORITY = 0x2 - NFT_META_MARK = 0x3 - NFT_META_IIF = 0x4 - NFT_META_OIF = 0x5 - NFT_META_IIFNAME = 0x6 - NFT_META_OIFNAME = 0x7 - NFT_META_IIFTYPE = 0x8 - NFT_META_OIFTYPE = 0x9 - NFT_META_SKUID = 0xa - NFT_META_SKGID = 0xb - NFT_META_NFTRACE = 0xc - NFT_META_RTCLASSID = 0xd - NFT_META_SECMARK = 0xe - NFT_META_NFPROTO = 0xf - NFT_META_L4PROTO = 0x10 - NFT_META_BRI_IIFNAME = 0x11 - NFT_META_BRI_OIFNAME = 0x12 - NFT_META_PKTTYPE = 0x13 - NFT_META_CPU = 0x14 - NFT_META_IIFGROUP = 0x15 - NFT_META_OIFGROUP = 0x16 - NFT_META_CGROUP = 0x17 - NFT_META_PRANDOM = 0x18 - NFT_RT_CLASSID = 0x0 - NFT_RT_NEXTHOP4 = 0x1 - NFT_RT_NEXTHOP6 = 0x2 - NFT_RT_TCPMSS = 0x3 - NFT_HASH_JENKINS = 0x0 - NFT_HASH_SYM = 0x1 - NFTA_HASH_UNSPEC = 0x0 - NFTA_HASH_SREG = 0x1 - NFTA_HASH_DREG = 0x2 - NFTA_HASH_LEN = 0x3 - NFTA_HASH_MODULUS = 0x4 - NFTA_HASH_SEED = 0x5 - NFTA_HASH_OFFSET = 0x6 - NFTA_HASH_TYPE = 0x7 - NFTA_META_UNSPEC = 0x0 - NFTA_META_DREG = 0x1 - NFTA_META_KEY = 0x2 - NFTA_META_SREG = 0x3 - NFTA_RT_UNSPEC = 0x0 - NFTA_RT_DREG = 0x1 - NFTA_RT_KEY = 0x2 - NFT_CT_STATE = 0x0 - NFT_CT_DIRECTION = 0x1 - NFT_CT_STATUS = 0x2 - NFT_CT_MARK = 0x3 - NFT_CT_SECMARK = 0x4 - NFT_CT_EXPIRATION = 0x5 - NFT_CT_HELPER = 0x6 - NFT_CT_L3PROTOCOL = 0x7 - NFT_CT_SRC = 0x8 - NFT_CT_DST = 0x9 - NFT_CT_PROTOCOL = 0xa - NFT_CT_PROTO_SRC = 0xb - NFT_CT_PROTO_DST = 0xc - NFT_CT_LABELS = 0xd - NFT_CT_PKTS = 0xe - NFT_CT_BYTES = 0xf - NFT_CT_AVGPKT = 0x10 - NFT_CT_ZONE = 0x11 - NFT_CT_EVENTMASK = 0x12 - NFTA_CT_UNSPEC = 0x0 - NFTA_CT_DREG = 0x1 - NFTA_CT_KEY = 0x2 - NFTA_CT_DIRECTION = 0x3 - NFTA_CT_SREG = 0x4 - NFT_LIMIT_PKTS = 0x0 - NFT_LIMIT_PKT_BYTES = 0x1 - NFT_LIMIT_F_INV = 0x1 - NFTA_LIMIT_UNSPEC = 0x0 - NFTA_LIMIT_RATE = 0x1 - NFTA_LIMIT_UNIT = 0x2 - NFTA_LIMIT_BURST = 0x3 - NFTA_LIMIT_TYPE = 0x4 - NFTA_LIMIT_FLAGS = 0x5 - NFTA_LIMIT_PAD = 0x6 - NFTA_COUNTER_UNSPEC = 0x0 - NFTA_COUNTER_BYTES = 0x1 - NFTA_COUNTER_PACKETS = 0x2 - NFTA_COUNTER_PAD = 0x3 - NFTA_LOG_UNSPEC = 0x0 - NFTA_LOG_GROUP = 0x1 - NFTA_LOG_PREFIX = 0x2 - NFTA_LOG_SNAPLEN = 0x3 - NFTA_LOG_QTHRESHOLD = 0x4 - NFTA_LOG_LEVEL = 0x5 - NFTA_LOG_FLAGS = 0x6 - NFTA_QUEUE_UNSPEC = 0x0 - NFTA_QUEUE_NUM = 0x1 - NFTA_QUEUE_TOTAL = 0x2 - NFTA_QUEUE_FLAGS = 0x3 - NFTA_QUEUE_SREG_QNUM = 0x4 - NFT_QUOTA_F_INV = 0x1 - NFT_QUOTA_F_DEPLETED = 0x2 - NFTA_QUOTA_UNSPEC = 0x0 - NFTA_QUOTA_BYTES = 0x1 - NFTA_QUOTA_FLAGS = 0x2 - NFTA_QUOTA_PAD = 0x3 - NFTA_QUOTA_CONSUMED = 0x4 - NFT_REJECT_ICMP_UNREACH = 0x0 - NFT_REJECT_TCP_RST = 0x1 - NFT_REJECT_ICMPX_UNREACH = 0x2 - NFT_REJECT_ICMPX_NO_ROUTE = 0x0 - NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 - NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 - NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 - NFTA_REJECT_UNSPEC = 0x0 - NFTA_REJECT_TYPE = 0x1 - NFTA_REJECT_ICMP_CODE = 0x2 - NFT_NAT_SNAT = 0x0 - NFT_NAT_DNAT = 0x1 - NFTA_NAT_UNSPEC = 0x0 - NFTA_NAT_TYPE = 0x1 - NFTA_NAT_FAMILY = 0x2 - NFTA_NAT_REG_ADDR_MIN = 0x3 - NFTA_NAT_REG_ADDR_MAX = 0x4 - NFTA_NAT_REG_PROTO_MIN = 0x5 - NFTA_NAT_REG_PROTO_MAX = 0x6 - NFTA_NAT_FLAGS = 0x7 - NFTA_MASQ_UNSPEC = 0x0 - NFTA_MASQ_FLAGS = 0x1 - NFTA_MASQ_REG_PROTO_MIN = 0x2 - NFTA_MASQ_REG_PROTO_MAX = 0x3 - NFTA_REDIR_UNSPEC = 0x0 - NFTA_REDIR_REG_PROTO_MIN = 0x1 - NFTA_REDIR_REG_PROTO_MAX = 0x2 - NFTA_REDIR_FLAGS = 0x3 - NFTA_DUP_UNSPEC = 0x0 - NFTA_DUP_SREG_ADDR = 0x1 - NFTA_DUP_SREG_DEV = 0x2 - NFTA_FWD_UNSPEC = 0x0 - NFTA_FWD_SREG_DEV = 0x1 - NFTA_OBJREF_UNSPEC = 0x0 - NFTA_OBJREF_IMM_TYPE = 0x1 - NFTA_OBJREF_IMM_NAME = 0x2 - NFTA_OBJREF_SET_SREG = 0x3 - NFTA_OBJREF_SET_NAME = 0x4 - NFTA_OBJREF_SET_ID = 0x5 - NFTA_GEN_UNSPEC = 0x0 - NFTA_GEN_ID = 0x1 - NFTA_GEN_PROC_PID = 0x2 - NFTA_GEN_PROC_NAME = 0x3 - NFTA_FIB_UNSPEC = 0x0 - NFTA_FIB_DREG = 0x1 - NFTA_FIB_RESULT = 0x2 - NFTA_FIB_FLAGS = 0x3 - NFT_FIB_RESULT_UNSPEC = 0x0 - NFT_FIB_RESULT_OIF = 0x1 - NFT_FIB_RESULT_OIFNAME = 0x2 - NFT_FIB_RESULT_ADDRTYPE = 0x3 - NFTA_FIB_F_SADDR = 0x1 - NFTA_FIB_F_DADDR = 0x2 - NFTA_FIB_F_MARK = 0x4 - NFTA_FIB_F_IIF = 0x8 - NFTA_FIB_F_OIF = 0x10 - NFTA_FIB_F_PRESENT = 0x20 - NFTA_CT_HELPER_UNSPEC = 0x0 - NFTA_CT_HELPER_NAME = 0x1 - NFTA_CT_HELPER_L3PROTO = 0x2 - NFTA_CT_HELPER_L4PROTO = 0x3 - NFTA_OBJ_UNSPEC = 0x0 - NFTA_OBJ_TABLE = 0x1 - NFTA_OBJ_NAME = 0x2 - NFTA_OBJ_TYPE = 0x3 - NFTA_OBJ_DATA = 0x4 - NFTA_OBJ_USE = 0x5 - NFTA_TRACE_UNSPEC = 0x0 - NFTA_TRACE_TABLE = 0x1 - NFTA_TRACE_CHAIN = 0x2 - NFTA_TRACE_RULE_HANDLE = 0x3 - NFTA_TRACE_TYPE = 0x4 - NFTA_TRACE_VERDICT = 0x5 - NFTA_TRACE_ID = 0x6 - NFTA_TRACE_LL_HEADER = 0x7 - NFTA_TRACE_NETWORK_HEADER = 0x8 - NFTA_TRACE_TRANSPORT_HEADER = 0x9 - NFTA_TRACE_IIF = 0xa - NFTA_TRACE_IIFTYPE = 0xb - NFTA_TRACE_OIF = 0xc - NFTA_TRACE_OIFTYPE = 0xd - NFTA_TRACE_MARK = 0xe - NFTA_TRACE_NFPROTO = 0xf - NFTA_TRACE_POLICY = 0x10 - NFTA_TRACE_PAD = 0x11 - NFT_TRACETYPE_UNSPEC = 0x0 - NFT_TRACETYPE_POLICY = 0x1 - NFT_TRACETYPE_RETURN = 0x2 - NFT_TRACETYPE_RULE = 0x3 - NFTA_NG_UNSPEC = 0x0 - NFTA_NG_DREG = 0x1 - NFTA_NG_MODULUS = 0x2 - NFTA_NG_TYPE = 0x3 - NFTA_NG_OFFSET = 0x4 - NFT_NG_INCREMENTAL = 0x0 - NFT_NG_RANDOM = 0x1 -) - -type RTCTime struct { - Sec int32 - Min int32 - Hour int32 - Mday int32 - Mon int32 - Year int32 - Wday int32 - Yday int32 - Isdst int32 -} - -type RTCWkAlrm struct { - Enabled uint8 - Pending uint8 - Time RTCTime -} - type RTCPLLInfo struct { Ctrl int32 Value int32 @@ -2004,13 +410,6 @@ type RTCPLLInfo struct { Clock int64 } -type BlkpgIoctlArg struct { - Op int32 - Flags int32 - Datalen int32 - Data *byte -} - type BlkpgPartition struct { Start int64 Length int64 @@ -2021,168 +420,18 @@ type BlkpgPartition struct { } const ( - BLKPG = 0x20001269 - BLKPG_ADD_PARTITION = 0x1 - BLKPG_DEL_PARTITION = 0x2 - BLKPG_RESIZE_PARTITION = 0x3 -) - -const ( - NETNSA_NONE = 0x0 - NETNSA_NSID = 0x1 - NETNSA_PID = 0x2 - NETNSA_FD = 0x3 + BLKPG = 0x20001269 ) -type XDPRingOffset struct { - Producer uint64 - Consumer uint64 - Desc uint64 -} - -type XDPMmapOffsets struct { - Rx XDPRingOffset - Tx XDPRingOffset - Fr XDPRingOffset - Cr XDPRingOffset -} - type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 + Flags uint32 + _ [4]byte } -type XDPStatistics struct { - Rx_dropped uint64 - Rx_invalid_descs uint64 - Tx_invalid_descs uint64 -} - -type XDPDesc struct { - Addr uint64 - Len uint32 - Options uint32 -} - -const ( - NCSI_CMD_UNSPEC = 0x0 - NCSI_CMD_PKG_INFO = 0x1 - NCSI_CMD_SET_INTERFACE = 0x2 - NCSI_CMD_CLEAR_INTERFACE = 0x3 - NCSI_ATTR_UNSPEC = 0x0 - NCSI_ATTR_IFINDEX = 0x1 - NCSI_ATTR_PACKAGE_LIST = 0x2 - NCSI_ATTR_PACKAGE_ID = 0x3 - NCSI_ATTR_CHANNEL_ID = 0x4 - NCSI_PKG_ATTR_UNSPEC = 0x0 - NCSI_PKG_ATTR = 0x1 - NCSI_PKG_ATTR_ID = 0x2 - NCSI_PKG_ATTR_FORCED = 0x3 - NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 - NCSI_CHANNEL_ATTR_UNSPEC = 0x0 - NCSI_CHANNEL_ATTR = 0x1 - NCSI_CHANNEL_ATTR_ID = 0x2 - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 - NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 - NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 - NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 - NCSI_CHANNEL_ATTR_ACTIVE = 0x7 - NCSI_CHANNEL_ATTR_FORCED = 0x8 - NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 - NCSI_CHANNEL_ATTR_VLAN_ID = 0xa -) - -type ScmTimestamping struct { - Ts [3]Timespec -} - -const ( - SOF_TIMESTAMPING_TX_HARDWARE = 0x1 - SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 - SOF_TIMESTAMPING_RX_HARDWARE = 0x4 - SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 - SOF_TIMESTAMPING_SOFTWARE = 0x10 - SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 - SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 - SOF_TIMESTAMPING_OPT_ID = 0x80 - SOF_TIMESTAMPING_TX_SCHED = 0x100 - SOF_TIMESTAMPING_TX_ACK = 0x200 - SOF_TIMESTAMPING_OPT_CMSG = 0x400 - SOF_TIMESTAMPING_OPT_TSONLY = 0x800 - SOF_TIMESTAMPING_OPT_STATS = 0x1000 - SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 - SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 - - SOF_TIMESTAMPING_LAST = 0x4000 - SOF_TIMESTAMPING_MASK = 0x7fff - - SCM_TSTAMP_SND = 0x0 - SCM_TSTAMP_SCHED = 0x1 - SCM_TSTAMP_ACK = 0x2 -) - -type SockExtendedErr struct { - Errno uint32 - Origin uint8 - Type uint8 - Code uint8 - Pad uint8 - Info uint32 - Data uint32 -} - -type FanotifyEventMetadata struct { - Event_len uint32 - Vers uint8 - Reserved uint8 - Metadata_len uint16 - Mask uint64 - Fd int32 - Pid int32 -} - -type FanotifyResponse struct { - Fd int32 - Response uint32 -} - -const ( - CRYPTO_MSG_BASE = 0x10 - CRYPTO_MSG_NEWALG = 0x10 - CRYPTO_MSG_DELALG = 0x11 - CRYPTO_MSG_UPDATEALG = 0x12 - CRYPTO_MSG_GETALG = 0x13 - CRYPTO_MSG_DELRNG = 0x14 - CRYPTO_MSG_GETSTAT = 0x15 -) - -const ( - CRYPTOCFGA_UNSPEC = 0x0 - CRYPTOCFGA_PRIORITY_VAL = 0x1 - CRYPTOCFGA_REPORT_LARVAL = 0x2 - CRYPTOCFGA_REPORT_HASH = 0x3 - CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 - CRYPTOCFGA_REPORT_AEAD = 0x5 - CRYPTOCFGA_REPORT_COMPRESS = 0x6 - CRYPTOCFGA_REPORT_RNG = 0x7 - CRYPTOCFGA_REPORT_CIPHER = 0x8 - CRYPTOCFGA_REPORT_AKCIPHER = 0x9 - CRYPTOCFGA_REPORT_KPP = 0xa - CRYPTOCFGA_REPORT_ACOMP = 0xb - CRYPTOCFGA_STAT_LARVAL = 0xc - CRYPTOCFGA_STAT_HASH = 0xd - CRYPTOCFGA_STAT_BLKCIPHER = 0xe - CRYPTOCFGA_STAT_AEAD = 0xf - CRYPTOCFGA_STAT_COMPRESS = 0x10 - CRYPTOCFGA_STAT_RNG = 0x11 - CRYPTOCFGA_STAT_CIPHER = 0x12 - CRYPTOCFGA_STAT_AKCIPHER = 0x13 - CRYPTOCFGA_STAT_KPP = 0x14 - CRYPTOCFGA_STAT_ACOMP = 0x15 -) - type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 @@ -2313,171 +562,36 @@ type CryptoReportAcomp struct { Type [64]int8 } -const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 -) +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} -type CapUserHeader struct { - Version uint32 - Pid int32 +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 } -type CapUserData struct { - Effective uint32 - Permitted uint32 - Inheritable uint32 +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 } -const ( - LINUX_CAPABILITY_VERSION_1 = 0x19980330 - LINUX_CAPABILITY_VERSION_2 = 0x20071026 - LINUX_CAPABILITY_VERSION_3 = 0x20080522 -) +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go index 86736ab6e..a89100c08 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go @@ -78,6 +78,33 @@ type Stat_t struct { type Statfs_t [0]byte +type Statvfs_t struct { + Flag uint32 + Bsize uint32 + Frsize uint32 + Iosize uint32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint32 + Namemax uint32 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte +} + type Flock_t struct { Start int64 Len int64 @@ -103,6 +130,11 @@ const ( PathMax = 0x400 ) +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + const ( FADV_NORMAL = 0x0 FADV_RANDOM = 0x1 diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go index 3427811f9..289184e0b 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go @@ -82,6 +82,34 @@ type Stat_t struct { type Statfs_t [0]byte +type Statvfs_t struct { + Flag uint64 + Bsize uint64 + Frsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint64 + Namemax uint64 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte + _ [4]byte +} + type Flock_t struct { Start int64 Len int64 @@ -107,6 +135,11 @@ const ( PathMax = 0x400 ) +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + const ( FADV_NORMAL = 0x0 FADV_RANDOM = 0x1 diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go index 399f37a43..428c450e4 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go @@ -83,6 +83,33 @@ type Stat_t struct { type Statfs_t [0]byte +type Statvfs_t struct { + Flag uint32 + Bsize uint32 + Frsize uint32 + Iosize uint32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint32 + Namemax uint32 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte +} + type Flock_t struct { Start int64 Len int64 @@ -108,6 +135,11 @@ const ( PathMax = 0x400 ) +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + const ( FADV_NORMAL = 0x0 FADV_RANDOM = 0x1 diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go index 32f0c15d9..6f1f2842c 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go @@ -82,6 +82,34 @@ type Stat_t struct { type Statfs_t [0]byte +type Statvfs_t struct { + Flag uint64 + Bsize uint64 + Frsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint64 + Namemax uint64 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte + _ [4]byte +} + type Flock_t struct { Start int64 Len int64 @@ -107,6 +135,11 @@ const ( PathMax = 0x400 ) +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + const ( FADV_NORMAL = 0x0 FADV_RANDOM = 0x1 diff --git a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go index 8531a190f..23ed9fe51 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go @@ -211,6 +211,12 @@ type Cmsghdr struct { Type int32 } +type Inet4Pktinfo struct { + Ifindex uint32 + Spec_dst [4]byte /* in_addr */ + Addr [4]byte /* in_addr */ +} + type Inet6Pktinfo struct { Addr [16]byte /* in6_addr */ Ifindex uint32 @@ -236,6 +242,7 @@ const ( SizeofIPv6Mreq = 0x14 SizeofMsghdr = 0x30 SizeofCmsghdr = 0xc + SizeofInet4Pktinfo = 0xc SizeofInet6Pktinfo = 0x14 SizeofIPv6MTUInfo = 0x24 SizeofICMPv6Filter = 0x20 diff --git a/vendor/modules.txt b/vendor/modules.txt index 3244a1371..6ab3a4756 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -79,8 +79,6 @@ github.com/google/go-cmp/cmp/internal/value github.com/google/uuid # github.com/googleapis/gax-go/v2 v2.0.5 github.com/googleapis/gax-go/v2 -# github.com/gorilla/mux v1.7.3 -github.com/gorilla/mux # github.com/hashicorp/errwrap v1.0.0 github.com/hashicorp/errwrap # github.com/hashicorp/go-cleanhttp v0.5.1 @@ -235,10 +233,10 @@ github.com/vmware/go-vmware-nsxt/monitoring github.com/vmware/go-vmware-nsxt/normalization github.com/vmware/go-vmware-nsxt/policy github.com/vmware/go-vmware-nsxt/upgrade -# github.com/vmware/vsphere-automation-sdk-go/lib v0.1.1 +# github.com/vmware/vsphere-automation-sdk-go/lib v0.2.0 github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors -# github.com/vmware/vsphere-automation-sdk-go/runtime v0.1.1 +# github.com/vmware/vsphere-automation-sdk-go/runtime v0.2.0 github.com/vmware/vsphere-automation-sdk-go/runtime/bindings github.com/vmware/vsphere-automation-sdk-go/runtime/core github.com/vmware/vsphere-automation-sdk-go/runtime/data @@ -247,10 +245,10 @@ github.com/vmware/vsphere-automation-sdk-go/runtime/security github.com/vmware/vsphere-automation-sdk-go/runtime/l10n github.com/vmware/vsphere-automation-sdk-go/runtime/lib github.com/vmware/vsphere-automation-sdk-go/runtime/log -github.com/vmware/vsphere-automation-sdk-go/runtime github.com/vmware/vsphere-automation-sdk-go/runtime/common github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/rest github.com/vmware/vsphere-automation-sdk-go/runtime/protocol +github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client/metadata github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/rpc/msg github.com/vmware/vsphere-automation-sdk-go/runtime/metadata github.com/vmware/vsphere-automation-sdk-go/runtime/metadata/info @@ -258,7 +256,7 @@ github.com/vmware/vsphere-automation-sdk-go/runtime/l10n/runtime github.com/vmware/vsphere-automation-sdk-go/runtime/data/serializers/cleanjson github.com/vmware/vsphere-automation-sdk-go/runtime/lib/rest github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server -# github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.2.0 +# github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.3.0 github.com/vmware/vsphere-automation-sdk-go/services/nsxt github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra github.com/vmware/vsphere-automation-sdk-go/services/nsxt/infra/domains @@ -314,7 +312,7 @@ golang.org/x/crypto/bcrypt golang.org/x/crypto/cast5 golang.org/x/crypto/openpgp/elgamal golang.org/x/crypto/blowfish -# golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa +# golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e golang.org/x/net/context golang.org/x/net/trace golang.org/x/net/internal/timeseries @@ -329,7 +327,7 @@ golang.org/x/oauth2/internal golang.org/x/oauth2/google golang.org/x/oauth2/jws golang.org/x/oauth2/jwt -# golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 +# golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd golang.org/x/sys/unix # golang.org/x/text v0.3.2 golang.org/x/text/unicode/norm diff --git a/website/docs/d/policy_segment_realization.html.markdown b/website/docs/d/policy_segment_realization.html.markdown index 8837bb4b1..4deee5ef4 100644 --- a/website/docs/d/policy_segment_realization.html.markdown +++ b/website/docs/d/policy_segment_realization.html.markdown @@ -20,9 +20,15 @@ resource "nsxt_policy_segment" "s1" { transport_zone_path = data.nsxt_transport_zone.tz1.path } -data "nsxt_policy_segment_realization" "info" { +data "nsxt_policy_segment_realization" "s1" { path = data.nsxt_policy_segment.s1.path } + +# usage in vsphere provider +data "vsphere_network" "net" { + name = nsxt_policy_segment_realization.s1.network_name + datacenter_id = data.vsphere_datacenter.datacenter.id +} ``` ## Argument Reference @@ -34,3 +40,4 @@ data "nsxt_policy_segment_realization" "info" { In addition to arguments listed above, the following attributes are exported: * `state` - The realization state of the resource: `success`, `partial_success`, `orphaned`, `failed` or `error`. +* `network_name` - Network name on the hypervisor. This attribute can be used in vsphere provider in order to ensure implicit dependency on segment realization. diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index 7652004c5..d5ddfa451 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown @@ -322,7 +322,7 @@ data "nsxt_policy_tier0_gateway" "t0_gateway" { # # Create a DHCP Profile that is used later -# +# Note, this resource is only in NSX 3.0.0+ resource "nsxt_policy_dhcp_server" "tier_dhcp" { display_name = "tier_dhcp" description = "DHCP server servicing all 3 Segments" @@ -345,7 +345,7 @@ resource "nsxt_policy_tier1_gateway" "t1_gateway" { default_rule_logging = "false" enable_firewall = "true" enable_standby_relocation = "false" - force_whitelisting = "true" + force_whitelisting = "false" tier0_path = data.nsxt_policy_tier0_gateway.t0_gateway.path route_advertisement_types = ["TIER1_STATIC_ROUTES", "TIER1_CONNECTED"] pool_allocation = "ROUTING" @@ -389,11 +389,6 @@ resource "nsxt_policy_segment" "web" { } } - advanced_config { - connectivity = "OFF" - local_egress = "true" - } - tag { scope = var.nsx_tag_scope tag = var.nsx_tag @@ -425,11 +420,6 @@ resource "nsxt_policy_segment" "app" { } } - advanced_config { - connectivity = "OFF" - local_egress = "true" - } - tag { scope = var.nsx_tag_scope tag = var.nsx_tag @@ -461,11 +451,6 @@ resource "nsxt_policy_segment" "db" { } } - advanced_config { - connectivity = "OFF" - local_egress = "true" - } - tag { scope = var.nsx_tag_scope tag = var.nsx_tag @@ -759,7 +744,7 @@ data "nsxt_policy_vm" "db_vm" { } -# Assigne the right tags to the VMs so that they get included in the +# Assign the right tags to the VMs so that they get included in the # dynamic groups created above resource "nsxt_policy_vm_tags" "web_vm_tag" { instance_id = data.nsxt_policy_vm.web_vm.instance_id diff --git a/website/docs/r/ip_pool_allocation_ip_address.html.markdown b/website/docs/r/ip_pool_allocation_ip_address.html.markdown index ba917b5a9..603b09609 100644 --- a/website/docs/r/ip_pool_allocation_ip_address.html.markdown +++ b/website/docs/r/ip_pool_allocation_ip_address.html.markdown @@ -34,3 +34,15 @@ In addition to arguments listed above, the following attributes are exported: * `id` - ID of the IP pool allocation IP address (currently identical to `allocation_ip`). * `allocation_ip` - Allocation IP address. + +## Importing + +An existing IP pool allocation address can be [imported][docs-import] into this resource, via the following command: + +[docs-import]: /docs/import/index.html + +``` +terraform import nsxt_ip_pool_allocation_ip_address.ip1 POOL-UUID/UUID +``` + +The above would import the IP pool allocation address named `ip_pool` with the nsx ID `UUID`, from IP Pool with nsx ID `POOL-UUID`. diff --git a/website/docs/r/policy_bgp_neighbor.html.markdown b/website/docs/r/policy_bgp_neighbor.html.markdown index aa672efd6..9419dd90d 100644 --- a/website/docs/r/policy_bgp_neighbor.html.markdown +++ b/website/docs/r/policy_bgp_neighbor.html.markdown @@ -23,6 +23,7 @@ resource "nsxt_policy_bgp_neighbor" "test" { neighbor_address = "12.12.11.23" password = "passw0rd" remote_as_num = "60000" + source_addresses = nsxt_policy_tier0_gateway_interface.testresource.ip_addresses bfd_config { enabled = true @@ -37,6 +38,9 @@ resource "nsxt_policy_bgp_neighbor" "test" { } ``` +~> **NOTE:** If bgp neighbor configuration depends on gateway interface, please add `depends_on` clause in `nsxt_policy_bgp_neighbor` resource in order to ensure correct order of creation/deletion. + + ## Argument Reference The following arguments are supported: @@ -54,7 +58,7 @@ The following arguments are supported: * `neighbor_address` - (Required) Neighbor IP Address. * `password` - (Optional) Password for BGP neighbor authentication. Set to the empty string to clear out the password. * `remote_as_num` - (Required) 4 Byte ASN of the neighbor in ASPLAIN Format. -* `source_addresses` - (Optional) A list of up to 8 source IP Addresses for BGP peering. +* `source_addresses` - (Optional) A list of up to 8 source IP Addresses for BGP peering. `ip_addresses` field of an existing `nsxt_policy_tier0_gateway_interface` can be used here. * `bfd_config` - (Optional) The BFD configuration. * `enabled` - (Optional) A boolean flag to enable/disable BFD. Defaults to `false`. * `interval` - (Optional) Time interval between heartbeat packets in milliseconds. Defaults to `500`. @@ -62,8 +66,8 @@ The following arguments are supported: * `route_filtering` - (Optional) Up to 2 route filters for the neighbor. Note that prior to NSX version 3.0.0, only 1 element is supported. * `address_family` - (Required) Address family type. Must be one of `EVPN`, `IPV4` or `IPV6`. Note the `EVPN` property is only available starting with NSX version 3.0.0. * `enabled`- (Optional) A boolean flag to enable/disable address family. Defaults to `false`. - * `in_route_filter`- (Optional) A prefix or route map path for IN direction. - * `out_route_filter`- (Optional) A prefix or route map path for OUT direction. + * `in_route_filter`- (Optional) Path of prefix-list or route map to filter routes for IN direction. + * `out_route_filter`- (Optional) Path of prefix-list or route map to filter routes for OUT direction. * `maximum_routes` - (Optional) Maximum number of routes for the address family. Note this property is only available starting with NSX version 3.0.0. ## Attributes Reference diff --git a/website/docs/r/policy_gateway_policy.html.markdown b/website/docs/r/policy_gateway_policy.html.markdown index e38c30301..a2e596553 100644 --- a/website/docs/r/policy_gateway_policy.html.markdown +++ b/website/docs/r/policy_gateway_policy.html.markdown @@ -64,13 +64,14 @@ The following arguments are supported: * `logged` - (Optional) A boolean flag to enable packet logging. * `notes` - (Optional) Text for additional notes on changes for the rule. * `profiles` - (Optional) A list of profiles for the rule. - * `scope` - (Optional) List of policy paths where the rule is applied. + * `scope` - (Required) List of policy paths where the rule is applied. * `services` - (Optional) List of services to match. * `source_groups` - (Optional) A list of source group paths to use for the policy. * `source_excluded` - (Optional) A boolean value indicating negation of source groups. + * `log_label` - (Optional) Additional information (string) which will be propagated to the rule syslog. * `tag` - (Optional) A list of scope + tag pairs to associate with this Rule. * `action` - (Optional) The action for the Rule. Must be one of: `ALLOW`, `DROP` or `REJECT`. Defaults to `ALLOW`. - + ## Attributes Reference diff --git a/website/docs/r/policy_lb_service.html.markdown b/website/docs/r/policy_lb_service.html.markdown index f244e4006..538a69d8a 100644 --- a/website/docs/r/policy_lb_service.html.markdown +++ b/website/docs/r/policy_lb_service.html.markdown @@ -33,7 +33,7 @@ The following arguments are supported: * `display_name` - (Required) Display name of the resource. * `description` - (Optional) Description of the resource. -* `size` - (Optional) Load Balancer Service size, one of `SMALL`, `MEDIUM`, `LARGE`, `XLARGE`, `DLB`. Default is `SMALL`. +* `size` - (Optional) Load Balancer Service size, one of `SMALL`, `MEDIUM`, `LARGE`, `XLARGE`, `DLB`. Default is `SMALL`. Please note that XLARGE is only supported since NSX 3.0.0 * `tag` - (Optional) A list of scope + tag pairs to associate with this resource. * `nsx_id` - (Optional) The NSX ID of this resource. If set, this ID will be used to create the resource. * `connectivity_path` - (Optional) Tier1 Gateway where this service is instantiated. In future, other objects will be supported. diff --git a/website/docs/r/policy_nat_rule.html.markdown b/website/docs/r/policy_nat_rule.html.markdown index 09cf76f3c..594693e8b 100644 --- a/website/docs/r/policy_nat_rule.html.markdown +++ b/website/docs/r/policy_nat_rule.html.markdown @@ -18,7 +18,7 @@ resource "nsxt_policy_nat_rule" "dnat1" { source_networks = ["9.1.1.1", "9.2.1.1"] destination_networks = ["11.1.1.1"] translated_networks = ["10.1.1.1"] - gateway_path = "${nsxt_policy_tier1_gateway.t1gateway.path}" + gateway_path = nsxt_policy_tier1_gateway.t1gateway.path logging = false firewall_match = "MATCH_INTERNAL_ADDRESS" diff --git a/website/docs/r/policy_security_policy.html.markdown b/website/docs/r/policy_security_policy.html.markdown index 7ada3bfa3..68c97c585 100644 --- a/website/docs/r/policy_security_policy.html.markdown +++ b/website/docs/r/policy_security_policy.html.markdown @@ -75,7 +75,8 @@ The following arguments are supported: * `profiles` - (Optional) Set of profile paths relevant for this rule. * `scope` - (Optional) Set of policy object paths where the rule is applied. * `services` - (Optional) Set of service paths to match. - * `tag` - (Optional) A list of scope + tag pairs to associate with this rule. + * `log_label` - (Optional) Additional information (string) which will be propagated to the rule syslog. + * `tag` - (Optional) A list of scope + tag pairs to associate with this Rule. ## Attributes Reference diff --git a/website/docs/r/policy_segment.html.markdown b/website/docs/r/policy_segment.html.markdown index 254a1d0a7..ae7928dc2 100644 --- a/website/docs/r/policy_segment.html.markdown +++ b/website/docs/r/policy_segment.html.markdown @@ -13,9 +13,10 @@ This resource provides a method for the management of Segments. ```hcl resource "nsxt_policy_segment" "segment1" { - display_name = "segment1" - description = "Terraform provisioned Segment" - connectivity_path = nsxt_policy_tier1_gateway.mygateway.path + display_name = "segment1" + description = "Terraform provisioned Segment" + connectivity_path = nsxt_policy_tier1_gateway.mygateway.path + transport_zone_path = data.nsxt_policy_transport_zone.overlay_tz.path subnet { cidr = "12.12.2.1/24" @@ -36,10 +37,9 @@ resource "nsxt_policy_segment" "segment1" { } } } - - advanced_config { - connectivity = "OFF" - local_egress = true + + advanced_config { + connectivity = "ON" } } ``` @@ -55,7 +55,7 @@ The following arguments are supported: * `connectivity_path` - (Optional) Policy path to the connecting Tier-0 or Tier-1. * `domain_name`- (Optional) DNS domain names. * `overlay_id` - (Optional) Overlay connectivity ID for this Segment. -* `transport_zone_path` - (Optional) Policy path to the Overlay transport zone. This property is required if more than one overlay transport zone is defined, and none is marked as default. +* `transport_zone_path` - (Required) Policy path to the Overlay transport zone. This property is required if more than one overlay transport zone is defined, and none is marked as default. * `dhcp_config_path` - (Optional) Policy path to DHCP server or relay configuration to use for subnets configured on this segment. This attribute is supported with NSX 3.0.0 onwards. * `subnet` - (Required) Subnet configuration block. * `cidr` - (Required) Gateway IP address CIDR. This argument can not be changed if DHCP is enabled for the subnet. @@ -87,7 +87,8 @@ The following arguments are supported: * `address_pool_paths` - (Optional) List of Policy path to IP address pools. * `connectivity` - (Optional) Connectivity configuration to manually connect (ON) or disconnect (OFF). * `hybrid` - (Optional) Boolean flag to identify a hybrid logical switch. - * `local_egress` (Optional) Boolean flag to enable local egress. + * `local_egress` - (Optional) Boolean flag to enable local egress when used in conjunction with L2VPN. + * `uplink_teaming_policy` - (Optional) The name of the switching uplink teaming policy for the bridge endpoint. This name corresponds to one of the switching uplink teaming policy names listed in the transport zone. ## Attributes Reference diff --git a/website/docs/r/policy_static_route.html.markdown b/website/docs/r/policy_static_route.html.markdown index efb0f5e7f..121ffb1fd 100644 --- a/website/docs/r/policy_static_route.html.markdown +++ b/website/docs/r/policy_static_route.html.markdown @@ -14,7 +14,7 @@ This resource provides a method for the management of a Static Route. ```hcl resource "nsxt_policy_static_route" "route1" { display_name = "sroute" - gateway_path = "${nsxt_policy_tier0_gateway.tier0_gw.path}" + gateway_path = nsxt_policy_tier0_gateway.tier0_gw.path network = "13.1.1.0/24" next_hop { diff --git a/website/docs/r/policy_tier0_gateway.html.markdown b/website/docs/r/policy_tier0_gateway.html.markdown index ec694bc75..552d79cee 100644 --- a/website/docs/r/policy_tier0_gateway.html.markdown +++ b/website/docs/r/policy_tier0_gateway.html.markdown @@ -19,7 +19,7 @@ resource "nsxt_policy_tier0_gateway" "tier0_gw" { failover_mode = "PREEMPTIVE" default_rule_logging = false enable_firewall = true - force_whitelisting = true + force_whitelisting = false ha_mode = "ACTIVE_STANDBY" internal_transit_subnets = ["102.64.0.0/16"] transit_subnets = ["101.64.0.0/16"] @@ -39,13 +39,13 @@ resource "nsxt_policy_tier0_gateway" "tier0_gw" { } vrf_config { - tier0_gateway = data.nsxt_policy_tier0_gateway.vrf - route_distinuisher = "ASN:5" + gateway_path = data.nsxt_policy_tier0_gateway.vrf.path + route_distinuisher = "62000:10" evpn_transit_vni = 76001 route_target { auto_mode = false - import_targets = ["ASN:1"] - export_targets = ["ASN:5", "10.2.2.0:3"] + import_targets = ["62000:2"] + export_targets = ["62000:3", "10.2.2.0:3"] } } @@ -82,7 +82,7 @@ The following arguments are supported: * `inter_sr_ibgp` - (Optional) A boolean flag to enable/disable inter SR IBGP configuration. Default is `true`. * `local_as_num` - (Optional) BGP AS number in ASPLAIN/ASDOT Format. Default is `65000`. * `multipath_relax` - (Optional) A boolean flag to enable/disable multipath relax for BGP. Default is `true`. - * `graceful_restart_mode` - (Optional) A boolean flag to enable/disable BGP graceful restart mode. + * `graceful_restart_mode` - (Optional) Setting to control BGP graceful restart mode, one of `DISABLE`, `GR_AND_HELPER`, `HELPER_ONLY`. * `graceful_restart_timer` - (Optional) BGP graceful restart timer. Default is `180`. * `graceful_restart_stale_route_timer` - (Optional) BGP stale route timer. Default is `600`. * `route_aggregation`- (Optional) Zero or more route aggregations for BGP. @@ -91,12 +91,12 @@ The following arguments are supported: * `vrf_config` - (Optional) VRF config for VRF Tier0. This clause is supported with NSX 3.0.0 onwards. * `gateway_path` - (Required) Default Tier0 path. Cannot be modified after realization. * `evpn_transit_vni` - (Optional) L3 VNI associated with the VRF for overlay traffic. VNI must be unique and belong to configured VNI pool. - * `route_distinguisher` - (Optional) Route distinguisher. Format: ASN: or IPAddress:. + * `route_distinguisher` - (Optional) Route distinguisher. Format: : or :. * `route_target` - (Optional) Only one target is supported. * `auto_mode` - (Optional) When true, import and export targets should not be specified. * `address_family` - (Optional) Address family, currently only `L2VPN_EVPN` is supported, which is the default. - * `import_targets` - (Optional) List of import route targets. Format: ASN: or IPAddress:. - * `export_targets` - (Optional) List of export route targets. Format: ASN: or IPAddress:. + * `import_targets` - (Optional) List of import route targets. Format: :. + * `export_targets` - (Optional) List of export route targets. Format: :. ## Attributes Reference diff --git a/website/docs/r/policy_tier0_gateway_interface.html.markdown b/website/docs/r/policy_tier0_gateway_interface.html.markdown index 65e81e777..5eda694e3 100644 --- a/website/docs/r/policy_tier0_gateway_interface.html.markdown +++ b/website/docs/r/policy_tier0_gateway_interface.html.markdown @@ -63,6 +63,7 @@ In addition to arguments listed above, the following attributes are exported: * `id` - ID of the resource. * `revision` - Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging. * `path` - The NSX path of the policy resource. +* `ip_addresses` - list of Ip Addresses picked from each subnet in `subnets` field. This attribute can serve as `source_addresses` field of `nsxt_policy_bgp_neighbor` resource. ## Importing diff --git a/website/docs/r/policy_tier1_gateway.html.markdown b/website/docs/r/policy_tier1_gateway.html.markdown index 60182ad62..cf9f7286e 100644 --- a/website/docs/r/policy_tier1_gateway.html.markdown +++ b/website/docs/r/policy_tier1_gateway.html.markdown @@ -62,7 +62,7 @@ The following arguments are supported: * `default_rule_logging` - (Optional) Boolean flag indicating if the default rule logging will be enabled or not. The default value is false. * `enable_firewall` - (Optional) Boolean flag indicating if the edge firewall will be enabled or not. The default value is true. * `enable_standby_relocation` - (Optional) Boolean flag indicating if the standby relocation will be enabled or not. The default value is false. -* `force_whitelisting` - (Optional) Boolean flag indicating if white-listing will be forced or not. The default value is false. +* `force_whitelisting` - (Optional) Boolean flag indicating if white-listing will be forced or not. The default value is false. Setting it to `true` will create a base deny entry rule on Tier-1 firewall. * `tier0_path` - (Optional) The path of the connected Tier0. * `route_advertisement_types` - (Optional) Enable different types of route advertisements: TIER1_STATIC_ROUTES, TIER1_CONNECTED, TIER1_NAT, TIER1_LB_VIP, TIER1_LB_SNAT, TIER1_DNS_FORWARDER_IP, TIER1_IPSEC_LOCAL_ENDPOINT. * `ipv6_ndra_profile_path` - (Optional) Policy path to IPv6 NDRA profile. diff --git a/website/docs/r/policy_vlan_segment.html.markdown b/website/docs/r/policy_vlan_segment.html.markdown index c566e0a16..d6e4a2c6a 100644 --- a/website/docs/r/policy_vlan_segment.html.markdown +++ b/website/docs/r/policy_vlan_segment.html.markdown @@ -55,7 +55,7 @@ The following arguments are supported: * `tag` - (Optional) A list of scope + tag pairs to associate with this policy. * `nsx_id` - (Optional) The NSX ID of this resource. If set, this ID will be used to create the resource. * `domain_name`- (Optional) DNS domain names. -* `transport_zone_path` - (Optional) Policy path to the VLAN backed transport zone. +* `transport_zone_path` - (Required) Policy path to the VLAN backed transport zone. * `vlan_ids` - (Optional) VLAN IDs for VLAN backed Segment. * `dhcp_config_path` - (Optional) Policy path to DHCP server or relay configuration to use for subnets configured on this segment. This attribute is supported with NSX 3.0.0 onwards. * `subnet` - (Required) Subnet configuration block. @@ -85,10 +85,11 @@ The following arguments are supported: * `l2vpn_paths` - (Optional) Policy paths of associated L2 VPN sessions. * `tunnel_id` - (Optional) The Tunnel ID that's a int value between 1 and 4093. * `advanced_config` - (Optional) Advanced Segment configuration. - * `address_pool_paths` - (Optional) List of Policy path to IP address pools. + * `address_pool_path` - (Optional) Policy path to IP address pool. * `connectivity` - (Optional) Connectivity configuration to manually connect (ON) or disconnect (OFF). * `hybrid` - (Optional) Boolean flag to identify a hybrid logical switch. - * `local_egress` (Optional) Boolean flag to enable local egress. + * `local_egress` - (Optional) Boolean flag to enable local egress. + * `uplink_teaming_policy` - (Optional) The name of the switching uplink teaming policy for the bridge endpoint. This name corresponds to one of the switching uplink teaming policy names listed in the transport zone. ## Attributes Reference diff --git a/website/nsxt.erb b/website/nsxt.erb index 745875ec3..3e18bf29f 100644 --- a/website/nsxt.erb +++ b/website/nsxt.erb @@ -10,51 +10,15 @@ NSX-T Provider - > - Data Sources - - - > Policy Data Sources + > Policy Load Balancer Data Sources + > + Policy Resources + + + + > + Policy Load Balancing Resources + + + + > + Manager Data Sources + + + > - Resources + Manager Resources